mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-25 08:58:49 -05:00
Improved support for adding author metadata to pages
This commit is contained in:
parent
20de112526
commit
d6744967fa
@ -1,5 +1,7 @@
|
|||||||
{% if post.author %}
|
{% if post.author %}
|
||||||
{% assign author = post.author %}
|
{% assign author = post.author %}
|
||||||
|
{% elsif page.author %}
|
||||||
|
{% assign author = page.author %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign author = site.author %}
|
{% assign author = site.author %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -11,7 +11,11 @@ layout: default
|
|||||||
{{ content }}
|
{{ content }}
|
||||||
{% unless page.footer == false %}
|
{% unless page.footer == false %}
|
||||||
<footer>
|
<footer>
|
||||||
{% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
|
{% if page.date or page.author %}<p class="meta">
|
||||||
|
{% if page.author %}{% include post/author.html %}{% endif %}
|
||||||
|
{% include post/date.html %}
|
||||||
|
{% 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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user