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

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhavin Gandhi <bhavin7392@gmail.com>2020-01-25 16:26:28 +0300
committerBhavin Gandhi <bhavin7392@gmail.com>2020-03-28 21:13:28 +0300
commitdbdba9c24cd91f4d78ef24e96e0212218ad443c2 (patch)
tree5769804d3aa7a3d9980a51e89464bd08d67c8438
parent1ab1a785bdaf5aa6c62c8309a7a03176977b99c5 (diff)
Show GitHub details only if .Site.Params.Github is set
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
-rw-r--r--layouts/partials/sidebar.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 70b42f4..f3f7b61 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -19,9 +19,11 @@
{{ end -}}
{{ end -}}
- <a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}/archive/{{ .Site.Params.Github.Head }}.zip">Download</a>
- <a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}">GitHub project</a>
- <span class="sidebar-nav-item">Currently on {{ .Site.Params.Github.Head }}</span>
+ {{- with .Site.Params.Github }}
+ <a class="sidebar-nav-item" href="{{ .url }}/archive/{{ .head }}.zip">Download</a>
+ <a class="sidebar-nav-item" href="{{ .url }}">GitHub project</a>
+ <span class="sidebar-nav-item">Currently on {{ .head }}</span>
+ {{ end -}}
</nav>
<div class="sidebar-item">