{{ define "title" }}
{{- .Title -}}
{{ end }}

{{ define "main"}}

{{ if site.Params.zenMode }}
<div class="max-w-[65ch] mt-4 mx-auto">
{{ else }}
<div class="flex flex-col md:flex-row mt-4">
{{ end }}
  <div class="md:basis-[200px] lg:basis-[300px] p-4 prose dark:prose-invert">
    <h1 class="text-2xl">
      {{- .Title -}}
    </h1>
    <p class="text-sm">
      {{- T "article" (len .Pages) -}}
    </p>
    <div class="flex flex-wrap gap-4 mt-6">
      {{ $title := .Title }}

      {{ range (index site.Ta