Replies: 2 comments 1 reply
-
Hi, the actual URL is created in the themes/docsy/layouts/partials/page-meta-links.html file. I think you can also set it in the front matter of a page, but haven't had the time to check it. If it works, you can use cascade to set it for the entire subtree. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I found an ugly hack that works for my site. In the file above I changed |
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
-
Hello, I am using Hugo v0.138.0 and Docsy 0.11.0.
I'm having a problem getting the right URL for the "Edit this page" link. I have a Hugo repository called
hugo
, and my content is in a separate repo callednotes
. The latter is a submodule mounted athugo/content/docs
. I have these config parameters in myhugo/config/_default/hugo.toml
file:So for a document in the
notes
repo calledstuff/doc.md
, I expect the URL to behttps://github.com/mycompany/notes/edit/master/stuff/doc.md, but instead I'm getting
https://github.com/mycompany/notes/edit/master/content/docs/stuff/doc.md
I've tried the above parameters in the top level
_index.md
as well asstuff/_index.md
, but there's no difference. How can I avoid thecontent/docs
in the URL?If the above parameters won't do what I want then I don't mind hacking the theme, but I don't know where the URL is constructed.
Beta Was this translation helpful? Give feedback.
All reactions