f537f32295
100-post fashion journal generated from ~/projects/ginger content: - Hugo Extended static site with TailwindCSS v4 - WebP image pipeline (thumb/card/og/full sizes via Hugo image processing) - Full SEO: sitemap (501 URLs), OpenGraph with per-post images, Twitter cards - Async page transitions via View Transitions API - Deep-linked URLs: /posts/[slug]/, /categories/[cat]/, /tags/[tag]/, /issues/ - Lightbox with keyboard/swipe nav, thumbnail strip, inverted search index - Issues archive with quarterly release structure - Multi-stage Dockerfile (Tailwind → Hugo → nginx:alpine) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
756 B
JSON
26 lines
756 B
JSON
{{- $posts := slice }}
|
|
{{- range (where .Site.RegularPages "Section" "posts") }}
|
|
{{- $img := .Resources.GetMatch "*.png" }}
|
|
{{- $thumb := "" }}
|
|
{{- $card := "" }}
|
|
{{- if $img }}
|
|
{{- $t := $img.Resize "300x450 webp" }}
|
|
{{- $c := $img.Resize "900x1350 webp" }}
|
|
{{- $thumb = $t.RelPermalink }}
|
|
{{- $card = $c.RelPermalink }}
|
|
{{- end }}
|
|
{{- $post := dict
|
|
"id" .Params.plate
|
|
"slug" .Params.slug
|
|
"title" .Title
|
|
"description" .Params.description
|
|
"categories" .Params.categories
|
|
"tags" .Params.tags
|
|
"thumb" $thumb
|
|
"card" $card
|
|
"url" .RelPermalink
|
|
}}
|
|
{{- $posts = $posts | append $post }}
|
|
{{- end }}
|
|
{{- $posts | jsonify }}
|