Skip to content

Add support for HTML pages #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add support for HTML pages #35

wants to merge 5 commits into from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented May 19, 2025

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.

Copilot AI and others added 2 commits May 19, 2025 18:33
@Copilot Copilot AI changed the title [WIP] Support for HTML pages Add support for HTML pages May 19, 2025
@Copilot Copilot AI requested a review from benbalter May 19, 2025 18:38
Copilot finished work on behalf of benbalter May 19, 2025 18:38
@benbalter benbalter marked this pull request as ready for review May 19, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for HTML pages
2 participants