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
Uh oh!
There was an error while loading. Please reload this page.
-
I know it might seem like a dumb question but in my project, I use
[[module.mounts]]to mount dir intocontentdir,but as the theme uses
File.Filenamethe resolved path is absolute and thestrings.TrimPrefixdoes not actually remove the local dir.to give an example consider
in my
config.tomlI haveupon rendering the path resolved becomes
/home/user/...../docs/_index.htmlasstrings.TrimPrefixas no overlap to trim,using
.File.Pathresolves it correctlyBeta Was this translation helpful? Give feedback.
All reactions