Skip to content

Commit a088e46

Browse files
committed
Only add discourse link when configured
1 parent e275d73 commit a088e46

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎layouts/partials/posts/post.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<section class="post content-padding">
22
{{ with partial "_decorators/content-container.html" . }}
33
<div class="post-meta">{{ partial "posts/meta.html" . }}
4-
<span class="post-please-comment">🖊️ Please add your comments <a href="#discourse-comments">below!</a></span>
4+
{{ with .Site.Params.comments.discourse_url }}
5+
<span class="post-please-comment">🖊️ Please add your comments <a href="#discourse-comments">below!</a></span>
6+
{{ end }}
57
</div>
68
{{- $featuredImage := .Resources.GetMatch "featuredImage" -}}
79
<div class="post-content">

0 commit comments

Comments
 (0)