mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-02-28 16:31:44 -05:00
Added more customization points in layout for pages, posts, comments, and meta data.
This commit is contained in:
parent
fb34144d80
commit
f414f7ad65
7
.themes/classic/source/_includes/comments.html
Normal file
7
.themes/classic/source/_includes/comments.html
Normal 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>
|
1
.themes/classic/source/_includes/custom/after_page.html
Normal file
1
.themes/classic/source/_includes/custom/after_page.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{% comment %} Add content at the bottom of every page {% endcomment %}
|
3
.themes/classic/source/_includes/custom/comments.html
Normal file
3
.themes/classic/source/_includes/custom/comments.html
Normal 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 %}
|
1
.themes/classic/source/_includes/custom/page_meta.html
Normal file
1
.themes/classic/source/_includes/custom/page_meta.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{% comment %} Add content to the meta section after any page. {% endcomment %}
|
1
.themes/classic/source/_includes/custom/post_meta.html
Normal file
1
.themes/classic/source/_includes/custom/post_meta.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{% comment %} Add content to the meta section after any post. {% endcomment %}
|
5
.themes/classic/source/_includes/post/meta.html
Normal file
5
.themes/classic/source/_includes/post/meta.html
Normal 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>
|
@ -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">
|
||||||
|
@ -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 %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user