]> git.maquefel.me Git - brevno-suite/hugo/commit
Reimplement and simplify Hugo's template system
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 6 Apr 2025 17:55:35 +0000 (19:55 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 6 Apr 2025 18:59:41 +0000 (20:59 +0200)
commit83cfdd78ca6469e6d7265323d9fad1448880e559
tree29690938842d8db7412276e1016360ae3ed628a8
parent812ea0b325b084eacee7492390b4f9d1aba5b6cf
Reimplement and simplify Hugo's template system

See #13541 for details.

Fixes #13545
Fixes #13515
Closes #7964
Closes #13365
Closes #12988
Closes #4891
174 files changed:
commands/server.go
common/constants/constants.go
common/hstrings/strings.go
common/maps/cache.go
common/maps/ordered.go
common/paths/pathparser.go
common/paths/pathparser_test.go
common/paths/pathtype_string.go [deleted file]
common/paths/type_string.go [new file with mode: 0644]
common/types/types.go
config/allconfig/allconfig.go
create/content.go
deps/deps.go
hugolib/alias.go
hugolib/alias_test.go
hugolib/content_factory.go
hugolib/content_map.go
hugolib/content_map_page.go
hugolib/content_map_test.go
hugolib/content_render_hooks_test.go
hugolib/doctree/simpletree.go
hugolib/doctree/support.go
hugolib/doctree/treeshifttree.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go
hugolib/hugo_smoke_test.go
hugolib/integrationtest_builder.go
hugolib/page.go
hugolib/page__common.go
hugolib/page__content.go
hugolib/page__meta.go
hugolib/page__per_output.go
hugolib/pages_capture.go
hugolib/pagesfromdata/pagesfromgotmpl.go
hugolib/pagesfromdata/pagesfromgotmpl_integration_test.go
hugolib/paginator_test.go
hugolib/rebuild_test.go
hugolib/shortcode.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_output.go
hugolib/site_output_test.go
hugolib/site_render.go
hugolib/site_test.go
hugolib/taxonomy_test.go
hugolib/template_test.go
identity/identity.go
internal/js/esbuild/batch.go
langs/i18n/i18n_test.go
markup/goldmark/codeblocks/codeblocks_integration_test.go
media/builtin.go
media/config.go
media/config_test.go
media/mediaType.go
output/docshelper.go
output/layouts/layout.go [deleted file]
output/layouts/layout_test.go [deleted file]
output/outputFormat.go
output/outputFormat_test.go
resources/kinds/kinds.go
resources/page/page.go
resources/page/page_paths.go
resources/page/pages_related.go
resources/page/testhelpers_test.go
resources/resource_spec.go
resources/resource_transformers/templates/execute_as_template.go
testscripts/commands/hugo_printunusedtemplates.txt
tpl/collections/apply.go
tpl/collections/apply_test.go [deleted file]
tpl/internal/go_templates/htmltemplate/hugo_template.go
tpl/internal/go_templates/htmltemplate/template.go
tpl/internal/go_templates/texttemplate/example_test.go
tpl/math/init.go
tpl/math/math.go
tpl/math/math_test.go
tpl/partials/partials.go
tpl/partials/partials_integration_test.go
tpl/template.go
tpl/template_info.go [deleted file]
tpl/template_test.go
tpl/templates/defer_integration_test.go
tpl/templates/templates.go
tpl/tplimpl/category_string.go [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_default/_markup/render-codeblock-goat.html [deleted file]
tpl/tplimpl/embedded/templates/_default/_markup/render-image.html [deleted file]
tpl/tplimpl/embedded/templates/_default/_markup/render-link.html [deleted file]
tpl/tplimpl/embedded/templates/_default/_markup/render-table.html [deleted file]
tpl/tplimpl/embedded/templates/_default/robots.txt [deleted file]
tpl/tplimpl/embedded/templates/_default/rss.xml [deleted file]
tpl/tplimpl/embedded/templates/_default/sitemap.xml [deleted file]
tpl/tplimpl/embedded/templates/_default/sitemapindex.xml [deleted file]
tpl/tplimpl/embedded/templates/_markup/render-codeblock-goat.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_markup/render-image.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_markup/render-link.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_markup/render-table.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_partials/_funcs/get-page-images.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_partials/disqus.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_partials/google_analytics.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_partials/opengraph.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_partials/pagination.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_partials/schema.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_partials/twitter_cards.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/1__h_simple_assets.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/comment.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/details.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/figure.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/gist.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/highlight.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/instagram.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/instagram_simple.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/param.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/qr.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/ref.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/relref.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/twitter.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/twitter_simple.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/vimeo.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/vimeo_simple.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/x.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/x_simple.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/_shortcodes/youtube.html [new file with mode: 0644]
tpl/tplimpl/embedded/templates/disqus.html [deleted file]
tpl/tplimpl/embedded/templates/google_analytics.html [deleted file]
tpl/tplimpl/embedded/templates/opengraph.html [deleted file]
tpl/tplimpl/embedded/templates/pagination.html [deleted file]
tpl/tplimpl/embedded/templates/partials/_funcs/get-page-images.html [deleted file]
tpl/tplimpl/embedded/templates/robots.txt [new file with mode: 0644]
tpl/tplimpl/embedded/templates/rss.xml [new file with mode: 0644]
tpl/tplimpl/embedded/templates/schema.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/1__h_simple_assets.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/comment.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/details.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/figure.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/gist.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/highlight.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/instagram.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/instagram_simple.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/param.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/qr.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/ref.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/relref.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/twitter.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/twitter_simple.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/vimeo.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/x.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/x_simple.html [deleted file]
tpl/tplimpl/embedded/templates/shortcodes/youtube.html [deleted file]
tpl/tplimpl/embedded/templates/sitemap.xml [new file with mode: 0644]
tpl/tplimpl/embedded/templates/sitemapindex.xml [new file with mode: 0644]
tpl/tplimpl/embedded/templates/twitter_cards.html [deleted file]
tpl/tplimpl/legacy.go [new file with mode: 0644]
tpl/tplimpl/render_hook_integration_test.go
tpl/tplimpl/shortcodes.go [deleted file]
tpl/tplimpl/shortcodes_test.go [deleted file]
tpl/tplimpl/subcategory_string.go [new file with mode: 0644]
tpl/tplimpl/template.go [deleted file]
tpl/tplimpl/templateFuncster.go [deleted file]
tpl/tplimpl/templateProvider.go [deleted file]
tpl/tplimpl/template_ast_transformers.go [deleted file]
tpl/tplimpl/template_ast_transformers_test.go [deleted file]
tpl/tplimpl/template_errors.go [deleted file]
tpl/tplimpl/template_funcs.go
tpl/tplimpl/template_funcs_test.go
tpl/tplimpl/template_info.go [new file with mode: 0644]
tpl/tplimpl/template_test.go [deleted file]
tpl/tplimpl/templatedescriptor.go [new file with mode: 0644]
tpl/tplimpl/templatedescriptor_test.go [new file with mode: 0644]
tpl/tplimpl/templates.go [new file with mode: 0644]
tpl/tplimpl/templatestore.go [new file with mode: 0644]
tpl/tplimpl/templatestore_integration_test.go [new file with mode: 0644]
tpl/tplimpl/templatetransform.go [new file with mode: 0644]
tpl/tplimpl/tplimpl_integration_test.go
tpl/tplimplinit/tplimplinit.go [new file with mode: 0644]