mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-05-21 11:52:44 +00:00
Support menu items from frontmatter and config (see gohugoio/hugo/#4995)
This commit is contained in:
parent
315a00623c
commit
c53f4f12bc
@ -13,7 +13,7 @@
|
||||
<ul class="{{ cond (eq $.Site.Language.LanguageDirection "rtl") "pr0 ml3" "pl0 mr3" }}">
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="list f5 f4-ns fw4 dib {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
|
||||
<a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ i18n "pageTitle" . }}">
|
||||
<a class="hover-white no-underline white-90" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" title="{{ i18n "pageTitle" . }}">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user