-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update site to build with newer hugo (#411)
* Update site to build with newer hugo
- Loading branch information
1 parent
361a81d
commit d4f6f0b
Showing
7 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
+++ | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{{- if in (.Get 0) "/_index.md" -}} | ||
{{- $path := (trim (.Get 0) "_index.md") -}} | ||
{{- with .Site.GetPage "section" (trim $path "/") -}} | ||
{{- .URL -}} | ||
{{- .RelPermalink -}} | ||
{{- end -}} | ||
{{- else -}} | ||
{{- with .Site.GetPage "section" (.Get 0) }} | ||
{{- .URL -}} | ||
{{- .RelPermalink -}} | ||
{{- else -}} | ||
{{- .Get 0 | relref .Page -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} |