Fix Hugo build failure: remove foreign shortcode wrapper from a new tutorial - #84
Merged
muqarrab-aspose merged 1 commit intoSep 30, 2026
Conversation
…utorial
content/*/java/advanced-rendering/render-tracked-changes-word-docs-groupdocs-viewer-java/_index.md
(23 languages, introduced in a recent optimize pass) were wrapped in
{{< blocks/products/pf/main-wrap-class >}} / main-container /
tutorial-page-section shortcodes plus a trailing products-backtop-button
call -- none of which exist in this repo's theme (confirmed: zero other
uses of "blocks/products/pf/" anywhere in the corpus after this fix;
every other tutorial page in this repo goes straight from frontmatter to
its H1). Hugo's build failed with "template for shortcode ... not found"
trying to render the Arabic copy specifically, but the same broken
wrapper was present in all 23 languages -- this would have broken every
one of them in turn. Same defect and same fix as 9162e9f.
Fix: strip the 4 wrapper shortcode lines (3 opening + matching closing)
and the unrelated backtop-button call, collapsing the blank lines left
behind -- matching this repo's real, working page structure exactly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
content/*/java/advanced-rendering/render-tracked-changes-word-docs-groupdocs-viewer-java/_index.md (23 languages) were wrapped in
{{< blocks/products/pf/main-wrap-class >}}/main-container/tutorial-page-sectionshortcodes plus a trailingproducts-backtop-buttoncall -- none of which exist in this repo's theme (zero other uses ofblocks/products/pf/anywhere in the corpus after this fix).Hugo's build failed with
template for shortcode ... not foundon the Arabic copy, but the same broken wrapper was present in all 23 languages -- this would have broken every one of them in turn. Same defect and same fix as 9162e9f.Fix: strip the 4 wrapper shortcode lines (3 opening + matching closing) and the unrelated backtop-button call, collapsing the blank lines left behind -- matching this repo's real, working page structure exactly.