1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-16 01:07:03 +01:00

Allow optional configuration of "About" block in sidebar

Add something like the following to your config to enable the about
block in the sidebar:

  [params.sidebar]
    about = "*My site* is really cool. Adios!"

Can be formatted in Markdown.
This commit is contained in:
Alan Orth 2016-09-07 16:41:04 +03:00
parent f05d762f58
commit 15a41a86a2
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -1,8 +1,10 @@
<aside class="col-sm-3 offset-sm-1 blog-sidebar">
{{ if isset .Site.Params.sidebar "about" }}
<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>
<p>{{ .Site.Params.sidebar.about | markdownify }}</p>
</section>
{{ end }}
{{ if isset .Site.Params.sidebar "num_recent_posts" }}
<section class="sidebar-module">