diff options
-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> |