39 lines
1.8 KiB
HTML
39 lines
1.8 KiB
HTML
{{- /* layouts/partials/seo.html */ -}}
|
||
{{- $siteTitle := site.Title -}}
|
||
{{- $sep := " | " -}}
|
||
<title>
|
||
{{- if .IsHome -}}
|
||
AMPERION – Ingenieurbüro & Elektrotechnikbetrieb für Photovoltaik, Speicher & Ladeinfrastruktur
|
||
{{- else -}}
|
||
{{- .Title }}{{ $sep }}AMPERION – Photovoltaik, Energiespeicher, Ladeinfrastruktur
|
||
{{- end -}}
|
||
</title>
|
||
|
||
{{- $desc := cond (isset .Params "description") .Params.description
|
||
"AMPERION ist Ihr staatlich geprüftes Ingenieurbüro & Elektrotechnikbetrieb: Planung, Projektmanagement & Consulting für Photovoltaik, Energiespeicher und Ladeinfrastruktur – von der Idee bis zur Inbetriebnahme." -}}
|
||
<meta name="description" content="{{ $desc }}">
|
||
|
||
<link rel="canonical" href="{{ .Permalink }}">
|
||
|
||
{{- with .AlternativeOutputFormats }}{{ end -}}
|
||
|
||
{{- /* hreflang (de/en) */ -}}
|
||
{{- range .AllTranslations -}}
|
||
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}">
|
||
{{- end -}}
|
||
<link rel="alternate" hreflang="x-default" href="{{ .Permalink }}">
|
||
|
||
<meta name="robots" content="index,follow">
|
||
|
||
<!-- Open Graph -->
|
||
<meta property="og:type" content="{{ if .IsHome }}website{{ else }}article{{ end }}">
|
||
<meta property="og:title" content="{{ if .IsHome }}AMPERION – Ingenieurbüro & Elektrotechnik{{ else }}{{ .Title }}{{ end }}">
|
||
<meta property="og:description" content="{{ $desc }}">
|
||
<meta property="og:url" content="{{ .Permalink }}">
|
||
{{- $ogimg := (resources.Get "images/og-default.jpg") | default (resources.Get "images/logo.png") -}}
|
||
{{- with $ogimg -}}{{ $p := .Fit "1200x630" }}<meta property="og:image" content="{{ $p.RelPermalink }}">{{ end -}}
|
||
|
||
<!-- Twitter -->
|
||
<meta name="twitter:card" content="summary_large_image">
|
||
<meta name="twitter:title" content="{{ if .IsHome }}AMPERION – Ingenieurbüro & Elektrotechnik{{ else }}{{ .Title }}{{ end }}">
|
||
<meta name="twitter:description" content="{{ $desc }}">
|