Add configurable file exclusion for Atom feeds
Replaces hardcoded script and style stripping with a substring-based exclusion list defined in custom/config.ini. Excluded files continue to render on actual web pages.
This commit is contained in:
parent
0866fe93ba
commit
a22281c896
3 changed files with 34 additions and 7 deletions
|
|
@ -85,6 +85,18 @@ To disable all plugins, leave the value empty:
|
|||
enabled = ""
|
||||
```
|
||||
|
||||
### `[feed]`
|
||||
|
||||
Exclude content files from Atom feed rendering. Files are matched by substring against their basename.
|
||||
|
||||
```ini
|
||||
[feed]
|
||||
exclude_files = "nyhetsbrev, petition-form"
|
||||
```
|
||||
|
||||
Comma-separated substrings. `"nyhetsbrev"` excludes `20-nyhetsbrev.php`, `_35-nyhetsbrev.php` etc.
|
||||
Excluded files still render on actual pages — only feed output is affected.
|
||||
|
||||
### Custom Sections
|
||||
|
||||
Add your own configuration sections for custom plugins:
|
||||
|
|
@ -275,6 +287,7 @@ FolderWeb doesn't enforce a schema—you can add any sections and keys you need.
|
|||
| `languages` | `default` | string | `"en"` | Default language code |
|
||||
| `languages` | `available` | string | `"en,no"` | Comma-separated language codes |
|
||||
| `plugins` | `enabled` | string | `"languages"` | Comma-separated plugin names |
|
||||
| `feed` | `exclude_files` | string | `""` | Comma-separated substrings to exclude from feed rendering |
|
||||
|
||||
All other sections are custom and plugin-specific.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue