Commit graph

10 commits

Author SHA1 Message Date
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
1503e2c066 Add support for custom assets directory
Add handling for files starting with 'assets/' to serve from custom
directory similar to other static assets
2025-10-02 23:47:59 +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
19bb105303 Fix static file path handling for security
Use REQUEST_URI and parse_url to properly handle paths Prevent directory
traversal with stricter sanitization
2025-10-02 17:19:15 +02:00
Ruben
2994f7cf6d Initial commit 2025-10-02 16:54:47 +02:00