softinio.com/themes/hyde-x/layouts/partials/sidebar.html

51 lines
2.5 KiB
HTML
Raw Normal View History

<div class="sidebar">
<div class="container sidebar-sticky">
<div class="sidebar-about">
{{ if isset .Site.Params "gravatarHash" }}
<img src="https://www.gravatar.com/avatar/{{ .Site.Params.gravatarHash }}?s=200"
alt="gravatar" title="{{ .Site.Author.name }}">
{{ end }}
<h1>{{ .Site.Author.name }}</h1>
{{ with .Site.Params.tagline }}<p class="lead">{{ . | markdownify }}</p>{{ end }}
</div>
<ul class="sidebar-nav">
<li class="sidebar-nav-item"><a href="{{ "/" | absURL }}">{{ if isset .Site.Params "home"}}{{ .Site.Params.home }}{{ else }}Blog{{ end }}</a></li>
{{ range .Site.Menus.main }}
<li class="sidebar-nav-item">{{ .Pre }}<a href="{{ .URL | absURL }}">{{ .Name }}</a></li>
{{end}}
</ul>
<ul class="sidebar-nav">
<li class="sidebar-nav-item">
{{ with .Site.Params.github }}<a href="{{ . }}"><i class="fa fa-github-square fa-3x"></i></a>{{ end }}
{{ with .Site.Params.bitbucket }}<a href="{{ . }}"><i class="fa fa-bitbucket-square fa-3x"></i></a>{{ end }}
{{ with .Site.Params.stackOverflow }}<a href="{{ . }}"><i class="fa fa-stack-overflow fa-3x"></i></a>{{ end }}
{{ with .Site.Params.linkedin }}<a href="{{ . }}"><i class="fa fa-linkedin-square fa-3x"></i></a>{{ end }}
{{ with .Site.Params.googleplus }}<a href="{{ . }}"><i class="fa fa-google-plus-square fa-3x"></i></a>{{ end }}
{{ with .Site.Params.facebook }}<a href="{{ . }}"><i class="fa fa-facebook-square fa-3x"></i></a>{{ end }}
{{ with .Site.Params.twitter }}<a href="{{ . }}"><i class="fa fa-twitter-square fa-3x"></i></a>{{ end }}
{{ with .Site.Params.youtube }}<a href="{{ . }}"><i class="fa fa-youtube-square fa-3x"></i></a>{{ end }}
{{ if .Site.Params.rss }}<a href="{{ "/index.xml" | absURL }}" type="application/rss+xml"><i class="fa fa-rss-square fa-3x"></i></a>{{ end }}
</li>
</ul>
{{ if isset .Site.Params "flattr" }}
<p><script id='flattr'>
(function(id){
var s = document.getElementById(id);
var f = document.createElement('iframe');
f.src = '//api.flattr.com/button/view/?uid={{ .Site.Params.flattr }}&button=compact&url={{ "/" | absURL }}&title={{ .Site.Title }}';
f.title = 'Flattr';
f.height = 20;
f.width = 110;
f.style.borderWidth = 0;
s.parentNode.insertBefore(f, s);
})('flattr');
</script></p>
{{ end }}
{{ partial "sidebar/footer.html" . }}
</div>
</div>