mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-19 09:02:18 +01:00
Allow configuration of optional sidebar links
Add something like the following to your config: [[menu.sidebar]] name = "Link 1" url = "https://link1.com" [[menu.sidebar]] name = "Link 2" url = "https://link2.com" See the Hugo docs for more examples: https://gohugo.io/extras/menus/
This commit is contained in:
parent
3a08993bcb
commit
192d0bbee6
@ -17,12 +17,14 @@
|
|||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{{ with .Site.Menus.sidebar }}
|
||||||
<section class="sidebar-module">
|
<section class="sidebar-module">
|
||||||
<h4>Elsewhere</h4>
|
<h4>Links</h4>
|
||||||
<ol class="list-unstyled">
|
<ol class="list-unstyled">
|
||||||
<li><a href="#">GitHub</a></li>
|
{{ range . }}
|
||||||
<li><a href="#">Twitter</a></li>
|
<li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li>
|
||||||
<li><a href="#">Facebook</a></li>
|
{{ end }}
|
||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
|
{{ end }}
|
||||||
</aside><!-- /.blog-sidebar -->
|
</aside><!-- /.blog-sidebar -->
|
||||||
|
Loading…
Reference in New Issue
Block a user