diff options
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/_default/social-links.html | 5 | ||||
-rw-r--r-- | static/img/stackoverflow.svg | 8 |
3 files changed, 14 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2e237dc..b8c469d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -34,3 +34,4 @@ googleAnalytics = "UA-123-45" twitter = "twitter_username" facebook = "facebook_username" instagram = "instagram_username" + stackoverflow = "1234567" #StackExchange user number diff --git a/layouts/_default/social-links.html b/layouts/_default/social-links.html index 044feb6..dede321 100644 --- a/layouts/_default/social-links.html +++ b/layouts/_default/social-links.html @@ -19,6 +19,11 @@ <img src="{{ "img/twitter.svg" | absURL }}" alt="twitter"> </a> {{ end }} + {{ with .Site.Params.stackoverflow }} + <a class="social-media" href="https://stackexchange.com/users/{{ . }}/?tab=accounts"> + <img src="{{ "img/stackoverflow.svg" | absURL }}" alt="stackoverflow"> + </a> + {{ end }} {{ with .Site.Params.facebook }} <a class="social-media" href="https://facebook.com/{{ . }}"> <img src="{{ "img/facebook.svg" | absURL }}" alt="facebook"> diff --git a/static/img/stackoverflow.svg b/static/img/stackoverflow.svg new file mode 100644 index 0000000..be36014 --- /dev/null +++ b/static/img/stackoverflow.svg @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100px" height="118px"> +<polygon points="84.072,107.351 84.072,75.8 94.588,75.8 94.588,117.869 0,117.869 0,75.8 10.516,75.8 + 10.516,107.351 " /> +<path d="M22.089,72.898l51.458,10.815l2.163-10.292L24.252,62.606L22.089,72.898z M28.897,48.259l47.666,22.199 + l4.44-9.533L33.337,38.726L28.897,48.259z M42.088,24.874l40.405,33.65l6.73-8.081l-40.405-33.65L42.088,24.874z M68.171,0 + l-8.438,6.276l31.381,42.191l8.438-6.276L68.171,0z M21.044,96.833l52.582,0V86.316l-52.582,0V96.833z" /> +</svg>
\ No newline at end of file |