mirror of
https://github.com/zyllian/webdog.git
synced 2025-01-18 11:44:35 -08:00
22 lines
633 B
Text
22 lines
633 B
Text
<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>
|