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:
Diffstat (limited to 'layouts/partials/nav.html')
-rw-r--r--layouts/partials/nav.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
new file mode 100644
index 0000000..58e57a1
--- /dev/null
+++ b/layouts/partials/nav.html
@@ -0,0 +1,17 @@
+<nav class="site-nav">
+ <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 }}
+
+ {{- end }}
+
+</nav>