pi-www-theme-soho/layouts/partials/sidebar.html

49 lines
1.3 KiB
HTML
Raw Normal View History

<aside class="sidebar">
2020-02-10 20:38:11 +02:00
<div class="container">
<div class="sidebar-about">
2020-02-10 20:38:11 +02:00
{{ with .Site.Params.gravatar }}
<div class="author-image">
2021-02-25 22:56:48 +02:00
<a href="{{ $.Site.BaseURL }}">
<img src="https://www.gravatar.com/avatar/{{md5 .}}?s=200&d=mp" class="img-circle img-headshot center" alt="Gravatar">
</a>
2020-02-10 20:38:11 +02:00
</div>
{{ else }}
{{ with .Site.Params.profilePicture }}
<div class="author-image">
2021-02-25 22:56:48 +02:00
<a href="{{ $.Site.BaseURL }}">
<img src="{{ . | relURL }}" class="img-circle img-headshot center" alt="Profile Picture">
</a>
2020-02-10 20:38:11 +02:00
</div>
{{ end }}
{{ end }}
<h1>{{ .Site.Title }}</h1>
{{ with .Site.Params.description }}
<p class="lead">{{.}}</p>
{{end}}
</div>
2014-04-27 01:25:13 +03:00
<nav>
<ul class="sidebar-nav">
2020-02-10 20:38:11 +02:00
<li>
2022-04-09 17:23:29 +03:00
<a href="{{ .Site.BaseURL }}">Úvod</a>
2020-02-10 20:38:11 +02:00
</li>
{{ range .Site.Menus.main -}}
2020-02-10 20:38:11 +02:00
<li>
2020-06-15 21:00:52 +03:00
<a href="{{ .URL }}">{{ .Name }}</a>
2020-02-10 20:38:11 +02:00
</li>
{{- end }}
</ul>
</nav>
2014-04-27 01:25:13 +03:00
2020-02-10 20:38:11 +02:00
<section class="social-icons">
{{ range $item := .Site.Params.socialIcons }}
2020-06-15 20:52:15 +03:00
<a href="{{ $item.url }}" rel="me" title="{{ $item.title }}" target="_blank">
2020-02-10 20:38:11 +02:00
<i class="fab {{ $item.icon }}" aria-hidden="true"></i>
</a>
{{ end }}
</section>
</div>
</aside>