Erstes Commit
This commit is contained in:
19
hugo/layouts/if/all.html
Normal file
19
hugo/layouts/if/all.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "title" }}
|
||||
{{- .Title }} :: {{ .Site.Title -}}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<nav class="submenu box">
|
||||
<h2>Bereiche:</h2>
|
||||
<ul>
|
||||
{{- $page := . }}
|
||||
{{- range site.Menus.if }}
|
||||
{{- if $page.IsMenuCurrent .Menu . }}
|
||||
<li class="active"><a href="{{.URL}}">{{.Name}}</a></li>
|
||||
{{- else }}
|
||||
<li><a href="{{.URL}}">{{.Name}}</a></li>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user