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

45 lines
1.2 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">
<img src="https://www.gravatar.com/avatar/{{md5 .}}?s=200&d=mp" class="img-circle img-headshot center" alt="Gravatar">
</div>
{{ else }}
{{ with .Site.Params.profilePicture }}
<div class="author-image">
2020-06-15 21:00:52 +03:00
<img src="{{ . | relURL }}" class="img-circle img-headshot center" alt="Profile Picture">
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>
<a href="{{ .Site.BaseURL }}">Home</a>
</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>