zyllian.github.io/site/templates/blog/resource.tera

26 lines
748 B
Text
Raw Normal View History

2024-11-08 18:42:07 -08:00
{% extends "base.tera" %}
{% block content %}
2023-06-09 21:55:04 -07:00
<div class="blog-post">
2024-11-13 08:38:33 -08:00
<h1 class="title">{{ data.title }}</h1>
<span class="timestamp">published {{ data.timestamp }}</span>
{% if data.draft %}
2023-06-09 21:55:04 -07:00
<h2>DRAFT</h2>
2024-11-04 17:09:11 -08:00
{% endif %}
2023-06-09 21:55:04 -07:00
<div class="header-image-wrapper">
2024-11-13 08:38:33 -08:00
<p class="short-desc">{{ data.desc }}</p>
<img class="header-image" src="{{data.cdn_file}}" alt="{{data.header_image_alt}}"
style="object-fit: cover; object-position: 50% 50%">
2023-06-09 21:55:04 -07:00
</div>
<div class="content">
2024-11-13 08:38:33 -08:00
{{ data.content | safe }}
2023-06-09 21:55:04 -07:00
</div>
<hr />
2023-11-12 19:54:54 -08:00
<h3 class="tags-title">tags</h3>
2023-06-09 21:55:04 -07:00
<div class="post-tags">
2024-11-13 08:38:33 -08:00
{% for tag in data.tags %}
2024-11-04 17:09:11 -08:00
<a class="tag" href="/blog/tag/{{tag}}">{{tag}}</a>{% if not loop.last %},{% endif %}
{% endfor %}
2023-06-09 21:55:04 -07:00
</div>
</div>
2024-11-08 18:42:07 -08:00
{% endblock content %}