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
7 lines
187 B
PHP
7 lines
187 B
PHP
<?php
|
|
|
|
// Content file extensions
|
|
define('CONTENT_EXTENSIONS', ['md', 'html', 'php']);
|
|
|
|
// Cover image extensions
|
|
define('COVER_IMAGE_EXTENSIONS', ['jpg', 'jpeg', 'png', 'webp', 'gif']);
|