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:
authorYanis Guenane <yanis@guenane.org>2018-01-20 15:01:03 +0300
committerYanis Guenane <yanis@guenane.org>2018-01-20 15:06:34 +0300
commit301d2dcbb298ed2608a86715a1da8e1c4fcf7779 (patch)
tree572c59e3aa64a018f5f2c1ec558f3715a2195b14
parent83f298c5ef828d707e03500fc42f19a9f83cb35f (diff)
Add optional LinkedIn link to sidebar via site params
-rw-r--r--README.md3
-rw-r--r--layouts/partials/sidebar.html5
2 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index c7c0a75..99a4d0d 100644
--- a/README.md
+++ b/README.md
@@ -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>