Added more customization points in layout for pages, posts, comments, and meta data.

This commit is contained in:
Brandon Mathis 2012-06-06 01:04:17 -05:00
parent fb34144d80
commit f414f7ad65
9 changed files with 24 additions and 21 deletions

View File

@ -0,0 +1,7 @@
<section>
<h1>Comments</h1>
{% include custom/comments.html %}
{% if site.disqus_short_name %}
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
{% endif %}
</section>

View File

@ -0,0 +1 @@
{% comment %} Add content at the bottom of every page {% endcomment %}

View File

@ -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 %}

View File

@ -0,0 +1 @@
{% comment %} Add content to the meta section after any page. {% endcomment %}

View File

@ -0,0 +1 @@
{% comment %} Add content to the meta section after any post. {% endcomment %}

View File

@ -0,0 +1,5 @@
<p class="meta">
{% include post/author.html %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% if page.categories %}{% include post/categories.html %}{% endif %}
</p>

View File

@ -13,23 +13,15 @@ layout: default
{{ content }}
{% unless page.footer == false %}
<footer>
{% if page.date or page.author %}<p class="meta">
{% if page.author %}{% include post/author.html %}{% endif %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% if page.categories %}{% include post/categories.html %}{% endif %}
</p>{% endif %}
<p class="meta">{% include post/meta.html %}{% include custom/page-meta.html %}</p>
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
</footer>
{% endunless %}
</article>
{% if site.disqus_short_name and page.comments == true %}
<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
</section>
{% endif %}
{% include custom/after_page.html %}
{% if page.comments == true %}{% include comments.html %}{% endif %}
</div>
{% unless page.sidebar == false %}
<aside class="sidebar">

View File

@ -9,9 +9,8 @@ single: true
{% include article.html %}
<footer>
<p class="meta">
{% include post/author.html %}
{% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
{% include post/categories.html %}
{% include post/meta.html %}
{% include custom/post_meta.html %}
</p>
{% unless page.sharing == false %}
{% include post/sharing.html %}
@ -26,12 +25,7 @@ single: true
</p>
</footer>
</article>
{% if site.disqus_short_name and page.comments == true %}
<section>
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
</section>
{% endif %}
{% if page.comments == true %}{% include comments.html %}{% endif %}
</div>
{% unless page.sidebar == false %}
<aside class="sidebar">
@ -42,4 +36,3 @@ single: true
{% endif %}
</aside>
{% endunless %}