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 ## 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 ../..

View File

@ -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

View File

@ -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>