feat: missing tweaks for feed writing

This commit is contained in:
David Bailey 2024-01-04 16:03:02 +01:00
parent 596cc0e1a3
commit 87a14e0624
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,7 @@
AddType text/plain .md AddType text/plain .md
AddType text/plain .atom
AddType text/plain .rss
php_value upload_max_filesize 40M php_value upload_max_filesize 40M
php_value post_max_size 42M php_value post_max_size 42M
@ -7,7 +9,7 @@ php_value post_max_size 42M
RewriteEngine On RewriteEngine On
RewriteBase / RewriteBase /
RewriteCond %{REQUEST_URI} !^/?(static|raw)/.* RewriteCond %{REQUEST_URI} !^/?(static|raw|robots\.txt).*
RewriteRule (.*) router.php RewriteRule (.*) router.php
Allow from all Allow from all

View file

@ -3,6 +3,7 @@
"twig/twig": "^3.0", "twig/twig": "^3.0",
"twig/markdown-extra": "^3.6", "twig/markdown-extra": "^3.6",
"league/commonmark": "^2.4", "league/commonmark": "^2.4",
"spatie/yaml-front-matter": "^2.0" "spatie/yaml-front-matter": "^2.0",
"laminas/laminas-feed": "^2.6"
} }
} }

View file

@ -3,6 +3,7 @@
require_once 'mysql_adapter.php'; require_once 'mysql_adapter.php';
use Spatie\YamlFrontMatter\YamlFrontMatter; use Spatie\YamlFrontMatter\YamlFrontMatter;
use Laminas\Feed\Writer\Feed;
class PostHandler extends MySQLAdapter { class PostHandler extends MySQLAdapter {
public $data_directory; public $data_directory;