Metatag fixes, front end description work

This commit is contained in:
Alex 2026-06-08 15:10:12 -07:00
parent d09f49ed24
commit 2907e95d6b
13 changed files with 48 additions and 15 deletions

View file

@ -4,9 +4,12 @@
{% block metatitle %}{{post.title}} - Writing | Alex Daniels {% endblock %}
{% block twittertitle %}{{post.title}} - Writing | Alex Daniels{% endblock %}
{% block metadescription %}{{post.description }} {% endblock %}
{% block ogdescription %}{{post.description }} {% endblock %}
{% block twitterdescription %}{{post.description }} {% endblock %}
{% block metadescription %}{{post.description|striptags }} {% endblock %}
{% block ogdescription %}{{post.description|striptags}} {% endblock %}
{% block twitterdescription %}{{post.description|striptags }} {% endblock %}
{% block ogurl %}https://alexdaniels.me/words/{{post.url}}{% endblock %}
{% block twitterurl %}https://alexdaniels.me/words/{{post.url}}{% endblock %}
{% block body %}
<article class="post">

View file

@ -9,6 +9,9 @@
{% block ogdescription %}A truly random smattering of thoughts and feelings. Things may not always be relevant, but they will always be irreverant.{% endblock %}
{% block twitterdescription %}A truly random smattering of thoughts and feelings. Things may not always be relevant, but they will always be irreverant.{% endblock %}
{% block ogurl %}https://alexdaniels.me/words{% endblock %}
{% block twitterurl %}https://alexdaniels.me/words{% endblock %}
{% block body %}
<section class="posts">
<h2>Writing</h2>
@ -19,9 +22,10 @@
{% for post in posts %}
<li>
<article class="post">
<a href="/categories/{{post['urlSafeCategory']}}" class="category">{{post['category']}}</a>
<a href="/words/{{post['url']}}"><h4 class="title">{{post['title']}}</h4></a>
<time class="published">{{post['date']|date('l M d Y')}}</time>
<a href="/categories/{{post['urlSafeCategory']}}" class="category">{{ post['category'] }}</a>
<a href="/words/{{post['url']}}"><h4 class="title">{{post['title'] }}</h4></a>
<time class="published">{{post['date']|date('l M d Y') }}</time>
<div class="description">{{ post['description']|raw }}</div>
</article>
</li>
{% endfor %}