diff options
author | Damien Caselli <damien.caselli@gmail.com> | 2017-07-23 13:09:41 +0300 |
---|---|---|
committer | Damien Caselli <damien.caselli@gmail.com> | 2017-07-23 13:09:55 +0300 |
commit | 4235922e5f184a926d53547f5e971ddb64900bf3 (patch) | |
tree | 8d9fc4eb913390db93b8a03162a163b43097eae5 | |
parent | 30a5847512d27e98c3e22f531c1a5f7fb58e1473 (diff) |
Remove SocialLinks param
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | layouts/partials/nav.html | 14 |
2 files changed, 5 insertions, 13 deletions
@@ -29,10 +29,6 @@ Tagline = "Hello, world!" # default: 10 HomepagePosts = 3 -# if set to true, social links will be displayed in the footer -# default: undefined -SocialLinks = true - # default: undefined GithubUsername = "damiencaselli" diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 58e57a1..68b9571 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -2,16 +2,12 @@ <a href="{{ .Site.BaseURL }}">Home</a> <a href="{{ .Site.BaseURL }}post/">All posts</a> - {{ if eq .Site.Params.SocialLinks true -}} - - {{ if isset .Site.Params "TwitterUsername" -}} - <a href="https://twitter.com/{{ .Site.Params.TwitterUsername }}">Twitter</a> - {{- end }} - - {{ if isset .Site.Params "GithubUsername" -}} - <a href="http://github.com/{{ .Site.Params.GithubUsername }}">GitHub</a> - {{- end }} + {{ if isset .Site.Params "TwitterUsername" -}} + <a href="https://twitter.com/{{ .Site.Params.TwitterUsername }}">Twitter</a> + {{- end }} + {{ if isset .Site.Params "GithubUsername" -}} + <a href="http://github.com/{{ .Site.Params.GithubUsername }}">GitHub</a> {{- end }} </nav> |