the webdog update

This commit is contained in:
zyl 2024-11-08 18:42:07 -08:00
parent 00c90a12d7
commit 3c43403089
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
26 changed files with 29 additions and 4752 deletions

View file

@ -0,0 +1,27 @@
{% extends "base.tera" %}
{% block content %}
{% if tag %}
<h1>blog posts tagged {{tag}}</h1>
<p><a href="/blog/">View all blog posts</a></p>
{% else %}
<h1>blog Posts</h1>
<p><a href="tags">view blog tags</a></p>
<p><a href="rss.xml">rss feed</a></p>
{% endif %}
<h1>Page {{page}}/{{page_max}}</h1>
{% if previous %}
<a href="./{{previous}}">previous page</a>
{% endif %}
{% if next %}
<a href="./{{next}}">next page</a>
{% endif %}
<div class="blog-post-list">
{% for resource in resources %}
<div class="post">
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
<p class="timestamp">{{resource.timestamp}}</p>
<p class="short-desc">{{resource.desc}}</p>
</div>
{% endfor %}
</div>
{% endblock content %}

View file

@ -0,0 +1,25 @@
{% extends "base.tera" %}
{% block content %}
<div class="blog-post">
<h1 class="title">{{title}}</h1>
<span class="timestamp">published {{timestamp}}</span>
{% if draft %}
<h2>DRAFT</h2>
{% endif %}
<div class="header-image-wrapper">
<p class="short-desc">{{desc}}</p>
<img class="header-image" src="{{cdn_file}}" alt="{{header_image_alt}}"
style="object-fit: cover; object-position: 50% 50%">
</div>
<div class="content">
{{ content | safe }}
</div>
<hr />
<h3 class="tags-title">tags</h3>
<div class="post-tags">
{% for tag in tags %}
<a class="tag" href="/blog/tag/{{tag}}">{{tag}}</a>{% if not loop.last %},{% endif %}
{% endfor %}
</div>
</div>
{% endblock content %}

View file

@ -0,0 +1 @@
<div>{{ desc | safe }}</div>