2016-09-02 09:18:18 +02:00
|
|
|
<aside class="col-sm-3 offset-sm-1 blog-sidebar">
|
2016-09-07 15:41:04 +02:00
|
|
|
{{ if isset .Site.Params.sidebar "about" }}
|
2016-09-02 09:18:18 +02:00
|
|
|
<section class="sidebar-module sidebar-module-inset">
|
2016-08-28 21:41:52 +02:00
|
|
|
<h4>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
|
|
|
|
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-08-28 21:44:18 +02:00
|
|
|
<h4>Recent Posts</h4>
|
|
|
|
<ol class="list-unstyled">
|
2016-09-17 15:56:27 +02:00
|
|
|
{{ range first $num_recent_posts (where .Site.Pages "Type" "post") }}
|
2016-08-28 21:44:18 +02:00
|
|
|
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
2016-09-02 09:18:18 +02:00
|
|
|
</section>
|
2016-08-28 21:44:18 +02:00
|
|
|
|
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-09-08 14:00:23 +02:00
|
|
|
<h4>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 -->
|