working draft of thoughts

This commit is contained in:
2026-11-05 11:58:07 +00:00
parent 5aa828852a
commit e60475cc93
13 changed files with 575 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
{{- $thoughts := where site.RegularPages "Type" "thoughts" -}}
{{- $thoughts = $thoughts.ByDate.Reverse -}}
{{- with first 3 $thoughts -}}
<section class="thoughts-preview" aria-labelledby="thoughts-preview-heading">
<div class="thoughts-preview-header">
<h2 id="thoughts-preview-heading">Thoughts</h2>
<a class="thoughts-all-link" href="{{ "thoughts/" | relLangURL }}">All thoughts <span aria-hidden="true">&rarr;</span></a>
</div>
<div class="thoughts-grid">
{{- range . }}
<a class="thought-card" href="{{ "thoughts/" | relLangURL }}#{{ partial "thought_anchor.html" . }}">
<span class="thought-card-text">{{ partial "thought_text.html" . }}</span>
</a>
{{- end }}
</div>
</section>
{{- end -}}