footer and javascript updates

This commit is contained in:
Gardient
2018-02-18 16:25:35 +02:00
parent 64b71057a6
commit 4ff8ac3fc2
7 changed files with 69 additions and 38 deletions

View File

@@ -8,11 +8,11 @@
{{ block "header" . }} {{ block "header" . }}
{{ partial "nav" . }} {{ partial "nav" . }}
{{ end }} {{ end }}
<main role="main" class="container"> <main role="main" class="container mb-5">
{{ block "main" . }} {{ block "main" . }}
{{ end }} {{ end }}
</main> </main>
<footer class="container"> <footer class="container mb-4">
{{ block "footer" . }} {{ block "footer" . }}
{{ partial "footer" . }} {{ partial "footer" . }}
{{ end }} {{ end }}

View File

@@ -0,0 +1,9 @@
<div class="col-12 col-md-4">
<div class="small-print">
<small>{{ .Site.Copyright | safeHTML }}</small>
</div>
<div class="small-print">
<small>Built with&nbsp;<a href="https://gohugo.io/" target="_blank">Hugo</a></small>
<small>Theme&nbsp;<a href="https://github.com/gardient/hugo-bootswatch-slate" target="_blank">Hugo Bootswatch Slate</a></small>
</div>
</div>

View File

@@ -0,0 +1,19 @@
{{ with .Site.Params.disqus }}
<div id="disqus_thread"></div>
<script type="text/javascript">
(function() {
// Don't ever inject Disqus on localhost--it creates unwanted
// discussions from 'localhost:1313' on your Disqus account...
if (window.location.hostname == "localhost")
return;
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
var disqus_shortname = '{{ . }}';
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
{{ end }}

View File

@@ -1 +1,4 @@
{{ partial "social.html" . }} <div class="row">
{{ partial "social.html" . }}
{{ partial "copyright" . }}
</div>

View File

@@ -8,7 +8,7 @@
<!-- CSS --> <!-- CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.0.0-beta.3/slate/bootstrap.min.css" integrity="sha256-XuLfpTfBrr1SFUTEBsuCZAyEL9FaMqJHX6v2Clowmu8=" crossorigin="anonymous" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.0.0-beta.3/slate/bootstrap.min.css" integrity="sha256-XuLfpTfBrr1SFUTEBsuCZAyEL9FaMqJHX6v2Clowmu8=" crossorigin="anonymous" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hugo-bootswatch-slate.css"> <link rel="stylesheet" href="/css/hugo-bootswatch-slate.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
@@ -24,5 +24,5 @@
{{ partial "favicon.html" . }} {{ partial "favicon.html" . }}
{{ range .Site.Params.custom_css }} {{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}"> <link rel="stylesheet" href="{{ . }}">
{{ end }} {{ end }}

View File

@@ -11,8 +11,8 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha256-JNyuT3QsYBdyeKxKBwnGJAJiACWcow2TjhNruIFFPMQ=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha256-JNyuT3QsYBdyeKxKBwnGJAJiACWcow2TjhNruIFFPMQ=" crossorigin="anonymous"></script>
<script src="{{ .Site.BaseURL }}js/hugo-bootswatch-slate.js"></script> <script src="/js/hugo-bootswatch-slate.js"></script>
{{ range .Site.Params.custom_js }} {{ range .Site.Params.custom_js }}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script> <script src="{{ . }}"></script>
{{ end }} {{ end }}

View File

@@ -1,159 +1,159 @@
<ul class="col-md-6 row list-unstyled"> <ul class="col-12 col-md-8 row list-unstyled">
{{ if .RSSLink }} {{ if .RSSLink }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="{{ .RSSLink }}"><i class="fa fa-rss fa-fw"></i>RSS</a> <a href="{{ .RSSLink }}"><i class="fa fa-rss fa-fw"></i>RSS</a>
</li> </li>
{{ end }} {{ end }}
<!-- SNS microblogging --> <!-- SNS microblogging -->
{{ with .Site.Social.twitter }} {{ with .Site.Social.twitter }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://twitter.com/{{ . }}" target="_blank"><i class="fa fa-twitter-square fa-fw"></i>Twitter</a> <a href="https://twitter.com/{{ . }}" target="_blank"><i class="fa fa-twitter-square fa-fw"></i>Twitter</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.gnusocial }} {{ with .Site.Social.gnusocial }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="{{ . }}" target="_blank"><i class="fa fa-comment fa-fw"></i>GNU social</a> <a href="{{ . }}" target="_blank"><i class="fa fa-comment fa-fw"></i>GNU social</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.facebook }} {{ with .Site.Social.facebook }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://facebook.com/{{ . }}" target="_blank"><i class="fa fa-facebook-square fa-fw"></i>Facebook</a> <a href="https://facebook.com/{{ . }}" target="_blank"><i class="fa fa-facebook-square fa-fw"></i>Facebook</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.googleplus }} {{ with .Site.Social.googleplus }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://plus.google.com/+{{ . }}" target="_blank"><i class="fa fa-google-plus-square fa-fw"></i>Google+</a> <a href="https://plus.google.com/+{{ . }}" target="_blank"><i class="fa fa-google-plus-square fa-fw"></i>Google+</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.weibo }} {{ with .Site.Social.weibo }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="http://weibo.com/{{ . }}" target="_blank"><i class="fa fa-weibo fa-fw"></i>Weibo</a> <a href="http://weibo.com/{{ . }}" target="_blank"><i class="fa fa-weibo fa-fw"></i>Weibo</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.tumblr }} {{ with .Site.Social.tumblr }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://{{ . }}.tumblr.com/" target="_blank"><i class="fa fa-tumblr-square fa-fw"></i>Tumblr</a> <a href="https://{{ . }}.tumblr.com/" target="_blank"><i class="fa fa-tumblr-square fa-fw"></i>Tumblr</a>
</li> </li>
{{ end }} {{ end }}
<!-- SNS photo/video sharing --> <!-- SNS photo/video sharing -->
{{ with .Site.Social.instagram }} {{ with .Site.Social.instagram }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://instagram.com/{{ . }}" target="_blank"><i class="fa fa-instagram fa-fw"></i>Instagram</a> <a href="https://instagram.com/{{ . }}" target="_blank"><i class="fa fa-instagram fa-fw"></i>Instagram</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.flickr }} {{ with .Site.Social.flickr }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://flickr.com/photos/{{ . }}" target="_blank"><i class="fa fa-flickr fa-fw"></i>Flickr</a> <a href="https://flickr.com/photos/{{ . }}" target="_blank"><i class="fa fa-flickr fa-fw"></i>Flickr</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.photo500px }} {{ with .Site.Social.photo500px }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://500px.com/{{ . }}" target="_blank"><i class="fa fa-500px fa-fw"></i>500px</a> <a href="https://500px.com/{{ . }}" target="_blank"><i class="fa fa-500px fa-fw"></i>500px</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.pinterest }} {{ with .Site.Social.pinterest }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://pinterest.com/{{ . }}" target="_blank"><i class="fa fa-pinterest-square fa-fw"></i>Pinterest</a> <a href="https://pinterest.com/{{ . }}" target="_blank"><i class="fa fa-pinterest-square fa-fw"></i>Pinterest</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.youtube }} {{ with .Site.Social.youtube }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://youtube.com/user/{{ . }}" target="_blank"><i class="fa fa-youtube-square fa-fw"></i>YouTube</a> <a href="https://youtube.com/user/{{ . }}" target="_blank"><i class="fa fa-youtube-square fa-fw"></i>YouTube</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.vimeo }} {{ with .Site.Social.vimeo }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://vimeo.com/{{ . }}" target="_blank"><i class="fa fa-vimeo-square fa-fw"></i>Vimeo</a> <a href="https://vimeo.com/{{ . }}" target="_blank"><i class="fa fa-vimeo-square fa-fw"></i>Vimeo</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.vine }} {{ with .Site.Social.vine }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://vine.co/{{ . }}" target="_blank"><i class="fa fa-vine fa-fw"></i>Vine</a> <a href="https://vine.co/{{ . }}" target="_blank"><i class="fa fa-vine fa-fw"></i>Vine</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.slideshare }} {{ with .Site.Social.slideshare }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="http://slideshare.net/{{ . }}" target="_blank"><i class="fa fa-slideshare fa-fw"></i>SlideShare</a> <a href="http://slideshare.net/{{ . }}" target="_blank"><i class="fa fa-slideshare fa-fw"></i>SlideShare</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.deviantart }} {{ with .Site.Social.deviantart }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://{{ . }}.deviantart.com/" target="_blank"><i class="fa fa-deviantart fa-fw"></i>Deviantart</a> <a href="https://{{ . }}.deviantart.com/" target="_blank"><i class="fa fa-deviantart fa-fw"></i>Deviantart</a>
</li> </li>
{{ end }} {{ end }}
<!-- SNS career oriented --> <!-- SNS career oriented -->
{{ with .Site.Social.linkedin }} {{ with .Site.Social.linkedin }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://linkedin.com/in/{{ . }}" target="_blank"><i class="fa fa-linkedin-square fa-fw"></i>LinkedIn</a> <a href="https://linkedin.com/in/{{ . }}" target="_blank"><i class="fa fa-linkedin-square fa-fw"></i>LinkedIn</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.xing }} {{ with .Site.Social.xing }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://xing.com/profile/{{ . }}" target="_blank"><i class="fa fa-xing-square fa-fw"></i>Xing</a> <a href="https://xing.com/profile/{{ . }}" target="_blank"><i class="fa fa-xing-square fa-fw"></i>Xing</a>
</li> </li>
{{ end }} {{ end }}
<!-- SNS news --> <!-- SNS news -->
{{ with .Site.Social.reddit }} {{ with .Site.Social.reddit }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://reddit.com/user/{{ . }}" target="_blank"><i class="fa fa-reddit-square fa-fw"></i>Reddit</a> <a href="https://reddit.com/user/{{ . }}" target="_blank"><i class="fa fa-reddit-square fa-fw"></i>Reddit</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.hackernews }} {{ with .Site.Social.hackernews }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://news.ycombinator.com/user?id={{ . }}" target="_blank"><i class="fa fa-hacker-news fa-fw"></i>Hacker News</a> <a href="https://news.ycombinator.com/user?id={{ . }}" target="_blank"><i class="fa fa-hacker-news fa-fw"></i>Hacker News</a>
</li> </li>
{{ end }} {{ end }}
<!-- Techie --> <!-- Techie -->
{{ with .Site.Social.github }} {{ with .Site.Social.github }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://github.com/{{ . }}" target="_blank"><i class="fa fa-github-square fa-fw"></i>GitHub</a> <a href="https://github.com/{{ . }}" target="_blank"><i class="fa fa-github-square fa-fw"></i>GitHub</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.gitlab }} {{ with .Site.Social.gitlab }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://gitlab.com/{{ . }}" target="_blank"><i class="fa fa-gitlab fa-fw"></i>GitLab</a> <a href="https://gitlab.com/{{ . }}" target="_blank"><i class="fa fa-gitlab fa-fw"></i>GitLab</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.bitbucket }} {{ with .Site.Social.bitbucket }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://bitbucket.org/{{ . }}" target="_blank"><i class="fa fa-bitbucket-square fa-fw"></i>Bitbucket</a> <a href="https://bitbucket.org/{{ . }}" target="_blank"><i class="fa fa-bitbucket-square fa-fw"></i>Bitbucket</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.stackoverflow }} {{ with .Site.Social.stackoverflow }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://stackoverflow.com/users/{{ . }}" target="_blank"><i class="fa fa-stack-overflow fa-fw"></i>Stack Overflow</a> <a href="https://stackoverflow.com/users/{{ . }}" target="_blank"><i class="fa fa-stack-overflow fa-fw"></i>Stack Overflow</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.serverfault }} {{ with .Site.Social.serverfault }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://serverfault.com/users/{{ . }}" target="_blank"><i class="fa fa-server fa-fw"></i>Server Fault</a> <a href="https://serverfault.com/users/{{ . }}" target="_blank"><i class="fa fa-server fa-fw"></i>Server Fault</a>
</li> </li>
{{ end }} {{ end }}
<!-- Gaming --> <!-- Gaming -->
{{ with .Site.Social.steam }} {{ with .Site.Social.steam }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://steamcommunity.com/id/{{ . }}" target="_blank"><i class="fa fa-steam-square fa-fw"></i>Steam</a> <a href="https://steamcommunity.com/id/{{ . }}" target="_blank"><i class="fa fa-steam-square fa-fw"></i>Steam</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.mobygames }} {{ with .Site.Social.mobygames }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://www.mobygames.com/developer/sheet/view/developerId,{{ . }}" target="_blank"><i class="fa fa-gamepad fa-fw"></i>MobyGames</a> <a href="https://www.mobygames.com/developer/sheet/view/developerId,{{ . }}" target="_blank"><i class="fa fa-gamepad fa-fw"></i>MobyGames</a>
</li> </li>
{{ end }} {{ end }}
<!-- Music --> <!-- Music -->
{{ with .Site.Social.lastfm }} {{ with .Site.Social.lastfm }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="http://last.fm/user/{{ . }}" target="_blank"><i class="fa fa-lastfm-square fa-fw"></i>Last.fm</a> <a href="http://last.fm/user/{{ . }}" target="_blank"><i class="fa fa-lastfm-square fa-fw"></i>Last.fm</a>
</li> </li>
{{ end }} {{ end }}
{{ with .Site.Social.discogs }} {{ with .Site.Social.discogs }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://www.discogs.com/user/{{ . }}" target="_blank"><i class="fa fa-music fa-fw"></i>Discogs</a> <a href="https://www.discogs.com/user/{{ . }}" target="_blank"><i class="fa fa-music fa-fw"></i>Discogs</a>
</li> </li>
{{ end }} {{ end }}
<!-- Other --> <!-- Other -->
{{ with .Site.Social.keybase }} {{ with .Site.Social.keybase }}
<li class="col-sm-6 col-md-4 col-lg-3"> <li class="col-sm-4 col-lg-3">
<a href="https://keybase.io/{{ . }}" target="_blank"><i class="fa fa-key fa-fw"></i>Keybase</a> <a href="https://keybase.io/{{ . }}" target="_blank"><i class="fa fa-key fa-fw"></i>Keybase</a>
</li> </li>
{{ end }} {{ end }}