RSS for posts

This commit is contained in:
Bad Manners 2025-04-19 09:03:40 -03:00
parent bb118f6144
commit 8fac396d7e
13 changed files with 233 additions and 14 deletions

View file

@ -0,0 +1,11 @@
<h1>
{% if let Some(title) = post.title %}{{ title }}{% else %}Details{% endif %}
</h1>
{% match post.media_type.as_ref() %}{% when "image" %}
<img src="{{ base_url }}/files/{{ post.media }}" />
{% when "video" %}
<video src="{{ base_url }}/files/{{ post.media }}" controls="true"></video>
{% else %}{% endmatch %}{% if let Some(description) = post.description %}
<h2>Description</h2>
<div>{{ description | markdown }}</div>
{% endif %}