From cf364bc2984ee3cb103002581f8dfc88bdef3a85 Mon Sep 17 00:00:00 2001 From: Mischa Date: Sun, 21 Jun 2026 01:36:00 +0200 Subject: [PATCH] feat: add blueprints for active_trip/travelling config, tagline, featured fields --- blueprints/config/site.yaml | 20 +++++++++++++ config/site.yaml | 3 +- .../04.stories/02.val-dorcia-at-dawn/story.md | 1 + .../04.stories/02.val-dorcia-at-dawn/story.md | 30 +++++++++++++++++++ themes/intotheeast/blueprints/entry.yaml | 12 ++++++++ themes/intotheeast/blueprints/story.yaml | 12 ++++++++ themes/intotheeast/blueprints/trip.yaml | 6 ++++ 7 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 blueprints/config/site.yaml create mode 100644 pages/01.trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md diff --git a/blueprints/config/site.yaml b/blueprints/config/site.yaml new file mode 100644 index 0000000..514cf16 --- /dev/null +++ b/blueprints/config/site.yaml @@ -0,0 +1,20 @@ +form: + validation: loose + fields: + active_trip: + type: pages + label: Active Trip + start_route: '/trips' + show_root: false + show_slug: true + + travelling: + type: toggle + label: Currently Travelling + highlight: 1 + default: false + options: + 1: 'Yes' + 0: 'No' + validate: + type: bool diff --git a/config/site.yaml b/config/site.yaml index b44fb7e..a4b2337 100644 --- a/config/site.yaml +++ b/config/site.yaml @@ -6,4 +6,5 @@ author: taxonomies: [category, tag] metadata: description: 'Into the East — travel journal' -active_trip: italy-2026-demo +active_trip: /trips/italy-2026-demo +travelling: true diff --git a/docs/demo/trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md b/docs/demo/trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md index fecdee2..390cbbb 100644 --- a/docs/demo/trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md +++ b/docs/demo/trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md @@ -8,6 +8,7 @@ lng: 11.676 hero_image: hero.jpg hero_alt: Wide Tuscan valley at dawn, long cypress shadows across pale gravel road published: true +featured: true --- We left before the heat arrived. The alarm was five-thirty and the sky outside the tent was still more grey than blue. The valley was invisible in the dark except as an absence — a vast silence below us where the shapes of hills ought to be. By six the light had changed. The Val d'Orcia is one of those landscapes that photographers wait years to shoot at this hour, and you can see why: the light arrives at an angle that makes everything look like something from a different century. diff --git a/pages/01.trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md b/pages/01.trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md new file mode 100644 index 0000000..390cbbb --- /dev/null +++ b/pages/01.trips/italy-2026-demo/04.stories/02.val-dorcia-at-dawn/story.md @@ -0,0 +1,30 @@ +--- +title: "Val d'Orcia at Dawn" +date: '2026-09-05' +location_name: Val d'Orcia +location_country: Italy +lat: 43.078 +lng: 11.676 +hero_image: hero.jpg +hero_alt: Wide Tuscan valley at dawn, long cypress shadows across pale gravel road +published: true +featured: true +--- + +We left before the heat arrived. The alarm was five-thirty and the sky outside the tent was still more grey than blue. The valley was invisible in the dark except as an absence — a vast silence below us where the shapes of hills ought to be. By six the light had changed. The Val d'Orcia is one of those landscapes that photographers wait years to shoot at this hour, and you can see why: the light arrives at an angle that makes everything look like something from a different century. + +[snap-gallery images="hero.jpg,photo-1.jpg,photo-2.jpg" captions="Six in the morning: the valley belongs entirely to the light,The Cypress Road — every photograph of Tuscany was taken here or somewhere like it,A farmhouse that has been sitting on this hill for four hundred years" alts="Wide misty Tuscan valley at dawn with long shadows,Straight road lined by tall cypress trees in morning light,Stone farmhouse on a hilltop with rolling landscape behind" /] + +The roads down here are white gravel — strade bianche — and the tyres make a particular sound on them that you don't get anywhere else. We rode for two hours without seeing a car. The only other people were two elderly men walking a dog in the opposite direction. They waved. + +[chapter-break image="photo-1.jpg" title="The Hour Before Heat" alt="Cypress road vanishing into a hazy summer morning" /] + +By nine the temperature had already shifted. The quality of the light changed — softer, more diffuse, the sky turning white at the edges. The windows of the farmhouses began to open. Dogs that had been invisible in the dark became visible on walls and in doorways, watching us with professional detachment. + +[snap-gallery images="photo-2.jpg,hero.jpg" captions="The road changes from asphalt to gravel to packed earth and back again without warning,The valley floor at nine: the shadows have shortened, the colours have flattened" alts="Farmhouse detail with terracotta roof and single cypress tree,Tuscan valley road in mid-morning haze" /] + +[pull-quote] +The best hours of a cycling day are the ones nobody else sees. Before the heat arrives, before the cafes open, before the traffic comes. Everything belongs to you then. +[/pull-quote] + +We reached Pienza at eleven-thirty. The ice-cream queue was eight deep and entirely justified. diff --git a/themes/intotheeast/blueprints/entry.yaml b/themes/intotheeast/blueprints/entry.yaml index fb6c3dc..5b9b4a8 100644 --- a/themes/intotheeast/blueprints/entry.yaml +++ b/themes/intotheeast/blueprints/entry.yaml @@ -86,3 +86,15 @@ form: 0: 'No' validate: type: bool + + header.featured: + type: toggle + label: Featured highlight + help: 'Show as a homepage highlight when not travelling' + highlight: 1 + default: 0 + options: + 1: 'Yes' + 0: 'No' + validate: + type: bool diff --git a/themes/intotheeast/blueprints/story.yaml b/themes/intotheeast/blueprints/story.yaml index 5692901..5d60bfc 100644 --- a/themes/intotheeast/blueprints/story.yaml +++ b/themes/intotheeast/blueprints/story.yaml @@ -111,3 +111,15 @@ form: 0: 'No' validate: type: bool + + header.featured: + type: toggle + label: Featured highlight + help: 'Show as a homepage highlight when not travelling' + highlight: 1 + default: 0 + options: + 1: 'Yes' + 0: 'No' + validate: + type: bool diff --git a/themes/intotheeast/blueprints/trip.yaml b/themes/intotheeast/blueprints/trip.yaml index 79ee597..6a4c1e8 100644 --- a/themes/intotheeast/blueprints/trip.yaml +++ b/themes/intotheeast/blueprints/trip.yaml @@ -49,6 +49,12 @@ form: placeholder: 'https://photos.google.com/...' help: 'Link to external photo album for this trip' + header.tagline: + type: text + label: Tagline + placeholder: '6 weeks from Venice to Sicily by train' + help: 'Short description shown on homepage highlight cards' + publishing: type: tab title: Publishing