Skip to content
Snippets Groups Projects
Commit ce8f1a90 authored by Olivia206's avatar Olivia206
Browse files

fix #102

parent 45615344
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,7 @@ commons:
between:
pages: Pages navigation
posts: Posts navigation
title: Page
pdf: PDF
pdf_with_size: PDF ({{ .Size }})
read: Read
......
......@@ -101,6 +101,7 @@ commons:
between:
pages: Navigation entre pages
posts: Navigation entre articles
title: Page
pdf: PDF
pdf_with_size: PDF ({{ .Size }})
read: Lire
......
{{ $seoTitle := .title }}
{{ $seoTitleSeparator := .separator}}
{{ $page := i18n "commons.pagination.title" }}
{{if not .context.IsHome }}
{{ with .context.Paginator }}
{{ if or .HasPrev .HasNext }}
{{ $currentPageNumber := .PageNumber}}
{{ $seoTitle = printf "%s %s %s %d" $seoTitle $seoTitleSeparator $page $currentPageNumber }}
{{ end }}
{{ end }}
{{ end }}
{{ return $seoTitle }}
\ No newline at end of file
......@@ -4,6 +4,7 @@
{{- if .Title -}}
{{- $seoTitle = printf "%s %s %s" $title $seoTitleSeparator $seoTitle -}}
{{- end -}}
{{- $seoTitle = partial "GetPaginateTitle" ( dict "title" $seoTitle "separator" $seoTitleSeparator "context" .) -}}
{{- $seoDescription := "" -}}
{{- if .Params.meta_description -}}
{{- $seoDescription = partial "PrepareHTML" .Params.meta_description -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment