Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/damiencaselli/paperback.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Caselli <damien.caselli@gmail.com>2017-07-23 13:09:41 +0300
committerDamien Caselli <damien.caselli@gmail.com>2017-07-23 13:09:55 +0300
commit4235922e5f184a926d53547f5e971ddb64900bf3 (patch)
tree8d9fc4eb913390db93b8a03162a163b43097eae5
parent30a5847512d27e98c3e22f531c1a5f7fb58e1473 (diff)
Remove SocialLinks param
-rw-r--r--README.md4
-rw-r--r--layouts/partials/nav.html14
2 files changed, 5 insertions, 13 deletions
diff --git a/README.md b/README.md
index c0cfcfd..a43619c 100644
--- a/README.md
+++ b/README.md
@@ -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>