mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-24 13:50:40 +00:00
fix: fix broken Edit Page
links (#339)
This commit is contained in:
parent
b57817fb3a
commit
f66ca6a07d
3
.gitignore
vendored
3
.gitignore
vendored
@ -21,5 +21,8 @@ exampleSite/content/de
|
|||||||
/exampleSite/resources/
|
/exampleSite/resources/
|
||||||
/exampleSite/data/sprites/
|
/exampleSite/data/sprites/
|
||||||
|
|
||||||
|
# hugo
|
||||||
|
.hugo_build.lock
|
||||||
|
|
||||||
# testing
|
# testing
|
||||||
.lighthouseci/
|
.lighthouseci/
|
||||||
|
@ -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 .File.Path .Page.Params.GeekdocFilePath) }}
|
{{ $.Scratch.Set "geekdocFilePath" (default (path.Join .File.Lang .File.Path) .Page.Params.GeekdocFilePath) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $.Scratch.Set "geekdocFilePath" false }}
|
{{ $.Scratch.Set "geekdocFilePath" false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user