1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Adding the site theme to git

This commit is contained in:
Chris Cummer
2018-05-08 09:05:19 -07:00
parent ad56b6ea25
commit b55ca47678
46 changed files with 3151 additions and 13 deletions

View File

@@ -0,0 +1,24 @@
<!-- sidebar start -->
<div>
<ul class="sidebar-nav">
{{ $currentPage := . }}
{{ range .Site.Menus.main -}}
{{ if .HasChildren -}}
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
<a href="#">{{ .Pre }}<span>{{ .Name }}</span></a>
<ul class="sidebar-nav">
{{ range .Children -}}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
<a href="{{ .URL }}">{{ .Name | title }}</a>
</li>
{{- end -}}
</ul>
{{- else -}} <!-- No Children-->
<li>
<a href="{{.URL}}">{{ .Pre }} <span>{{ .Name | title }}</span></a>
</li>
{{- end -}}
{{- end }}
</li>
</ul>
</div>