Skip to content

Commit ccfad34

Browse files
committed
Add Comments
1 parent c113cfb commit ccfad34

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

_includes/comments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ <h4 class="page__comments-title">{{ site.data.ui-text[site.locale].comments_labe
151151
{% endif %}
152152
</section>
153153
{% when "utterances" %}
154-
<h4 class="page__comments-title">{{ comments_label }}</h4>
154+
<h4 class="page__comments-title"></h4>
155155
<section id="utterances-comments"></section>
156156
{% when "custom" %}
157157
{% include /comments-providers/custom.html %}

_layouts/profession-post.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ <h1 id="page-title" class="post__title" itemprop="headline">{{ page.title | mark
2121
<section class="page__content" itemprop="text">
2222
{{ content }}
2323
</section>
24+
25+
{% if site.comments.provider and page.comments %}
26+
{% include comments.html %}
27+
{% endif %}
2428
</div>
2529

2630
{% if page.toc %}
@@ -32,12 +36,10 @@ <h1 id="page-title" class="post__title" itemprop="headline">{{ page.title | mark
3236
</aside>
3337
{% endif %}
3438
</div>
35-
39+
3640
<footer class="page__meta">
3741
{% include kb-page__taxonomy.html %}
3842
</footer>
39-
40-
{% include post_pagination.html %}
4143
</div>
4244
</article>
4345
</div>

_sass/minimal-mistakes/_page.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ body {
409409
}
410410

411411
.page__comments-title {
412-
margin-top: 2rem;
413-
margin-bottom: 10px;
414-
padding-top: 2rem;
412+
margin-top: 0;
413+
margin-bottom: 0;
414+
padding-top: 0;
415415
font-size: $type-size-6;
416416
border-top: 1px solid $border-color;
417417
text-transform: uppercase;

0 commit comments

Comments
 (0)