diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-08-24 16:23:28 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-08-24 16:23:28 +0800 |
commit | 56456e44f984b6662dbb68de2976acda56c6a250 (patch) | |
tree | b0d8186d0db0d823022fe484bb5f5c2f29fdfc0f | |
parent | 3e1c3caad23fd9d1e65dd192483d7a71a8864eda (diff) |
feat: add padding for post comments block
-rw-r--r-- | _layouts/post.html | 18 | ||||
-rw-r--r-- | _sass/yat/_layout.scss | 4 |
2 files changed, 14 insertions, 8 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index d856c36..bd1f93d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -44,17 +44,19 @@ sidebar: </ul> </div> - {%- if page.comments != false -%} + <div class="post-comments"> + {%- if page.comments != false -%} - {%- if site.disqus.shortname -%} - {%- include extensions/comments/disqus.html -%} - {%- endif -%} + {%- if site.disqus.shortname -%} + {%- include extensions/comments/disqus.html -%} + {%- endif -%} - {%- if site.gitment.username -%} - {%- include extensions/comments/gitment.html -%} - {%- endif -%} + {%- if site.gitment.username -%} + {%- include extensions/comments/gitment.html -%} + {%- endif -%} - {%- endif -%} + {%- endif -%} + </div> </section> </div> diff --git a/_sass/yat/_layout.scss b/_sass/yat/_layout.scss index cbd8d5e..016bb4c 100644 --- a/_sass/yat/_layout.scss +++ b/_sass/yat/_layout.scss @@ -474,6 +474,10 @@ html { } } +.post-comments { + padding-top: 25px; +} + /** * Posts misc |