Commit graph

31 commits

Author SHA1 Message Date
Valentin Gagarin 256dec05c4 implement raw assets
this allows adding files to the output as they are
2024-11-13 13:44:47 +01:00
Valentin Gagarin a5e1810fba add past events and list them on a page 2024-11-13 13:44:47 +01:00
Valentin Gagarin 5735d95dac add event content type 2024-11-13 13:44:47 +01:00
Valentin Gagarin 07e76918dc make template overrides take final and prev 2024-11-13 13:44:47 +01:00
Valentin Gagarin 696856077a fix semantics: wrap content body into section 2024-11-13 13:44:47 +01:00
Valentin Gagarin 34f86d0632 override page template for articles 2024-11-13 13:44:47 +01:00
Valentin Gagarin 0614c7c9c7 make page templates granularly overridable 2024-11-13 13:44:47 +01:00
Valentin Gagarin 2dcc531374 move things to more appropriate places 2024-11-13 13:44:47 +01:00
Valentin Gagarin 1e9fad633c unify template parameters 2024-11-13 13:44:47 +01:00
Valentin Gagarin 9555548c18 separate DOM mapping and generic templating
the templates collection will soon only be there for reusable snippets,
while the HTML representation of document types will be attached to
those types directly.
2024-11-13 13:44:47 +01:00
Valentin Gagarin b959db0ae9 render content via structured DOM representation 2024-11-13 13:44:47 +01:00
Valentin Gagarin 7f6bc781fd formatting 2024-11-13 13:44:47 +01:00
Valentin Gagarin c21f6e3a90 don't use outPath any more
- links are constructed explicitly, relative to the current page's
location
- templates are called explicitly by output type
2024-11-13 13:44:47 +01:00
Valentin Gagarin 5dfaae73bf let navigation have its own template 2024-11-13 13:44:47 +01:00
Valentin Gagarin 0b0511f8f4 set a default location for documents
it turns out that setting a value appends to that.
the default only needs to be overridden when the symbolic name of the
document changes. while there's a chance people will inadvertently break
links that way, it's requires less up-front knowledge to work with.
2024-11-13 13:44:47 +01:00
Valentin Gagarin cbfd4830cc allow prefixing output paths of collection items 2024-11-13 13:44:47 +01:00
Valentin Gagarin 3fd7272b73 allow menu entries to be subtypes of page
with an example
2024-11-13 13:44:47 +01:00
Valentin Gagarin aace88f1d7 split content types into separate files 2024-11-13 13:44:47 +01:00
Valentin Gagarin 684658f694 implement correct-by-construction relative links 2024-11-13 13:44:47 +01:00
Valentin Gagarin 4a7db7c5f2 stricter type for articles 2024-11-13 13:44:47 +01:00
Valentin Gagarin 1b91524b0c separate templating from file system outputs 2024-11-13 13:44:47 +01:00
Valentin Gagarin 5f95cb2ba6 extract generic document type 2024-11-13 13:44:47 +01:00
Valentin Gagarin 61e32446dd implement navigation 2024-11-13 13:44:47 +01:00
Valentin Gagarin a9ea5775ce add TODO 2024-11-13 13:44:47 +01:00
Valentin Gagarin b2ce56d640 extract presentation module 2024-11-13 13:44:47 +01:00
Valentin Gagarin f628c5d7ce add some documentation 2024-11-13 13:44:47 +01:00
Valentin Gagarin 2a1c2a5902 split content types into module 2024-11-13 13:44:47 +01:00
Valentin Gagarin 1d75b30537 move custom type into custom lib 2024-11-13 13:44:47 +01:00
Valentin Gagarin f7898e1775 add TODOs 2024-11-13 13:44:47 +01:00
Valentin Gagarin a41577a52d implement collections 2024-11-13 13:44:47 +01:00
Valentin Gagarin 570e83503f modularize 2024-11-13 13:44:47 +01:00