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-07 22:54:55 +02:00
|
|
|
{{ range first $num_recent_posts .Site.Pages }}
|
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-02 09:18:18 +02:00
|
|
|
<section class="sidebar-module">
|
2016-08-28 21:41:52 +02:00
|
|
|
<h4>Elsewhere</h4>
|
|
|
|
<ol class="list-unstyled">
|
|
|
|
<li><a href="#">GitHub</a></li>
|
|
|
|
<li><a href="#">Twitter</a></li>
|
|
|
|
<li><a href="#">Facebook</a></li>
|
|
|
|
</ol>
|
2016-09-02 09:18:18 +02:00
|
|
|
</section>
|
|
|
|
</aside><!-- /.blog-sidebar -->
|