diff options
Diffstat (limited to 'layouts/partials/body-article-content.html')
-rw-r--r-- | layouts/partials/body-article-content.html | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/layouts/partials/body-article-content.html b/layouts/partials/body-article-content.html index 71cec06..14d911d 100644 --- a/layouts/partials/body-article-content.html +++ b/layouts/partials/body-article-content.html @@ -10,9 +10,10 @@ <!-- FIN FIL D'ARIANE -->
<!-- TITRE -->
- {{if not .Params.layout }}
{{$pagetitle := .Title}}
- {{if eq $pagetitle ""}}{{$pagetitle = .File.BaseFileName}}{{end}}
+ {{if eq $pagetitle ""}}
+ {{with .File}}{{$pagetitle = .BaseFileName}}{{end}}
+ {{end}}
{{ $cPage := .}}
{{ $elements := (where .Sections "NONONO" false) }}
@@ -49,11 +50,6 @@ {{- end}}
</nav>
{{ end }}
-
-
- {{else}}
- <h1>{{.Title}}</h1>
- {{end}}
<!-- FIN TITRE -->
<!-- JUMP TO SECTION -->
@@ -82,7 +78,7 @@ {{if not (in .Params.hide "nextpage")}}
- <div class="chevrons {{.Params.layout}}">
+ <div class="chevrons">
{{ partial "_next-prev-page.html" .CurrentSection }}
</div>
{{end -}}
|