Skip to content

commands/new: Improve theme creation #13552

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

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

jmooring
Copy link
Member

@jmooring jmooring commented Apr 1, 2025

  • Update the skeleton structure to match the new template system.
  • Add a --format flag to the hugo new theme command to control the
    format of the site configuration and default archetype files.
  • Remove theme.toml. This file's presence can be confusing for new
    users, and the README in the themes repository already has an example.
  • Remove the LICENSE and README files from the skeleton. These files
    are not needed for a theme to work, and they can be added later by
    the user if desired.

Closes #13489
Closes #13544

Do not merge until #13541 has been merged.

@jmooring jmooring force-pushed the theme-template-new-lookup-order branch 2 times, most recently from bf73329 to ab66ed4 Compare April 6, 2025 17:01
@jmooring jmooring marked this pull request as ready for review April 6, 2025 18:14
@jmooring jmooring requested a review from bep April 7, 2025 16:03
- Update the skeleton structure to match the new template system.
- Add a --format flag to the `hugo new theme` command to control the
  format of the site configuration and default archetype files.
- Remove theme.toml. This file's presence can be confusing for new
  users, and the README in the themes repository already has an example.
- Remove the LICENSE and README files from the skeleton. These files
  are not needed for a theme to work, and they can be added later by
  the user if desired.

Closes gohugoio#13489
Closes gohugoio#13544
@jmooring jmooring force-pushed the theme-template-new-lookup-order branch from ab66ed4 to 7e2c9c5 Compare April 8, 2025 13:30
@bep bep merged commit 24ac6a9 into gohugoio:master Apr 8, 2025
6 checks passed
@jmooring jmooring deleted the theme-template-new-lookup-order branch April 8, 2025 14:39
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.

Reorganize theme skeleton to match new template system new theme should have a --format flag
2 participants