mirror of
https://github.com/He4eT/xecut-site.git
synced 2026-05-04 17:37:26 +00:00
menu: add Home
This commit is contained in:
parent
efdecd7f57
commit
907eb193ef
7 changed files with 11 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
"description": "Hackspace in Belgrade.",
|
||||
"menu": {
|
||||
"title": "Main Menu",
|
||||
"home": "Home",
|
||||
"status": "Status",
|
||||
"location": "Location",
|
||||
"inventory": "Inventory",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
"description": "Хакспейс в Белграде.",
|
||||
"menu": {
|
||||
"title": "Меню",
|
||||
"home": "Home",
|
||||
"status": "Status",
|
||||
"location": "Location",
|
||||
"inventory": "Inventory",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
"description": "Хакспејс у Београду.",
|
||||
"menu": {
|
||||
"title": "Menu",
|
||||
"home": "Home",
|
||||
"status": "Status",
|
||||
"location": "Location",
|
||||
"inventory": "Inventory",
|
||||
|
|
|
|||
|
|
@ -21,6 +21,11 @@
|
|||
|
||||
<nav class="navbar">
|
||||
<ul class="nav-links">
|
||||
<li class="{% if indexPage === true %} active {% endif %}">
|
||||
<a href="{{ '/' | locale_url }}" >
|
||||
{{ translations[page.lang]['menu']['home'] }}
|
||||
</a>
|
||||
</li>
|
||||
{% set items = config.menu %}
|
||||
{%- for item in items %}
|
||||
{% set isCurrent = page.url.startsWith('/' ~ page.lang ~ '/' ~ item) %}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: layouts/base.njk
|
||||
title: English
|
||||
indexPage: true
|
||||
---
|
||||
|
||||
# English
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
layout: layouts/base.njk
|
||||
indexPage: true
|
||||
---
|
||||
|
||||
<style>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
layout: layouts/base.njk
|
||||
title: Serbian
|
||||
indexPage: true
|
||||
---
|
||||
|
||||
# Serbian
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue