Inline the submodule of themes/hermit with a git-subtree
Add 'themes/hermit/' from commit '56843f347a642324970ba30d58f23c64e037bb7c'
git-subtree-dir: themes/hermit
git-subtree-mainline: 7844fa5501c271b1b2b5ece2cb19f3202cd6e5ad
git-subtree-split: 56843f347a
This commit is contained in:
12
themes/hermit/layouts/partials/menu.html
Normal file
12
themes/hermit/layouts/partials/menu.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- range .Site.Menus.main }}
|
||||
{{- if .HasChildren }}
|
||||
<a href="{{ .URL | absLangURL }}" class="has-children">{{ .Name }}</a>
|
||||
<span class="sub-menu">
|
||||
{{- range .Children }}
|
||||
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
{{- end }}
|
||||
</span>
|
||||
{{- else }}
|
||||
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user