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 }} {{ content }}
{% unless page.footer == false %} {% unless page.footer == false %}
<footer> <footer>
{% if page.date or page.author %}<p class="meta"> <p class="meta">{% include post/meta.html %}{% include custom/page-meta.html %}</p>
{% 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 %}
{% unless page.sharing == false %} {% unless page.sharing == false %}
{% include post/sharing.html %} {% include post/sharing.html %}
{% endunless %} {% endunless %}
</footer> </footer>
{% endunless %} {% endunless %}
</article> </article>
{% if site.disqus_short_name and page.comments == true %} {% include custom/after_page.html %}
<section> {% if page.comments == true %}{% include comments.html %}{% endif %}
<h1>Comments</h1>
<div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
</section>
{% endif %}
</div> </div>
{% unless page.sidebar == false %} {% unless page.sidebar == false %}
<aside class="sidebar"> <aside class="sidebar">

View File

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