{{/* Article template — ported from theme/single.php (minus likes/comments/login, which have no place on a static site). */}} {{ define "main" }}
{{/* Who wrote it. The members area writes `author` into the frontmatter when it publishes, and `author_url` only when that person has published their own page — so the name is a link when there is somewhere to go and plain text when there is not. Posts written before this, and anything migrated from WordPress, simply have neither and show nothing. */}} {{ with .Params.author }} por {{ with $.Params.author_url }} {{ $.Params.author }} {{ else }} {{ . }} {{ end }} {{ end }} {{/* Said where the post is read, beside the date — not under the text, where a disclosure arrives after the thing it discloses. Written by whoever published it, in the frontmatter; translate.py copies the key into the German and Portuguese siblings by itself, which is right: a translated post was still machine-written. */}} {{ if .Params.ai_generated }} {{ partial "t.html" (dict "key" "ai" "lang" .Site.Language.Lang) }} {{ end }} {{/* And whether somebody put it at the top on purpose, so a reader arriving from the home page knows why it was first. */}} {{ if .Params.pinned }}{{ partial "t.html" (dict "key" "pinned" "lang" .Site.Language.Lang) }}{{ end }}

{{ .Title }}

{{/* Twice on purpose: here for the reader who decides to send it to somebody the moment they see what it is, and again after the text for the one who decides having read it. */}} {{ partial "share.html" . }} {{/* An event leads with the three things somebody needs before they read a word: when, what time, and where. Everything else on the page is the same article it would otherwise be. */}} {{ with .Params.event_date }} {{ $when := . | time.AsTime }} {{ end }} {{ with .Description }}

{{ . }}

{{ end }} {{ with .Params.image }} {{ $.Params.image_alt | default $.Title }} {{ end }}
{{ .Content }}
{{/* Questions and answers, written in the editor as one `pregunta|respuesta` per line. Rendered here as well as in the FAQPage schema: structured data describing something a visitor cannot see is exactly what search engines penalise. */}} {{ with .Params.faq }}

Preguntas frecuentes

{{ range . }} {{ $parts := split . "|" }} {{ if ge (len $parts) 2 }}
{{ trim (index $parts 0) " " }}
{{ trim (delimit (after 1 $parts) "|") " " }}
{{ end }} {{ end }}
{{ end }} {{ partial "share.html" . }} ← Volver al inicio {{/* Only on this template: the home page and the lists carry no share row, so they should not carry its script either. Fingerprinted and deferred like the others. */}} {{ $share := resources.Get "js/share.js" | minify | fingerprint }}
{{ end }}