{%- set preview = get_env(name="PW_PREVIEW", default="") == "1" -%} {%- set seo = load_data(path="data/seo.json") -%} {%- set lang = "da" -%} {%- set noindex = preview -%} {%- set alternates = [] -%} {%- set titel = "" -%} {%- set desc = config.description -%} {%- set sti = "/404" -%} {%- set artikel = false -%} {%- if page -%}{%- set meta = page -%}{%- elif section -%}{%- set meta = section -%}{%- endif -%} {%- if current_path -%}{%- set sti = current_path | trim_end(pat="/") -%}{%- endif -%} {%- if sti == "" -%}{%- set sti = "/" -%}{%- endif -%} {%- if meta -%} {%- if meta.title -%}{%- set titel = meta.title -%}{%- endif -%} {%- if meta.description -%}{%- set desc = meta.description -%}{%- endif -%} {%- if meta.extra.lang -%}{%- set lang = meta.extra.lang -%}{%- endif -%} {%- if meta.extra.noindex -%}{%- set noindex = true -%}{%- endif -%} {%- if meta.extra.alternates -%}{%- set alternates = meta.extra.alternates -%}{%- endif -%} {%- if page and page.date -%}{%- set artikel = true -%}{%- endif -%} {%- elif term -%} {%- set titel = "#" ~ term.name -%}{%- set desc = "Indlæg om " ~ term.name ~ "." -%}{%- set noindex = true -%} {%- elif taxonomy -%} {%- set titel = "Tags" -%}{%- set desc = "Alle emner på bloggen." -%}{%- set noindex = true -%} {%- else -%} {%- set titel = "404" -%} {%- endif -%} {%- if titel -%}{%- set sidetitel = titel ~ " · " ~ config.title -%}{%- else -%}{%- set sidetitel = config.title ~ " · Datalog & Technical Solution Architect" -%}{%- endif -%} {%- set kanonisk = config.extra.site ~ sti -%} {% include "partials/banner.html" %} {% include "partials/theme.html" %} {{ sidetitel }} {%- for a in alternates %} {%- if a.lang == "da" %} {%- endif %} {%- endfor %} {%- if artikel %} {%- for t in page.taxonomies.tags or page.extra.tags or [] %} {%- endfor %} {%- endif %} {%- if not preview %} {%- endif %} {{ }} {%- block jsonld %}{% endblock %} {% include "partials/matomo.html" %} {%- if not preview %} {%- endif %} {%- if preview %}
UDKAST, ikke udgivet. Tilbage til godkendelse
{%- endif %} {%- set nav = config.extra.nav_en if lang == "en" else config.extra.nav %} {%- set hjem = "/en" if lang == "en" else "/" %} {%- set andet = [a for a in alternates if a.lang != lang] | first %} {% include "partials/header.html" %}
{% block main %}{% endblock %}
{% include "partials/footer.html" %} {% include "partials/palette.html" %} {% include "partials/cookie.html" %} {% include "partials/konami.html" %}