Better SEO

This commit is contained in:
2022-01-11 21:02:05 +01:00
parent 50b4962c91
commit 91ec5f68dd
11 changed files with 56 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="fr">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}

View File

@@ -6,12 +6,18 @@
{{ $style := $sass | resources.ToCSS }}
<link rel="stylesheet" href="{{ $style.Permalink }}" media="screen">
{{ $js := resources.Get "js/main.js" }}
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
{{ if .IsHome }}{{ $title = (printf "%s - %s" .Site.Title .Site.Params.Description) }}{{ end }}
{{ template "_internal/opengraph.html" . }}
<title>{{ $title }}</title>
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
</head>