feat: translate the site in french
This commit is contained in:
parent
3e98ac15b6
commit
b47b193b20
81 changed files with 1327 additions and 251 deletions
36
layouts/_partials/head.html
Normal file
36
layouts/_partials/head.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||
<meta name="description" content="{{ default .Summary .Description }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}"/>
|
||||
{{- if .IsTranslated }}
|
||||
{{- range .Translations }}
|
||||
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .RelPermalink }}"/>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{ with .Site.GetPage "/blog" }}
|
||||
{{- with .OutputFormats.Get "rss" }}
|
||||
{{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ if eq .Kind "term" }}
|
||||
{{- with .OutputFormats.Get "rss" }}
|
||||
{{- printf `<link rel=%q type=%q href=%q title='%s | %s'>` .Rel .MediaType.Type .Permalink $.Title site.Title | safeHTML }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="bcarlin.net" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{- template "_internal/schema.html" . }}
|
||||
|
||||
{{ partialCached "head/css.html" . }}
|
||||
{{- partialCached "head/js.html" . }}
|
Loading…
Add table
Add a link
Reference in a new issue