fix: utilize hugo.WorkingDir for a reliable edit page link (#665)
BREAKING CHANGE: The `Edit page` uses the `hugo.WorkingDir` function of Hugo, which was introduced in v0.112.0. Due to this change, the minimum Hugo version for the theme has been raised accordingly.
This commit is contained in:
parent
a56c244a72
commit
dc3ede1b72
5 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ steps:
|
|||
NPM_CONFIG_LOGLEVEL: error
|
||||
|
||||
- name: testbuild
|
||||
image: thegeeklab/hugo:0.114.0
|
||||
image: thegeeklab/hugo:0.115.2
|
||||
commands:
|
||||
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
|
||||
- hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/
|
||||
|
@ -173,7 +173,7 @@ steps:
|
|||
- refs/pull/**
|
||||
|
||||
- name: build
|
||||
image: thegeeklab/hugo:0.114.0
|
||||
image: thegeeklab/hugo:0.115.2
|
||||
commands:
|
||||
- hugo --panicOnWarning -s exampleSite/
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Geekdoc
|
||||
|
||||
[](https://drone.thegeeklab.de/thegeeklab/hugo-geekdoc)
|
||||
[](https://gohugo.io)
|
||||
[](https://gohugo.io)
|
||||
[](https://github.com/thegeeklab/hugo-geekdoc/releases/latest)
|
||||
[](https://github.com/thegeeklab/hugo-geekdoc/graphs/contributors)
|
||||
[](https://github.com/thegeeklab/hugo-geekdoc/blob/main/LICENSE)
|
||||
|
|
|
@ -9,7 +9,7 @@ geekdocAnchor: false
|
|||
<!-- markdownlint-disable MD033 -->
|
||||
|
||||
<span class="badge-placeholder">[](https://drone.thegeeklab.de/thegeeklab/hugo-geekdoc)</span>
|
||||
<span class="badge-placeholder">[](https://gohugo.io)</span>
|
||||
<span class="badge-placeholder">[](https://gohugo.io)</span>
|
||||
<span class="badge-placeholder">[](https://github.com/thegeeklab/hugo-geekdoc/releases/latest)</span>
|
||||
<span class="badge-placeholder">[](https://github.com/thegeeklab/hugo-geekdoc/graphs/contributors)</span>
|
||||
<span class="badge-placeholder">[](https://github.com/thegeeklab/hugo-geekdoc/blob/main/LICENSE)</span>
|
||||
|
|
|
@ -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 (default "content" .Site.Params.contentDir) .File.Path) .Page.Params.geekdocFilePath) }}
|
||||
{{ $.Scratch.Set "geekdocFilePath" (default (strings.TrimPrefix hugo.WorkingDir .File.Filename) .Page.Params.geekdocFilePath) }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "geekdocFilePath" false }}
|
||||
{{ end }}
|
||||
|
|
|
@ -5,7 +5,7 @@ description = "Hugo theme made for documentation"
|
|||
homepage = "https://geekdocs.de/"
|
||||
demosite = "https://geekdocs.de/"
|
||||
tags = ["docs", "documentation", "responsive", "simple"]
|
||||
min_version = "0.93.0"
|
||||
min_version = "0.112.0"
|
||||
|
||||
[author]
|
||||
name = "Robert Kaussow"
|
||||
|
|
Loading…
Add table
Reference in a new issue