1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-19 09:02:18 +01:00
hugo-theme-bootstrap4-blog/layouts/partials/sidebar.html
Alan Orth 9934368215
layouts: Set dir="auto" on some HTML elements
When a site is rendered in Arabic the root HTML element gets the
dir="rtl" attribute, but even Arabic sites might have an English
title or footer, etc so we should set dir="auto" on those elements.
2019-04-18 23:38:53 +03:00

26 lines
721 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 dir="auto">{{ .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: */}}