SEOOptimierungenAlex07092025
This commit is contained in:
parent
6828c3f835
commit
b7f8f2ac5e
34 changed files with 4426 additions and 253 deletions
|
|
@ -1,39 +1,14 @@
|
|||
{{- /* layouts/partials/seo.html */ -}}
|
||||
{{- $siteTitle := site.Title -}}
|
||||
{{- $sep := " | " -}}
|
||||
<title>
|
||||
{{- if .IsHome -}}
|
||||
AMPERION – Ingenieurbüro & Elektrotechnikbetrieb für Erneuerbare Energien
|
||||
{{- else -}}
|
||||
{{- .Title }}{{ $sep }}AMPERION – Photovoltaik, Energiespeicher, Ladeinfrastruktur
|
||||
{{- /* layouts/partials/seo.html — minimal & konfliktfrei */ -}}
|
||||
|
||||
{{- $desc := .Params.meta_description
|
||||
| default .Params.description
|
||||
| default .Description
|
||||
| default site.Params.default_meta_description
|
||||
| default site.Params.description
|
||||
| default (plainify (.Summary | default .Content)) -}}
|
||||
|
||||
<meta name="description" content="{{ $desc | plainify | truncate 155 }}">
|
||||
|
||||
{{- if or .Draft .Params.noindex -}}
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
{{- 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