Files
m038 63a826fc8e chore: switch active trip to italy-2026-demo, remove japan-korea-2026
- active_trip: italy-2026-demo in site.yaml (was japan-korea-2026)
- post-form.md parent updated to /trips/italy-2026-demo/dailies
- Remove japan-korea-2026 trip pages (no real trip exists)
- Remove stale old italy-2026-demo entries/stories/GPX from git tracking
  (these were leftover from before the demo-source approach)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
2026-06-20 22:00:37 +02:00

103 lines
2.0 KiB
Markdown

---
title: 'New Entry'
template: post-form
access:
site.login: true
# Keep in sync with active_trip in user/config/site.yaml
pageconfig:
parent: '/trips/italy-2026-demo/dailies'
slug_field: 'date,title'
overwrite_mode: false
pagefrontmatter:
template: entry
published: true
form:
name: new-entry
action: /post
enctype: multipart/form-data
fields:
-
name: title
label: Title
type: text
autofocus: true
validate:
required: true
-
name: date
label: Date & Time
type: datetime
default: now
format: 'Y-m-d H:i'
validate:
required: true
-
name: content
label: "What happened today?"
type: textarea
rows: 10
validate:
required: true
-
name: photos
label: Photos (max 4)
type: filepond
multiple: true
destination: '@self'
limit: 4
accept:
- 'image/*'
-
name: lat
label: Latitude
type: text
placeholder: 'tap "Get Location" below'
-
name: lng
label: Longitude
type: text
placeholder: ''
-
name: location_city
label: City
type: text
placeholder: 'e.g. Kyoto'
-
name: location_country
label: Country
type: text
placeholder: 'e.g. Japan'
-
name: weather_temp_c
type: hidden
-
name: weather_desc
type: hidden
novalidate: true
buttons:
-
type: submit
value: Post Daily
classes: btn-post
process:
add_page: true
upload: true
message: 'Entry posted successfully!'
reset: true
---