]> git.maquefel.me Git - brevno-suite/hugo/commit
commands/new: Improve theme creation
authorJoe Mooring <joe.mooring@veriphor.com>
Sun, 30 Mar 2025 19:31:12 +0000 (12:31 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 8 Apr 2025 14:35:46 +0000 (16:35 +0200)
commit24ac6a9de9517eaef6eced02cb97c6d7b36a1b5e
tree7aad1eb6c5cf301ca7167f848b0434d53fa714f9
parente6e18e912200f0e38b6993cf27a83e66690f45b0
commands/new: Improve theme creation

- 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
32 files changed:
commands/new.go
create/skeletons/skeletons.go
create/skeletons/theme/LICENSE [deleted file]
create/skeletons/theme/README.md [deleted file]
create/skeletons/theme/archetypes/default.md [deleted file]
create/skeletons/theme/hugo.toml [deleted file]
create/skeletons/theme/layouts/_default/baseof.html [deleted file]
create/skeletons/theme/layouts/_default/home.html [deleted file]
create/skeletons/theme/layouts/_default/list.html [deleted file]
create/skeletons/theme/layouts/_default/single.html [deleted file]
create/skeletons/theme/layouts/_partials/footer.html [new file with mode: 0644]
create/skeletons/theme/layouts/_partials/head.html [new file with mode: 0644]
create/skeletons/theme/layouts/_partials/head/css.html [new file with mode: 0644]
create/skeletons/theme/layouts/_partials/head/js.html [new file with mode: 0644]
create/skeletons/theme/layouts/_partials/header.html [new file with mode: 0644]
create/skeletons/theme/layouts/_partials/menu.html [new file with mode: 0644]
create/skeletons/theme/layouts/_partials/terms.html [new file with mode: 0644]
create/skeletons/theme/layouts/baseof.html [new file with mode: 0644]
create/skeletons/theme/layouts/home.html [new file with mode: 0644]
create/skeletons/theme/layouts/list.html [new file with mode: 0644]
create/skeletons/theme/layouts/partials/footer.html [deleted file]
create/skeletons/theme/layouts/partials/head.html [deleted file]
create/skeletons/theme/layouts/partials/head/css.html [deleted file]
create/skeletons/theme/layouts/partials/head/js.html [deleted file]
create/skeletons/theme/layouts/partials/header.html [deleted file]
create/skeletons/theme/layouts/partials/menu.html [deleted file]
create/skeletons/theme/layouts/partials/terms.html [deleted file]
create/skeletons/theme/layouts/single.html [new file with mode: 0644]
create/skeletons/theme/layouts/taxonomy.html [new file with mode: 0644]
create/skeletons/theme/layouts/term.html [new file with mode: 0644]
create/skeletons/theme/theme.toml [deleted file]
testscripts/commands/new.txt