{{/* 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 }}

{{ .Title }}

{{/* 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 }} ← Volver al inicio
{{ end }}