forked from markus/AMPERION_Webpage
SEO Optimierung + Leistungsscroll
This commit is contained in:
parent
2ae734e906
commit
e77017c70a
17 changed files with 259 additions and 165 deletions
39
layouts/partials/seo.html
Normal file
39
layouts/partials/seo.html
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{{- /* 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 }}">
|
||||
Loading…
Add table
Add a link
Reference in a new issue