Skip to content
Snippets Groups Projects
Commit 5dc6632d authored by alexisben's avatar alexisben
Browse files

note legacy data

parent 77e5f158
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
{{ range .pages }}
{{- $page := partial "GetPageByUrl" .page -}}
{{- if .slug -}}
{{/* LEGACY */}}
{{- $page = partial "GetPageByUrl" .slug -}}
{{- end -}}
{{ with $page }}
......
......@@ -10,6 +10,7 @@
{{- if .page -}}
{{- $page = partial "GetPageByUrl" .page -}}
{{- else if .slug -}}
{{/* LEGACY */}}
{{- $page = partial "GetPageByUrl" .slug -}}
{{ end }}
{{ else }}
......
......@@ -2,6 +2,7 @@
{{ range .pages }}
{{- $page := partial "GetPageByUrl" .page -}}
{{- if .slug -}}
{{/* LEGACY */}}
{{- $page = partial "GetPageByUrl" .slug -}}
{{- end -}}
{{ with $page }}
......
......@@ -3,8 +3,10 @@
{{- $seoTitle = printf "%s | %s" (chomp (htmlUnescape .Title)) $seoTitle -}}
{{- end -}}
{{- $seoDescription := "" -}}
{{- if .Params.description -}}
{{- $seoDescription = partial "PrepareHTML" .Params.description -}}
{{- if .Params.meta_description -}}
{{- $seoDescription = partial "PrepareHTML" .Params.meta_description -}}
{{- else if .Params.description -}}
{{- $seoDescription = partial "PrepareHTML" .Params.description -}} {{/* LEGACY */}}
{{- else if .Params.summary -}}
{{- $seoDescription = partial "PrepareHTML" .Params.summary -}}
{{- else if .Content -}}
......
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