Replies: 2 comments
-
as a (temporary ?) solution, I have overridden the - {{ $.Scratch.Set "geekdocFilePath" (default (strings.TrimPrefix hugo.WorkingDir .File.Filename) .Page.Params.geekdocFilePath) }}
+ {{ $.Scratch.Set "geekdocFilePath" (default (.File.Path) .Page.Params.geekdocFilePath) }} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the report. To be honest, I didn't know about |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know it might seem like a dumb question but in my project, I use
[[module.mounts]]
to mount dir intocontent
dir,but as the theme uses
File.Filename
the resolved path is absolute and thestrings.TrimPrefix
does not actually remove the local dir.to give an example consider
in my
config.toml
I haveupon rendering the path resolved becomes
/home/user/...../docs/_index.html
asstrings.TrimPrefix
as no overlap to trim,using
.File.Path
resolves it correctlyBeta Was this translation helpful? Give feedback.
All reactions