diff --git a/source/_includes/comments.html b/source/_includes/comments.html new file mode 100644 index 0000000..c910032 --- /dev/null +++ b/source/_includes/comments.html @@ -0,0 +1,7 @@ +
+

Comments

+ {% include custom/comments.html %} + {% if site.disqus_short_name %} +
{% include post/disqus_thread.html %}
+ {% endif %} +
diff --git a/source/_includes/custom/after_page.html b/source/_includes/custom/after_page.html new file mode 100644 index 0000000..c537f59 --- /dev/null +++ b/source/_includes/custom/after_page.html @@ -0,0 +1 @@ +{% comment %} Add content at the bottom of every page {% endcomment %} diff --git a/source/_includes/custom/after_post.html b/source/_includes/custom/after_post.html new file mode 100644 index 0000000..e69de29 diff --git a/source/_includes/custom/comments.html b/source/_includes/custom/comments.html new file mode 100644 index 0000000..c5202f3 --- /dev/null +++ b/source/_includes/custom/comments.html @@ -0,0 +1,3 @@ +{% comment %} +To use a custom comment system, add the javascript to custom/after_footer.html then add the container for your comments here. +{% endcomment %} diff --git a/source/_includes/custom/page_meta.html b/source/_includes/custom/page_meta.html new file mode 100644 index 0000000..a93e18e --- /dev/null +++ b/source/_includes/custom/page_meta.html @@ -0,0 +1 @@ +{% comment %} Add content to the meta section after any page. {% endcomment %} diff --git a/source/_includes/custom/post_meta.html b/source/_includes/custom/post_meta.html new file mode 100644 index 0000000..9c8c85c --- /dev/null +++ b/source/_includes/custom/post_meta.html @@ -0,0 +1 @@ +{% comment %} Add content to the meta section after any post. {% endcomment %} diff --git a/source/_includes/post/meta.html b/source/_includes/post/meta.html new file mode 100644 index 0000000..37e9cdf --- /dev/null +++ b/source/_includes/post/meta.html @@ -0,0 +1,5 @@ +

+{% include post/author.html %} +{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %} +{% if page.categories %}{% include post/categories.html %}{% endif %} +

diff --git a/source/_layouts/page.html b/source/_layouts/page.html index 8ba6ec9..2837a98 100644 --- a/source/_layouts/page.html +++ b/source/_layouts/page.html @@ -13,23 +13,15 @@ layout: default {{ content }} {% unless page.footer == false %} {% endunless %} -{% if site.disqus_short_name and page.comments == true %} -
-

Comments

-
{% include post/disqus_thread.html %}
-
-{% endif %} +{% include custom/after_page.html %} +{% if page.comments == true %}{% include comments.html %}{% endif %} {% unless page.sidebar == false %}