feat: add many things

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2026-03-08 23:00:03 +01:00
parent 45353089c2
commit 5a5f9a3003
104 changed files with 23417 additions and 2027 deletions

View File

@@ -0,0 +1,9 @@
{# Reusable timestamp macro.
Renders relative time with local-time tooltip on hover.
Usage: {% from "components/timestamp.html.jinja" import timeago %}
{{ timeago(item.created_at) }}
{{ timeago(item.created_at, class="text-xs text-gray-400") }}
#}
{% macro timeago(value, class="") %}
<time datetime="{{ value }}" class="{{ class }}">{{ value | timeago }}</time>
{% endmacro %}