add support for comments on any page
This commit is contained in:
parent
ff0de0bb13
commit
bde8a560c7
@ -77,6 +77,12 @@ paginate: 5
|
||||
|
||||
# Default YAML values (more information on Jekyll's site)
|
||||
defaults:
|
||||
-
|
||||
scope:
|
||||
path: ""
|
||||
type: "posts"
|
||||
values:
|
||||
comments: true # add comments to all blog posts
|
||||
-
|
||||
scope:
|
||||
path: "" # all files
|
||||
|
@ -21,5 +21,10 @@ layout: default
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{{ content }}
|
||||
{% if page.comments %}
|
||||
<div class="disqus-comments">
|
||||
{% include disqus.html %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -41,8 +41,10 @@ layout: default
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row blog-comments">
|
||||
{% if page.comments %}
|
||||
<div class="row disqus-comments">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% include disqus.html %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
20
css/main.css
20
css/main.css
@ -77,6 +77,16 @@ img::-moz-selection {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.disqus-comments {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.disqus-comments {
|
||||
margin-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Navbar --- */
|
||||
|
||||
.navbar-custom {
|
||||
@ -322,16 +332,6 @@ header.header-post .post-heading .post-subheading {
|
||||
border-bottom-left-radius: 5px;
|
||||
}
|
||||
|
||||
.blog-comments {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.blog-comments {
|
||||
margin-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Pager --- */
|
||||
|
||||
.pager li a {
|
||||
|
Loading…
Reference in New Issue
Block a user