feat: add support for hiding "Recent posts" block

This commit is contained in:
luto
2018-11-02 21:34:10 +01:00
committed by Aurélien Baumann
parent 509e3a2dc6
commit c4f5e4ade9
2 changed files with 6 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
<nav class="col-md-3">
{{ if $.Site.Params.codeeditor_menu_mostrecentposts | default true }}
<h3 class="home-link"><a href="{{ index .Site.Params "rootlink" | default .Site.BaseURL }}">{{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).root }}</a></h3>
<div id="last-posts" class="open">
<h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations (default $.Site.Params.locale "en-US") ).mostrecentposts }}</h3>
@@ -8,6 +9,7 @@
{{ end }}
</ul>
</div>
{{ end }}
{{ with .Site.Taxonomies.tags }}
<div id="tags" class="open">