fix: revert fix for broken `Edit Page` links (#339) (#342)

uci-hugo-doc
Robert Kaussow 2022-02-14 23:23:06 +01:00 committed by GitHub
parent 2067672172
commit 4e93b70b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

3
.gitignore vendored
View File

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

View File

@ -1,7 +1,7 @@
{{ $geekdocRepo := default (default false .Site.Params.GeekdocRepo) .Page.Params.GeekdocRepo }} {{ $geekdocRepo := default (default false .Site.Params.GeekdocRepo) .Page.Params.GeekdocRepo }}
{{ $geekdocEditPath := default (default false .Site.Params.GeekdocEditPath) .Page.Params.GeekdocEditPath }} {{ $geekdocEditPath := default (default false .Site.Params.GeekdocEditPath) .Page.Params.GeekdocEditPath }}
{{ if .File }} {{ if .File }}
{{ $.Scratch.Set "geekdocFilePath" (default (path.Join .File.Lang .File.Path) .Page.Params.GeekdocFilePath) }} {{ $.Scratch.Set "geekdocFilePath" (default .File.Path .Page.Params.GeekdocFilePath) }}
{{ else }} {{ else }}
{{ $.Scratch.Set "geekdocFilePath" false }} {{ $.Scratch.Set "geekdocFilePath" false }}
{{ end }} {{ end }}