{% extends "base.html" %} {% block jsonld %} {%- set url = config.extra.site ~ (page.path | trim_end(pat="/")) -%} {%- set tags = page.taxonomies.tags or [] -%} {{ }} {% endblock %} {% block main %}
{{ page.date | date(format="d. MMMM y", locale="da") }}

{{ page.title }}

{%- if page.taxonomies.tags %}
{% for t in page.taxonomies.tags %}#{{ t }}{% endfor %}
{%- endif %}
{#- Billeder i bundlen serveres som webp; markdown bruger bare ![tekst](fil.png). -#} {%- set indhold = page.content %} {%- for a in page.assets %} {%- set fil = a | split(pat="/") | last %} {%- set fra = 'src="' ~ config.base_url ~ page.path ~ fil ~ '"' %} {%- if fil is ending_with(pat=".png") or fil is ending_with(pat=".jpg") or fil is ending_with(pat=".jpeg") or fil is ending_with(pat=".webp") %} {%- set b = resize_image(path="blog/" ~ page.slug ~ "/" ~ fil, width=1200, height=10000, op="fit", format="webp", quality=80) %} {%- set_global indhold = indhold | replace(from=fra, to='src="' ~ (b.url | replace(from=config.base_url, to="")) ~ '" width="' ~ b.width ~ '" height="' ~ b.height ~ '" loading="lazy" decoding="async"') %} {%- else %} {%- set_global indhold = indhold | replace(from=fra, to='src="' ~ page.path ~ fil ~ '"') %} {%- endif %} {%- endfor %}
{{ indhold | safe }}
{%- if not preview %}

Kommentarer

{%- endif %} {% endblock %}