2016-09-02 09:18:18 +02:00
|
|
|
<aside class="col-sm-3 offset-sm-1 blog-sidebar">
|
2017-01-08 23:14:11 +01:00
|
|
|
{{ if and (.Site.Params.sidebar) (isset .Site.Params.sidebar "about") }}
|
2016-09-02 09:18:18 +02:00
|
|
|
<section class="sidebar-module sidebar-module-inset">
|
2016-10-03 21:57:27 +02:00
|
|
|
<h4>{{ i18n "about" }}</h4>
|
2016-09-07 15:41:04 +02:00
|
|
|
<p>{{ .Site.Params.sidebar.about | markdownify }}</p>
|
2016-09-02 09:18:18 +02:00
|
|
|
</section>
|
2016-09-07 15:41:04 +02:00
|
|
|
{{ end }}
|
2016-08-28 21:44:18 +02:00
|
|
|
|
2017-01-08 23:14:11 +01:00
|
|
|
{{ if .Site.Params.sidebar }}
|
2016-09-07 22:54:55 +02:00
|
|
|
{{ $num_recent_posts := (index .Site.Params.sidebar "num_recent_posts" | default 5) }}
|
|
|
|
|
2016-09-02 09:18:18 +02:00
|
|
|
<section class="sidebar-module">
|
2016-10-03 21:57:27 +02:00
|
|
|
<h4>{{ i18n "recentPosts" }}</h4>
|
2016-08-28 21:44:18 +02:00
|
|
|
<ol class="list-unstyled">
|
2016-09-17 15:56:27 +02:00
|
|
|
{{ range first $num_recent_posts (where .Site.Pages "Type" "post") }}
|
2016-10-06 13:17:59 +02:00
|
|
|
<li><a href="{{.RelPermalink}}">{{.Title | markdownify }}</a></li>
|
2016-08-28 21:44:18 +02:00
|
|
|
{{ end }}
|
|
|
|
</ol>
|
2016-09-02 09:18:18 +02:00
|
|
|
</section>
|
2016-08-28 21:44:18 +02:00
|
|
|
|
2017-01-08 23:14:11 +01:00
|
|
|
{{ end }}
|
|
|
|
|
2016-09-08 14:00:23 +02:00
|
|
|
{{ with .Site.Menus.sidebar }}
|
2016-09-02 09:18:18 +02:00
|
|
|
<section class="sidebar-module">
|
2016-12-09 15:46:31 +01:00
|
|
|
<h4>{{ i18n "links" }}</h4>
|
2016-08-28 21:41:52 +02:00
|
|
|
<ol class="list-unstyled">
|
2016-09-08 14:00:23 +02:00
|
|
|
{{ range . }}
|
|
|
|
<li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li>
|
|
|
|
{{ end }}
|
2016-08-28 21:41:52 +02:00
|
|
|
</ol>
|
2016-09-02 09:18:18 +02:00
|
|
|
</section>
|
2016-09-08 14:00:23 +02:00
|
|
|
{{ end }}
|
2016-09-02 09:18:18 +02:00
|
|
|
</aside><!-- /.blog-sidebar -->
|
2016-11-24 13:33:56 +01:00
|
|
|
|
|
|
|
{{- /* vim: set ts=2 sw=2 et: */}}
|