Add render template hooks for links and images
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 27 Nov 2019 12:42:36 +0000 (13:42 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 18 Dec 2019 10:44:40 +0000 (11:44 +0100)
commite625088ef5a970388ad50e464e87db56b358dac4
treef7b26dec1f3695411558d05ca7d0995817a42250
parent67f3aa72cf9aaf3d6e447fa6bc12de704d46adf7
Add render template hooks for links and images

This commit also

* revises the change detection for templates used by content files in server mode.
* Adds a Page.RenderString method

Fixes #6545
Fixes #4663
Closes #6043
59 files changed:
docs/content/en/functions/RenderString.md [new file with mode: 0644]
docs/content/en/getting-started/configuration-markup.md
helpers/content.go
hugolib/content_render_hooks_test.go [new file with mode: 0644]
hugolib/filesystems/basefs.go
hugolib/hugo_modules_test.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go
hugolib/hugo_sites_build_test.go
hugolib/page.go
hugolib/page__content.go
hugolib/page__meta.go
hugolib/page__new.go
hugolib/page__output.go
hugolib/page__per_output.go
hugolib/page_test.go
hugolib/page_unwrap_test.go
hugolib/pagebundler_test.go
hugolib/pagecollections.go
hugolib/shortcode.go
hugolib/shortcode_page.go
hugolib/shortcode_test.go
hugolib/site.go
hugolib/site_benchmark_new_test.go
hugolib/template_test.go
hugolib/testhelpers_test.go
identity/identity.go [new file with mode: 0644]
identity/identity_test.go [new file with mode: 0644]
markup/asciidoc/convert.go
markup/blackfriday/convert.go
markup/converter/converter.go
markup/converter/hooks/hooks.go [new file with mode: 0644]
markup/goldmark/convert.go
markup/goldmark/convert_test.go
markup/goldmark/render_link.go [new file with mode: 0644]
markup/mmark/convert.go
markup/org/convert.go
markup/pandoc/convert.go
markup/rst/convert.go
output/layout.go
output/layout_test.go
resources/page/page.go
resources/page/page_nop.go
resources/page/testhelpers_test.go
scripts/fork_go_templates/main.go
tpl/internal/go_templates/texttemplate/exec.go
tpl/internal/go_templates/texttemplate/hugo_template.go
tpl/internal/go_templates/texttemplate/hugo_template_test.go
tpl/partials/partials.go
tpl/template.go
tpl/template_info.go
tpl/tplimpl/shortcodes.go
tpl/tplimpl/shortcodes_test.go
tpl/tplimpl/template.go
tpl/tplimpl/templateProvider.go
tpl/tplimpl/template_ast_transformers.go
tpl/tplimpl/template_ast_transformers_test.go
tpl/tplimpl/template_funcs.go
tpl/tplimpl/template_info_test.go