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

github.com/wd/hugo-fabric.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/article.html')
-rw-r--r--layouts/partials/article.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/article.html b/layouts/partials/article.html
index a3d7133..5149e0a 100644
--- a/layouts/partials/article.html
+++ b/layouts/partials/article.html
@@ -18,7 +18,9 @@
<div class="entry-content">{{ .post.Content }}</div>
{{ end }}
<div class="meta">
- {{ if .theme.disqus_shortname }}
- <span class="comments"><a href="{{ .post.URL }}#disqus_thread">Comments</a></span>
+ {{ with .theme }}
+ {{ if .disqus_shortname }}
+ <span class="comments"><a href="{{ $.post.URL }}#disqus_thread">Comments</a></span>
+ {{ end }}
{{ end }}
</div>