diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 62e8cc9bf86..2ea1dadff8b 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -20,7 +20,7 @@ This serves two purposes: 2. At release time, you can move the Unreleased section changes into a new release version section. ### Added -- for new features. +- Added the existing `media_extensions` option to the `hyde` configuration file in https://github.com/hydephp/develop/pull/1531 ### Changed - Renamed local template variable `$document` to `$article` to better match the usage in https://github.com/hydephp/develop/pull/1506 diff --git a/config/hyde.php b/config/hyde.php index b05f8683950..c65a8375a6e 100644 --- a/config/hyde.php +++ b/config/hyde.php @@ -446,6 +446,10 @@ | */ + // Change the file extensions to be considered as media files and are copied to the output directory. + // If you want to add more extensions, add it to the empty merge array, or just override the entire array. + 'media_extensions' => array_merge([], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS), + // The list of directories that are considered to be safe to empty upon site build. // If the site output directory is set to a directory that is not in this list, // the build command will prompt for confirmation before emptying it. diff --git a/packages/framework/config/hyde.php b/packages/framework/config/hyde.php index b05f8683950..c65a8375a6e 100644 --- a/packages/framework/config/hyde.php +++ b/packages/framework/config/hyde.php @@ -446,6 +446,10 @@ | */ + // Change the file extensions to be considered as media files and are copied to the output directory. + // If you want to add more extensions, add it to the empty merge array, or just override the entire array. + 'media_extensions' => array_merge([], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS), + // The list of directories that are considered to be safe to empty upon site build. // If the site output directory is set to a directory that is not in this list, // the build command will prompt for confirmation before emptying it.