Skip to content

Commit b42d272

Browse files
Add text to encourage comments on blog post; invisible by default (#700)
Co-authored-by: Agriya Khetarpal <[email protected]>
1 parent fd217bc commit b42d272

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

assets/theme-css/posts.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
margin-right: 1.25rem;
8686
}
8787

88+
.post-please-comment {
89+
display: none;
90+
}
91+
8892
.read-more {
8993
font-style: italic;
9094
}

layouts/partials/posts/post.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ <h1>{{ .Title }}</h1>
66
{{ if .Params.Subtitle }}
77
<h5 class="subtitle">{{ .Params.Subtitle }}</h5>
88
{{ end }}
9-
<div class="post-meta">{{ partial "posts/meta.html" . }}</div>
9+
<div class="post-meta">{{ partial "posts/meta.html" . }}
10+
<span class="post-please-comment">🖊️ Please add your comments <a href="#discourse-comments">below!</a></span>
11+
</div>
1012
<div class="post-content">
1113
{{ with $featuredImage }}
1214
{{ if .Params.showOnTop }}

0 commit comments

Comments
 (0)