Joe Mooring
404ac00001
create/skeletons: Use css.Build in theme skeleton
...
Closes #14626
2026-03-15 16:51:24 +01:00
Joe Mooring
d4f2122dea
refactor: Deprecate language configuration and template methods
...
Configuration:
- languageCode -> locale (either in root or per-language)
- languageName -> label
- languageDirection -> direction
Methods:
- .Language.LanguageCode -> .Language.Locale
- .Language.LanguageName -> .Language.Label
- .Language.LanguageDirection -> .Language.Direction
- .Site.LanguageCode -> .Site.Language.Locale
Example configuration:
[languages.en]
direction = 'ltr'
label = 'English'
locale = 'en-US'
weight = 1
Closes #14269
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-04 11:45:52 +01:00
Sardorbek Imomaliev
29cf87444f
create/skeletons: Wrap section and home lists with section tags
...
Avoiding issues with tag leakage when using .Summary
See issue #14044 for details.
2025-10-14 11:54:45 +02:00
Joe Mooring
75b219db89
create/skeletons: Adjust template names in theme skeleton
2025-04-24 19:02:11 +02:00
Joe Mooring
24ac6a9de9
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
2025-04-08 16:35:46 +02:00
Joe Mooring
b63f24adc7
create/skeletons: Clean up lang attribute in base template
2024-08-31 17:02:47 +02:00
Cyrus Yip
a95fe50616
create/skeletons: Fix languageCode region subtag
...
Region subtag should be in ALLCAPS
2024-07-02 08:43:19 +02:00
Joe Mooring
55dea41c1a
create/skeletons: Remove superfluous language code fallback
...
Closes #12479
2024-05-14 10:24:53 +02:00
Christian Oliff
78178d0c2a
all: Typo fixes
2024-03-15 17:25:52 +01:00
Joe Mooring
acf01bfb78
create/skeletons: Fix menu template
...
Check identifier existence before calling lang.Translate to prevent
empty warnings when using the --printI18nWarnings flag.
Closes #11519
2023-10-30 09:02:49 +01:00
Joe Mooring
f9163155d3
create/skeletons: Improve viewport meta tag
...
Remove initial-scale=1.0 (this is the browser default)
Remove minimum-scale=1.0 (opinionated, can throw WCAG warning)
2023-09-19 11:46:05 +02:00
Joe Mooring
9a8c84d600
create/skeletons: Move theme's site config to top level
...
Closes #11380
2023-08-23 18:05:00 +02:00
Joe Mooring
b6538532f4
commands/new: Embed site and theme skeletons
...
The skeletons are used when creating new sites and themes with the CLI.
Closes #11358
2023-08-21 10:38:22 +02:00