Skip to content

Commit

Permalink
fix: revert fix for broken Edit Page links (#339) (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Feb 14, 2022
1 parent 2067672 commit 4e93b70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ exampleSite/content/de
/exampleSite/resources/
/exampleSite/data/sprites/

# hugo
.hugo_build.lock

# testing
.lighthouseci/
2 changes: 1 addition & 1 deletion layouts/partials/page-header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $geekdocRepo := default (default false .Site.Params.GeekdocRepo) .Page.Params.GeekdocRepo }}
{{ $geekdocEditPath := default (default false .Site.Params.GeekdocEditPath) .Page.Params.GeekdocEditPath }}
{{ 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 }}
{{ $.Scratch.Set "geekdocFilePath" false }}
{{ end }}
Expand Down

0 comments on commit 4e93b70

Please sign in to comment.