Add support for HTML pages
This PR adds support for applying default layouts to HTML pages in addition to Markdown pages, as requested in issue #16.
Changes
- Added configuration option to enable HTML pages support via site config
- Created helper methods to check if HTML pages support is enabled
- Updated the
should_set_layout?method to include HTML files when enabled - Added comprehensive tests for the new functionality
- Updated the README to document this new feature
How to Use
The feature is opt-in to avoid breaking changes. To enable default layouts for HTML pages, add the following to your _config.yml:
jekyll-default-layout:
html_pages: true
When enabled, HTML pages without an explicitly specified layout will receive the appropriate layout (page, home, or default) just like Markdown pages do.
All existing functionality works as before, and this is fully backward compatible when the option is not enabled.
Fixes #16.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.