feat: missing tweaks for feed writing
This commit is contained in:
parent
596cc0e1a3
commit
87a14e0624
3 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
|
||||
AddType text/plain .md
|
||||
AddType text/plain .atom
|
||||
AddType text/plain .rss
|
||||
|
||||
php_value upload_max_filesize 40M
|
||||
php_value post_max_size 42M
|
||||
|
@ -7,7 +9,7 @@ php_value post_max_size 42M
|
|||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
RewriteCond %{REQUEST_URI} !^/?(static|raw)/.*
|
||||
RewriteCond %{REQUEST_URI} !^/?(static|raw|robots\.txt).*
|
||||
RewriteRule (.*) router.php
|
||||
|
||||
Allow from all
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"twig/twig": "^3.0",
|
||||
"twig/markdown-extra": "^3.6",
|
||||
"league/commonmark": "^2.4",
|
||||
"spatie/yaml-front-matter": "^2.0"
|
||||
"spatie/yaml-front-matter": "^2.0",
|
||||
"laminas/laminas-feed": "^2.6"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
require_once 'mysql_adapter.php';
|
||||
|
||||
use Spatie\YamlFrontMatter\YamlFrontMatter;
|
||||
use Laminas\Feed\Writer\Feed;
|
||||
|
||||
class PostHandler extends MySQLAdapter {
|
||||
public $data_directory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue