config.toml updated
This commit is contained in:
parent
943ff8c714
commit
771735121b
|
@ -101,7 +101,7 @@ git submodule update --remote --merge
|
||||||
|
|
||||||
## Run example site
|
## Run example site
|
||||||
|
|
||||||
From the root of themes/zen/exampleSite:
|
From the root of themes/zzo/exampleSite:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
hugo server --themesDir ../..
|
hugo server --themesDir ../..
|
||||||
|
|
|
@ -2,9 +2,11 @@ baseURL = "http://example.org"
|
||||||
title = "Hugo Zzo Theme"
|
title = "Hugo Zzo Theme"
|
||||||
theme = "zzo"
|
theme = "zzo"
|
||||||
themesdir = "../.."
|
themesdir = "../.."
|
||||||
|
assetDir = "../assets"
|
||||||
|
layoutDir = "../layouts"
|
||||||
|
|
||||||
defaultContentLanguage = "en"
|
defaultContentLanguage = "en"
|
||||||
defaultContentLanguageInSubdir = false
|
defaultContentLanguageInSubdir = true
|
||||||
hasCJKLanguage = false
|
hasCJKLanguage = false
|
||||||
|
|
||||||
summaryLength = 70
|
summaryLength = 70
|
||||||
|
|
|
@ -18,20 +18,20 @@
|
||||||
{{ range .Site.Menus.main -}}
|
{{ range .Site.Menus.main -}}
|
||||||
{{ if .HasChildren }}
|
{{ if .HasChildren }}
|
||||||
<div class="navbar__dropdown">
|
<div class="navbar__dropdown">
|
||||||
<a href="{{ .URL | absLangURL }}" class="navbar__menu-item">
|
<a href="{{ .URL | relLangURL }}" class="navbar__menu-item">
|
||||||
{{ .Name }}
|
{{ safeHTML .Name }}
|
||||||
<span class="navbar__menu-icon">
|
<span class="navbar__menu-icon">
|
||||||
{{ partial "svgs/arrow/keyboard-arrow-down.svg" (dict "width" 18 "height" 18) }}
|
{{ partial "svgs/arrow/keyboard-arrow-down.svg" (dict "width" 18 "height" 18) }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="navbar__dropdown--content">
|
<div class="navbar__dropdown--content">
|
||||||
{{ range .Children }}
|
{{ range .Children }}
|
||||||
<a href="{{ .URL | absLangURL }}" class="navbar__dropdown--item">{{ .Name }}</a>
|
<a href="{{ .URL | relLangURL }}" class="navbar__dropdown--item">{{ safeHTML .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ .URL | absLangURL }}" class="navbar__menu-item">{{ .Name }}</a>
|
<a href="{{ .URL | relLangURL }}" class="navbar__menu-item">{{ safeHTML .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue