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:
authorwd <wd@wdicc.com>2017-04-17 12:59:45 +0300
committerGitHub <noreply@github.com>2017-04-17 12:59:45 +0300
commite0fc5f7e5db33850b0622370e008c419c85382ee (patch)
treec924837bbb4eee1b5e59b960c3f467f9ad92cca6 /layouts/partials/article.html
parentbf8215226770b2271553cdce6133b7611d749801 (diff)
parent6416d231bb8425a24f62d80c836a7f3bab99bb91 (diff)
Merge pull request #1 from bep/fixes
Misc fixes
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>