Files
intotheeast-com-content/pages/02.post/post-form.md
T
m038 c928fff92e Improve post slug: date + time + title
Slug format: 2026-06-18-1430-arrived-in-tokyo
- Eliminates one-post-per-day collision (BUG TC-P.10)
- URL is stable after creation (time baked in, title change doesn't affect it)
- regex_replace strips non-alphanumeric chars; trim('-') cleans edges

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 13:45:35 +02:00

2.5 KiB

title, template, access, login_redirect_here, form
title template access login_redirect_here form
New Entry post-form
site.login
true
true
name action enctype fields buttons process
new-entry /post multipart/form-data
name label type autofocus validate
title Title text true
required
true
name label type default format validate
date Date & Time datetime now Y-m-d H:i
required
true
name label type rows validate
content What happened today? textarea 10
required
true
name label type multiple destination limit accept
photos Photos (max 4) file true user://pages/01.tracker 4
image/*
name label type placeholder
lat Latitude text tap "Get Location" below
name label type placeholder
lng Longitude text
name label type placeholder
location_city City text e.g. Kyoto
name label type placeholder
location_country Country text e.g. Japan
name type
weather_temp_c hidden
name type
weather_desc hidden
type value classes
submit Post Entry btn-post
add-page-by-form
parent slug template frontmatter
/tracker {{ form.value.date|date('Y-m-d-Hi') }}-{{ form.value.title|lower|regex_replace('/[^a-z0-9]+/', '-')|trim('-') }} entry
title date lat lng location_city location_country weather_temp_c weather_desc
{{ form.value.title }} {{ form.value.date }} {{ form.value.lat }} {{ form.value.lng }} {{ form.value.location_city }} {{ form.value.location_country }} {{ form.value.weather_temp_c }} {{ form.value.weather_desc }}
message
Entry posted successfully!
reset
true