You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closely related to #13406 and already mentioned there:
I'm using this table render hook:
{{ with $.Page.GetPage "posts/non-existing.md" }}
{{- .RenderShortcodes }}
{{ else }}
{{ errorf "Error in page '%s': %s" $.Page.Name $.Position }}
{{ end }}
I'm getting:
ERROR Error in page 'Examples':
"/path/to site/content/lang/section/subsection/_index.md:0:1"
Bug
The position given in the last line is always 0:1, regardless of the actual position of the offending code in the source file.
Remark: I tested all available render hooks, results see table below. I realized that the Headings, Images and Links render hooks do not have .Position in their context. Is that on purpose?
Render hook
Context has Position
Position correct
Block quote
yes
yes
Code blocks
yes
yes
Headings
no
-
Images
no
-
Links
no
-
Pass through
yes
yes
Table
yes
no
What version of Hugo are you using (hugo version)?
$ hugo version
hugo v0.144.0-DEV-641403f7de3+extended
Does this issue reproduce with the latest release?
Yes.
The text was updated successfully, but these errors were encountered:
Closely related to #13406 and already mentioned there:
I'm using this table render hook:
I'm getting:
Bug
The position given in the last line is always
0:1
, regardless of the actual position of the offending code in the source file.Remark: I tested all available render hooks, results see table below. I realized that the
Headings
,Images
andLinks
render hooks do not have.Position
in their context. Is that on purpose?What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
The text was updated successfully, but these errors were encountered: