{{- /* Dynamic meta tags based on content type */ -}} {{- $description := "" -}} {{- $keywords := "" -}} {{- $title := .Title | default .Site.Title -}} {{/* Dynamic description based on section */}} {{- if eq .Section "tutorials" -}} {{- $description = printf "Complete tutorial: %s. Learn %s in French with our step-by-step guide. %s" .Title (.Params.skill | default "the technology") (.Params.summary | default "") -}} {{- $keywords = printf "tutorial %s, french guide %s, %s, tutoriel informatique, guide technologie" (.Params.category | default "") (.Params.skill | default "") (.Title | lower) -}} {{- else if eq .Section "comparisons" -}} {{- $description = printf "Detailed comparison: %s. %s Which to choose in 2024? Complete reviews and tests." .Title (.Params.summary | default "") -}} {{- $keywords = printf "comparison %s, best %s 2024, review %s, comparatif %s" (.Params.category | default "") (.Params.category | default "") (.Title | lower) (.Params.category | default "") -}} {{- else if eq .Section "security" -}} {{- $description = printf "Computer security guide: %s. %s Learn to protect your data and systems effectively." .Title (.Params.summary | default "") -}} {{- $keywords = printf "security %s, cybersecurity %s, protection %s, sécurité informatique" (.Params.category | default "") (.Title | lower) (.Params.category | default "") -}} {{- else if eq .Section "wordpress" -}} {{- $description = printf "WordPress tutorial: %s. %s Complete guide to create and manage your WordPress site in French." .Title (.Params.summary | default "") -}} {{- $keywords = printf "wordpress %s, tutorial wordpress %s, guide wordpress %s, créer site wordpress" (.Params.category | default "") (.Params.category | default "") (.Title | lower) -}} {{- else -}} {{- $description = .Description | default .Summary | default .Site.Params.description | default .Site.Title -}} {{- $keywords = delimit (.Keywords | default .Site.Params.keywords | default (slice)) ", " -}} {{- end -}} {{- if eq .Section "tutorials" }} {{- end }} {{- if eq .Section "comparisons" }} {{- end }} {{- if .IsPage }} {{- end }} {{- $author := .Params.author | default .Site.Params.author | default .Site.Title }} {{- if .Params.category }} {{- end }} {{- range .Params.tags }} {{- end }}