Fix in menu partial to exclude home page. Updated README and screenshots.
|
|
@ -1,8 +1,8 @@
|
||||||
# A Hugo theme based on the Drupal zen base theme
|
# A Hugo theme based on the Drupal zen base theme
|
||||||
|
|
||||||
A very popular base theme for Drupal is [Zen](https://www.drupal.org/project/zen) by [JohnAlbin](https://www.drupal.org/u/johnalbin).
|
A very popular base theme for Drupal is [Zen](https://www.drupal.org/project/zen) by [JohnAlbin](https://www.drupal.org/u/johnalbin). This is a port of that theme for [Hugo :: A fast and modern static website engine](https://gohugo.io/).
|
||||||
|
|
||||||
This is a port of that theme for [Hugo :: A fast and modern static website engine](https://gohugo.io/).
|
The Zen grid system has been replaces with a modern CSS grid layout.
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
@ -30,6 +30,11 @@ This is a port of that theme for [Hugo :: A fast and modern static website engin
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
## The mobile manu
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 104 KiB |
BIN
images/tn.png
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 46 KiB |
BIN
images/tn_mobil_menu.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
|
|
@ -4,11 +4,14 @@
|
||||||
<h2 class="visually-hidden">{{ i18n "menu_title" }}</h2>
|
<h2 class="visually-hidden">{{ i18n "menu_title" }}</h2>
|
||||||
<ul class="navbar">
|
<ul class="navbar">
|
||||||
<li><a class="{{ if .IsHome }}active{{ end }}" href="/">{{ i18n "menu_home" }}</a></li>
|
<li><a class="{{ if .IsHome }}active{{ end }}" href="/">{{ i18n "menu_home" }}</a></li>
|
||||||
{{ range after 1 (where .Site.Pages "Section" "") -}}
|
{{ range where .Site.Pages "Section" "" -}}
|
||||||
|
{{ if ne .RelPermalink "/" -}}
|
||||||
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
{{ range $.Site.Home.Sections -}}
|
{{ range $.Site.Home.Sections -}}
|
||||||
<li><a class="{{ if eq $currentSection .Section }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
<li><a class="{{ if eq $currentSection .Section }}active{{ end }}" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
|
||||||