Commit graph

12 commits

Author SHA1 Message Date
Ruben
fa416d68c5 Add redirect option to metadata 2025-10-20 22:18:31 +02:00
Ruben
ea05d11452 Add support for custom page templates via metadata
Implement template selection based on metadata page_template field, with
support for both custom and default templates and automatic .php
extension handling
2025-10-15 19:30:27 +02:00
Ruben
dc4292f298 Add PDF file detection to item metadata
Add a new function to find PDF files in a directory and include the PDF
file path in the item metadata output
2025-10-14 21:08:57 +02:00
Ruben
d198b3f5fe Add test comment to static and router files 2025-10-03 13:17:00 +02:00
Ruben
0f9c8dabb5 Remove special docs template handling and use default template logic 2025-10-03 11:40:02 +02:00
Ruben
90ae20aea3 Remove asset handling from language extraction section
Move asset handling to after language extraction

The asset handling code was previously located in the language
extraction section, which could interfere with proper language
detection. This commit moves the asset handling code to after the
language extraction logic, ensuring that language detection works
correctly before any asset handling occurs.
2025-10-02 23:56:16 +02:00
Ruben
69243cb7b1 Move asset serving logic to before language extraction
Remove redundant static file serving logic for content directory
2025-10-02 23:51:54 +02:00
Ruben
0a1bc74fa6 Add static file serving from content directory
Only serve non-PHP/HTML/MD files as static assets Check mime type and
serve with appropriate content type
2025-10-02 23:40:51 +02:00
Ruben
45cfc6e1b7 Add support for serving custom assets from /custom/assets/ 2025-10-02 23:36:06 +02:00
Ruben
60ba4b5545 Implement directory content detection for list views
Add support for custom list-grid template Load directory metadata and
page content Improve directory handling logic
2025-10-02 22:50:31 +02:00
Ruben
d937ca6166 Add page template with metadata display and copyright translation
Add support for language translations in footer

Add page template to template resolution logic
2025-10-02 20:16:52 +02:00
Ruben
2994f7cf6d Initial commit 2025-10-02 16:54:47 +02:00