Skip to content

Commit

Permalink
Merge pull request #168 from Cybraics/master
Browse files Browse the repository at this point in the history
hugo 0.50 compatibility

Solves #166 
Solves #169 
Duplicates #167
  • Loading branch information
Pilskalns authored Nov 8, 2018
2 parents b45f372 + 71999fd commit 2c9ccd1
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 2c9ccd1

Please sign in to comment.