Skip to content

Commit

Permalink
hugo 0.50 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanderscybraics committed Oct 30, 2018
1 parent b45f372 commit 71999fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/flex/body-aftercontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<div>
{{ $footer := print "_footer." .Lang }}
{{ range where .Site.Pages "Source.BaseFileName" $footer }}
{{ range where .Site.Pages "File.BaseFileName" $footer }}
{{ .Content }}
{{else}}
{{ if .Site.GetPage "page" "_footer.md" }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ $header := print "_header." .Lang }}
{{ range where .Site.Pages "Source.BaseFileName" $header }}
{{ range where .Site.Pages "File.BaseFileName" $header }}
{{ .Content }}
{{else}}
{{ if .Site.GetPage "page" "_header.md" }}
{{(.Site.GetPage "page" "_header.md").Content}}
{{else}}
<a class="baselink" href="{{.Site.BaseURL}}">{{.Site.Title}}</a>
{{end}}
{{end}}
{{end}}

0 comments on commit 71999fd

Please sign in to comment.