mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-15 00:37:05 +01:00
Alan Orth
a942707278
I need to figure out how to generate a list of posts grouped by month, ie "August 2016", as well as a list template to show the posts for each month for when the user clicks the link.
27 lines
892 B
HTML
27 lines
892 B
HTML
<aside class="col-sm-3 offset-sm-1 blog-sidebar">
|
|
<section class="sidebar-module sidebar-module-inset">
|
|
<h4>About</h4>
|
|
<p>Etiam porta <em>sem malesuada magna</em> mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.</p>
|
|
</section>
|
|
|
|
{{ if isset .Site.Params.sidebar "num_recent_posts" }}
|
|
<section class="sidebar-module">
|
|
<h4>Recent Posts</h4>
|
|
<ol class="list-unstyled">
|
|
{{ range first .Site.Params.sidebar.num_recent_posts .Site.Pages }}
|
|
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
|
|
{{ end }}
|
|
</ol>
|
|
</section>
|
|
{{ end }}
|
|
|
|
<section class="sidebar-module">
|
|
<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>
|
|
</section>
|
|
</aside><!-- /.blog-sidebar -->
|