config.toml updated

This commit is contained in:
zzossig 2019-11-05 10:11:07 +09:00
parent 943ff8c714
commit 771735121b
3 changed files with 8 additions and 6 deletions

View File

@ -101,7 +101,7 @@ git submodule update --remote --merge
## Run example site
From the root of themes/zen/exampleSite:
From the root of themes/zzo/exampleSite:
```bash
hugo server --themesDir ../..

View File

@ -2,9 +2,11 @@ baseURL = "http://example.org"
title = "Hugo Zzo Theme"
theme = "zzo"
themesdir = "../.."
assetDir = "../assets"
layoutDir = "../layouts"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
defaultContentLanguageInSubdir = true
hasCJKLanguage = false
summaryLength = 70

View File

@ -18,20 +18,20 @@
{{ range .Site.Menus.main -}}
{{ if .HasChildren }}
<div class="navbar__dropdown">
<a href="{{ .URL | absLangURL }}" class="navbar__menu-item">
{{ .Name }}
<a href="{{ .URL | relLangURL }}" class="navbar__menu-item">
{{ safeHTML .Name }}
<span class="navbar__menu-icon">
{{ partial "svgs/arrow/keyboard-arrow-down.svg" (dict "width" 18 "height" 18) }}
</span>
</a>
<div class="navbar__dropdown--content">
{{ range .Children }}
<a href="{{ .URL | absLangURL }}" class="navbar__dropdown--item">{{ .Name }}</a>
<a href="{{ .URL | relLangURL }}" class="navbar__dropdown--item">{{ safeHTML .Name }}</a>
{{ end }}
</div>
</div>
{{ else }}
<a href="{{ .URL | absLangURL }}" class="navbar__menu-item">{{ .Name }}</a>
<a href="{{ .URL | relLangURL }}" class="navbar__menu-item">{{ safeHTML .Name }}</a>
{{ end }}
{{ end }}
</div>