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:
parent
f05d762f58
commit
15a41a86a2
@ -1,8 +1,10 @@
|
|||||||
<aside class="col-sm-3 offset-sm-1 blog-sidebar">
|
<aside class="col-sm-3 offset-sm-1 blog-sidebar">
|
||||||
|
{{ if isset .Site.Params.sidebar "about" }}
|
||||||
<section class="sidebar-module sidebar-module-inset">
|
<section class="sidebar-module sidebar-module-inset">
|
||||||
<h4>About</h4>
|
<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>
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if isset .Site.Params.sidebar "num_recent_posts" }}
|
{{ if isset .Site.Params.sidebar "num_recent_posts" }}
|
||||||
<section class="sidebar-module">
|
<section class="sidebar-module">
|
||||||
|
Loading…
Reference in New Issue
Block a user