Skip to content

Commit 56f18dc

Browse files
authored
Merge pull request #1531 from hydephp/improve-media-asset-handling
Add media extensions option to default config
2 parents d967139 + cab772a commit 56f18dc

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This serves two purposes:
2020
2. At release time, you can move the Unreleased section changes into a new release version section.
2121

2222
### Added
23-
- for new features.
23+
- Added the existing `media_extensions` option to the `hyde` configuration file in https://github.com/hydephp/develop/pull/1531
2424

2525
### Changed
2626
- Renamed local template variable `$document` to `$article` to better match the usage in https://github.com/hydephp/develop/pull/1506

config/hyde.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@
446446
|
447447
*/
448448

449+
// Change the file extensions to be considered as media files and are copied to the output directory.
450+
// If you want to add more extensions, add it to the empty merge array, or just override the entire array.
451+
'media_extensions' => array_merge([], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS),
452+
449453
// The list of directories that are considered to be safe to empty upon site build.
450454
// If the site output directory is set to a directory that is not in this list,
451455
// the build command will prompt for confirmation before emptying it.

packages/framework/config/hyde.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@
446446
|
447447
*/
448448

449+
// Change the file extensions to be considered as media files and are copied to the output directory.
450+
// If you want to add more extensions, add it to the empty merge array, or just override the entire array.
451+
'media_extensions' => array_merge([], \Hyde\Support\Filesystem\MediaFile::EXTENSIONS),
452+
449453
// The list of directories that are considered to be safe to empty upon site build.
450454
// If the site output directory is set to a directory that is not in this list,
451455
// the build command will prompt for confirmation before emptying it.

0 commit comments

Comments
 (0)