fix: fix edit page link and auto-detect contentDir (#343)

BREAKING CHANGE: With support of the multilingual mode, we broke the `edit page` links, as the content directory was statically hard-coded into the `GeekdocEditPath` parameter. To get the correct content directory, regardless of the language or a disabled multilingual mode, we now use Hugo's built-in `.Site.Params.contentDir` parameter. Therefor, you have to remove the hard-coded `/content` part from the `geekdocEditPath` parameter in the configuration of your project.
This commit is contained in:
Robert Kaussow 2022-02-15 20:58:35 +01:00 committed by GitHub
parent 4e93b70b7b
commit c9f809ca19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 15 deletions

3
.gitignore vendored
View file

@ -21,5 +21,8 @@ exampleSite/content/de
/exampleSite/resources/
/exampleSite/data/sprites/
# hugo
.hugo_build.lock
# testing
.lighthouseci/