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

github.com/xiaoheiAh/hugo-theme-pure.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, 5 insertions, 1 deletions
diff --git a/layouts/partials/article.html b/layouts/partials/article.html
index ec979cf..ccbed3c 100644
--- a/layouts/partials/article.html
+++ b/layouts/partials/article.html
@@ -14,8 +14,10 @@
{{- partial "post/category.html" . }}
{{- partial "post/tag.html" . }}
{{- partial "post/pv.html" . }}
+ {{- if .Site.Params.comment.type }}
<span class="post-comment"><i class="icon icon-comment"></i>&nbsp;<a href="{{ .RelPermalink }}#comments"
class="article-comment-link">{{T "article_comments" }}</a></span>
+ {{- end }}
{{- partial "post/wc.html" . }}
</div>
</div>
@@ -26,7 +28,9 @@
{{- partial "post/copyright.html" . }}
</div>
</article>
+ {{- if (.Site.Params.comment.type) }}
{{- partial "post/comment.html" . }}
+ {{- end }}
</div>
{{- partial "post/nav.html" . }}
-{{- partial "post/donate.html" . }} \ No newline at end of file
+{{- partial "post/donate.html" . }}