-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .Page.SourceInfo #12998
Comments
While the above may be a great idea, I think I'm going to start by making the |
bep
added a commit
to bep/hugo
that referenced
this issue
Nov 2, 2024
This issue fixes two cases where `{{__hugo_ctx` artifacts were left in the rendered output: 1. Inclusion when `.RenderShortcodes` is wrapped in HTML. 2. Inclusion of Markdown file without a trailing newline in some cases. Closes gohugoio#12854 Updates gohugoio#12998
bep
added a commit
to bep/hugo
that referenced
this issue
Nov 3, 2024
This issue fixes two cases where `{{__hugo_ctx` artifacts were left in the rendered output: 1. Inclusion when `.RenderShortcodes` is wrapped in HTML. 2. Inclusion of Markdown file without a trailing newline in some cases. Closes gohugoio#12854 Updates gohugoio#12998
bep
added a commit
to bep/hugo
that referenced
this issue
Nov 3, 2024
This issue fixes two cases where `{{__hugo_ctx` artifacts were left in the rendered output: 1. Inclusion when `.RenderShortcodes` is wrapped in HTML. 2. Inclusion of Markdown file without a trailing newline in some cases. Closes gohugoio#12854 Updates gohugoio#12998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In many template error/warning situations (when we don't have any
.Pos
info), a common need is to have some way of referring to the source, e.g. where to fix the issue, e.g.The problem with the above is that
.Path
in many cases is not very precise and not something I can just click on and take you to the source.It would be practical if I would just do:
And the struct printed itself with enough information to take me to the correct content file/adapter.
It's certainly possible to create such reference using ifs and withs, but it's much harder than it should be.
The text was updated successfully, but these errors were encountered: