Commit graph

22 commits

Author SHA1 Message Date
Ruben
24ee209e17 Add plugin system and improve language handling
Add global and page-level plugin support Implement language-aware
content filtering Add month translations to language files Refactor date
formatting to use translations Move translation loading to plugin system
Improve content availability checks
2025-11-11 23:36:53 +01:00
Ruben
875408a27c Add Open Graph tags functionality 2025-11-04 23:00:53 +01:00
Ruben
6879fad5fb Add page-specific CSS support
Add helper function to find page-specific CSS files Add CSS loading to
base template Update rendering functions to include page CSS Update
router to include page CSS for static pages
2025-11-03 23:04:16 +01:00
Ruben
0b84615bf9 Add meta description support to pages
Add description meta tag to base template Fix navigation list structure
in header Add meta description extraction helper function Update
rendering and routing to include meta description
2025-11-03 22:30:49 +01:00
Ruben
673c02d237 Update PHP version to 8.4 and add property hooks 2025-11-01 23:33:09 +01:00
Ruben
32449d2edd Refactor template and content handling logic
Add constants for file extensions

Extract helper functions for common operations

Improve PDF file detection

Simplify directory scanning operations

Standardize template resolution

Optimize content rendering pipeline
2025-11-01 22:54:42 +01:00
Ruben
149ba03359 Add modular architecture to router
Extract configuration, helpers, content processing, and rendering logic
into separate files

Refactor router to use modular components
2025-11-01 22:50:02 +01:00
Ruben
eda800d048 Skip system files when finding content files 2025-11-01 20:15:37 +01:00
Ruben
b507a0c676 Add multi-file page support and improve documentation
Update README to explain multi-file page functionality Add example
content files demonstrating the feature Improve folder type detection
logic Implement new routing for page-type folders Add support for mixed
content types in single pages Update navigation and metadata handling
for multi-file pages Remove legacy frontpage.php in favor of multi-file
approach Improve file-based routing documentation Add examples of
different content types working together Update router to handle
multi-file content rendering Implement proper sorting of content files
Add best practices for multi-file content organization
2025-11-01 18:20:23 +01:00
Ruben
4c697122ab Add demo content and documentation for FolderWeb
Add about page with project philosophy and technical details

Add articles about Markdown, templates, and getting started

Implement demo content system that shows when no user content exists

Update logo to show FolderWeb branding

Improve Apache configuration for development environment
2025-11-01 16:47:15 +01:00
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