figbert.com-website

[ACTIVE] the website and home of figbert on the clearnet
git clone git://git.figbert.com/figbert.com-website.git
Log | Files | Refs | README | LICENSE

commit 5349be543e9360cfd9cdd9ef9f5913bb40cba76e
parent a4abce0c77c135e28675103e081401fef93e752a
Author: FIGBERT <figbert@figbert.com>
Date:   Sun, 30 Aug 2020 00:30:05 -0700

:art: Add indieweb formatting to article template

Diffstat:
Mtemplates/article.html | 18+++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/templates/article.html b/templates/article.html @@ -53,11 +53,19 @@ {% endblock %} {% block content %} - <div> - <h1>{{ page.title }}</h1> - <small>{{ page.date | date(format="%B %d, %Y") }}</small> + <div class="h-entry"> + <div> + <a class="hidden u-url u-uid" href="{{ current_url }}" rel="me">FIGBERT</a> + <a class="hidden p-author h-card" href="{{ config.base_url }}">FIGBERT</a> + <h1 class="p-name">{{ page.title }}</h1> + <small><time class="dt-published" datetime="{{ page.date }}">{{ page.date | date(format="%B %d, %Y") }}</time></small> + {% if page.summary -%} + <p class="hidden p-summary">{{ page.summary | safe | striptags }}</p> + {% else %} + <p class="hidden p-summary">{{ page.content | safe | striptags | truncate(length=300) }}</p> + {%- endif %} + </div> + <div class="e-content">{{ page.content | safe }}</div> </div> - - <div>{{ page.content | safe }}</div> {% endblock content %}