mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
hugolib: Handle shortcode per output format
This commit allows shortcode per output format, a typical use case would be the special AMP media tags. Note that this will only re-render the "overridden" shortcodes and only in pages where these are used, so performance in the normal case should not suffer. Closes #3220
This commit is contained in:
@@ -213,7 +213,7 @@ func (h *HugoSites) render(config *BuildCfg) error {
|
||||
s.initRenderFormats()
|
||||
for i, rf := range s.renderFormats {
|
||||
s.rc = &siteRenderingContext{Format: rf}
|
||||
s.preparePagesForRender(i, config)
|
||||
s.preparePagesForRender(config)
|
||||
|
||||
if !config.SkipRender {
|
||||
if err := s.render(i); err != nil {
|
||||
|
Reference in New Issue
Block a user