Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dplesca/purehugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Kohl <j7kohl@gmail.com>2017-12-04 02:30:39 +0300
committerJordan Kohl <j7kohl@gmail.com>2017-12-04 02:30:39 +0300
commita51dd08eafa3d663a16c308c852de979c5cb8d30 (patch)
treee93f6e96fa909560d64c62cba95da18afd6ea9ee /layouts
parent06811c8dd52901e801e514eac94eeec129596418 (diff)
Add optional Stack Overflow link to sidebar via site params
If a Stack Overflow ID is included in the site params, a link to the user's SO profile will be displayed. Uses the SO fontawesome icon.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/sidebar.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 0d123ce..01b1bb2 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -17,6 +17,11 @@
<a class="pure-button" href="https://github.com/{{ . }} "><i class="fa fa-github-alt"></i> github</a>
</li>
{{ end }}
+ {{ with .Site.Params.stackOverflowId }}
+ <li class="nav-item">
+ <a class="pure-button" href="https://stackoverflow.com/u/{{ . }} "><i class="fa fa-stack-overflow"></i> Stack Overflow</a>
+ </li>
+ {{ end }}
<li class="nav-item">
<a class="pure-button" href="{{ .Site.BaseURL }}/index.xml"><i class="fa fa-rss"></i> rss</a>
</li>