mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-24 11:14:30 +01:00
Alan Orth
0055110e47
Bootstrap 4.0 Beta 1 dropped the offset classes in favor of margin classes. We need to use `ml-auto` instead of `offset-sm-1` here to get the same effect. See: https://github.com/twbs/bootstrap/pull/22942 See: https://github.com/twbs/bootstrap/pull/23388
26 lines
710 B
HTML
26 lines
710 B
HTML
<aside class="col-sm-3 ml-auto blog-sidebar">
|
|
{{ if and (.Site.Params.sidebar) (isset .Site.Params.sidebar "about") }}
|
|
<section class="sidebar-module sidebar-module-inset">
|
|
<h4>{{ i18n "about" }}</h4>
|
|
<p>{{ .Site.Params.sidebar.about | markdownify }}</p>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ if .Site.Params.sidebar }}
|
|
{{ partialCached "recent.html" .}}
|
|
{{ end }}
|
|
|
|
{{ with .Site.Menus.sidebar }}
|
|
<section class="sidebar-module">
|
|
<h4>{{ i18n "links" }}</h4>
|
|
<ol class="list-unstyled">
|
|
{{ range . }}
|
|
<li><a href="{{ .URL | absURL }}">{{ .Name }}</a></li>
|
|
{{ end }}
|
|
</ol>
|
|
</section>
|
|
{{ end }}
|
|
</aside><!-- /.blog-sidebar -->
|
|
|
|
{{- /* vim: set ts=2 sw=2 et: */}}
|