hugo-code-editor-theme/layouts/partials/menu.html

29 lines
1.1 KiB
HTML
Raw Normal View History

<nav class="col-md-3">
<div id="last-posts" class="open">
2016-02-06 14:37:20 +00:00
<h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations $.Site.Params.locale ).mostrecentposts }}</h3>
<ul>
{{ range last 10 .Site.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
<div id="tags" class="open">
2016-02-06 14:37:20 +00:00
<h3 data-open="tags">{{ ( index $.Site.Data.translations $.Site.Params.locale ).tags }}</h3>
<ul class="tags">
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<li><a href="/tags/{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>
</div>
<div id="categories" class="open">
2016-02-06 14:37:20 +00:00
<h3 data-open="categories">{{ ( index $.Site.Data.translations $.Site.Params.locale ).categories }}</h3>
<ul class="categories">
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li><a href="/categories/{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>
</div>
</nav>