diff options
author | Dragos Plesca <dragos.plesca@gmail.com> | 2018-01-20 18:58:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 18:58:30 +0300 |
commit | d95fca0d75c1e21c12903d2bc96655834b47ac74 (patch) | |
tree | 572c59e3aa64a018f5f2c1ec558f3715a2195b14 | |
parent | 83f298c5ef828d707e03500fc42f19a9f83cb35f (diff) | |
parent | 301d2dcbb298ed2608a86715a1da8e1c4fcf7779 (diff) |
Merge pull request #23 from Spredzy/linkedin_sidebar_link
Add optional LinkedIn link to sidebar via site params
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -27,11 +27,12 @@ disqusShortname = "xxxx" twitterName = "dragos_plesca" githubName = "dplesca" stackOverflowId = "#######" + linkedinName = "dragos-plesca-52797444" description = "Demo site for a hugo theme" google_analytics = "UA-xxxxxx-xx" ``` -Notice the configuration necessary for disqus comments (just setting the disqusShortname); the twitter, github, and stack overflow handlers (for the site sidebar); the site description and enabling Google Analytics reporting. +Notice the configuration necessary for disqus comments (just setting the disqusShortname); the twitter, github, stack overflow and linkedin handlers (for the site sidebar); the site description and enabling Google Analytics reporting. ### Syntax Highlighting diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 01b1bb2..06ea59f 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -22,6 +22,11 @@ <a class="pure-button" href="https://stackoverflow.com/u/{{ . }} "><i class="fa fa-stack-overflow"></i> Stack Overflow</a> </li> {{ end }} + {{ with .Site.Params.linkedinName }} + <li class="nav-item"> + <a class="pure-button" href="https://www.linkedin.com/in/{{ . }} "><i class="fa fa-linkedin"></i> LinkedIn</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> |