forked from markus/AMPERION_Webpage
SEOOptimierungenAlex07092025
This commit is contained in:
parent
6828c3f835
commit
b7f8f2ac5e
34 changed files with 4426 additions and 253 deletions
|
|
@ -1,71 +1,46 @@
|
|||
<!--
|
||||
|
||||
PROJECT: Startup Hugo
|
||||
VERSION: 1.0.0
|
||||
AUTHOR: Gethugothemes
|
||||
AUTHOR WEBSITE: https://gethugothemes.com
|
||||
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ site.LanguageCode | default `en-US` }}" itemscope itemtype="http://schema.org/WebPage">
|
||||
<html lang="{{ site.LanguageCode | default `de-AT` }}" itemscope itemtype="http://schema.org/WebPage">
|
||||
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Meta Viewport Tag hinzufügen -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- cache partial only in production -->
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ partialCached "style.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "style.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
<!-- WICHTIG: kein weiterer <meta name="viewport"> hier; ist bereits in head.html enthalten -->
|
||||
|
||||
<!-- cache partial only in production -->
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ partialCached "style.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "style.html" . }}
|
||||
{{ end }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- cache partial only in production -->
|
||||
{{ partial "header.html" . }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ partialCached "preloader.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "preloader.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- cache partial only in production -->
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ partialCached "footer.html" . }}
|
||||
{{ partialCached "script.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "script.html" . }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<!-- cache partial only in production -->
|
||||
{{ partial "header.html" . }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ partialCached "preloader.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "preloader.html" . }}
|
||||
{{ end }}
|
||||
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
||||
<!-- cache partial only in production -->
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ partialCached "footer.html" . }}
|
||||
{{ partialCached "script.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "script.html" . }}
|
||||
{{ end }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
13
layouts/_default/default.html
Normal file
13
layouts/_default/default.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
<section class="page-wrapper">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
|
||||
{{/* ==== BILDER SAMMELN (Front-Matter oder Auto-Discovery) ==== */}}
|
||||
{{ $photos := .Params.images }}
|
||||
{{ if not $photos }}
|
||||
|
|
@ -111,9 +113,9 @@
|
|||
{{ with $heroPhoto }}
|
||||
<figure class="service-hero__media">
|
||||
<img src='{{ .src | default . | relURL }}'
|
||||
alt='{{ .alt | default $.Title }}'
|
||||
width="1200" height="800"
|
||||
loading="eager" decoding="async" class="img-fluid">
|
||||
alt='{{ .alt | default $.Title }}'
|
||||
width="1200" height="800"
|
||||
loading="eager" decoding="async" fetchpriority="high" class="img-fluid">
|
||||
</figure>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
@ -430,7 +432,7 @@
|
|||
{{ $totalFeatures := len $features }}
|
||||
|
||||
<div class="sf-carousel" id="sfCarousel">
|
||||
<h2 class="sf-title">Unsere Leistungen</h2>
|
||||
<h3 class="sf-title">Unsere Leistungen</h3>
|
||||
|
||||
<button class="sf-arrow prev" aria-label="Vorherige Leistung">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
|
|
@ -677,7 +679,7 @@
|
|||
|
||||
<!-- Text links -->
|
||||
<div class="col-lg-6" data-reveal>
|
||||
<h2 class="mb-3">Ergebnis & Mehrwert</h2>
|
||||
<h3 class="mb-3">Ergebnis & Mehrwert</h3>
|
||||
<ul class="checklist">
|
||||
{{ range . }}
|
||||
<li data-reveal>
|
||||
|
|
@ -713,6 +715,8 @@
|
|||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "related.html" . }}
|
||||
|
||||
|
||||
<!-- =========================
|
||||
CTA (animierter Hintergrund wie auf Index),
|
||||
|
|
@ -755,13 +759,13 @@
|
|||
|
||||
<div class="cta__social">
|
||||
<a class="cta__social-link" href="https://www.instagram.com/amperion.at/" target="_blank" rel="noopener" aria-label="Instagram">
|
||||
<img src="/images/social/instagram.svg" alt="">
|
||||
<img src="/images/social/instagram.svg" alt="" role="presentation" aria-hidden="true">
|
||||
</a>
|
||||
<a class="cta__social-link" href="https://www.linkedin.com/company/amperion-gmbh/" target="_blank" rel="noopener" aria-label="LinkedIn">
|
||||
<img src="/images/social/linkedin.svg" alt="">
|
||||
<img src="/images/social/linkedin.svg" alt="" role="presentation" aria-hidden="true">
|
||||
</a>
|
||||
<a class="cta__social-link" href="https://www.facebook.com/share/1CZ7xm6cdw/?mibextid=wwXIfr" target="_blank" rel="noopener" aria-label="Facebook">
|
||||
<img src="/images/social/facebook.svg" alt="">
|
||||
<img src="/images/social/facebook.svg" alt="" role="presentation" aria-hidden="true">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
<!-- checking blog -->
|
||||
|
|
@ -9,17 +9,29 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
||||
{{ $paginator := .Paginate .Data.Pages -}}
|
||||
{{ range $paginator.Pages -}}
|
||||
<div class="post">
|
||||
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<div class="post-media post-thumb">
|
||||
{{ if isset .Params "image" -}}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<img src="{{ .Params.image | relURL }}" alt="{{ .Title }}">
|
||||
{{ with .Params.image -}}
|
||||
<a href="{{ $.RelPermalink }}" rel="bookmark">
|
||||
{{ partial "img.html" (dict
|
||||
"src" .
|
||||
"alt" $.Title
|
||||
"class" "img-responsive"
|
||||
"loading" "lazy"
|
||||
"page" $
|
||||
) }}
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
<h3 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{- end }}
|
||||
</div>
|
||||
|
||||
|
||||
<h3 class="post-title" itemprop="headline">
|
||||
<a href="{{ .RelPermalink }}" rel="bookmark">{{ .Title }}</a>
|
||||
</h3>
|
||||
|
||||
<div class="post-meta">
|
||||
<ul>
|
||||
<li><i class="fas fa-calendar-week"></i> {{ time.Format ":date_long" .PublishDate }}</li>
|
||||
|
|
@ -33,11 +45,12 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
<p>{{ .Summary }}</p>
|
||||
<a href="{{ .RelPermalink }}" class="btn btn-main">{{ i18n "read_more" }}</a>
|
||||
<p itemprop="description">{{ .Summary }}</p>
|
||||
<a href="{{ .RelPermalink }}" class="btn btn-main" rel="bookmark">{{ i18n "read_more" }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{{- end }}
|
||||
|
||||
<!-- pagination -->
|
||||
|
|
@ -47,61 +60,55 @@
|
|||
{{ $lower_limit := (add $adjacent_links 1) -}}
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) -}}
|
||||
{{ if gt $paginator.TotalPages 1 -}}
|
||||
<nav class="text-center">
|
||||
<nav class="text-center" aria-label="Blog pagination">
|
||||
<ul class="pagination post-pagination">
|
||||
<!-- Previous page. -->
|
||||
{{ if $paginator.HasPrev -}}
|
||||
<li>
|
||||
<a href="{{ $paginator.Prev.URL }}" class="page-link">{{ i18n "page_prev" }}</a>
|
||||
<a href="{{ $paginator.Prev.URL }}" class="page-link" rel="prev">{{ i18n "page_prev" }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
|
||||
<!-- Page numbers. -->
|
||||
{{ range $paginator.Pagers -}}
|
||||
{{ $page_number_flag := false -}}
|
||||
<!-- Advanced page numbers. -->
|
||||
{{ if gt $paginator.TotalPages $max_links -}}
|
||||
<!-- Lower limit pages. -->
|
||||
<!-- If the user is on a page which is in the lower limit. -->
|
||||
{{ if le $paginator.PageNumber $lower_limit -}}
|
||||
<!-- If the current loop page is less than max_links. -->
|
||||
{{ if le .PageNumber $max_links -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
<!-- Upper limit pages. -->
|
||||
<!-- If the user is on a page which is in the upper limit. -->
|
||||
{{ else if ge $paginator.PageNumber $upper_limit -}}
|
||||
<!-- If the current loop page is greater than total pages minus $max_links -->
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
<!-- Middle pages. -->
|
||||
{{ else -}}
|
||||
{{ if and (ge .PageNumber (sub $paginator.PageNumber $adjacent_links)) (le .PageNumber (add $paginator.PageNumber $adjacent_links)) -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
<!-- Simple page numbers. -->
|
||||
{{ else -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
<!-- Output page numbers. -->
|
||||
{{ if eq $page_number_flag true -}}
|
||||
<li class="{{ if eq . $paginator }} active {{ end }}">
|
||||
<a href="{{ .URL }}">
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{ $page_number_flag := false -}}
|
||||
{{ if gt $paginator.TotalPages $max_links -}}
|
||||
{{ if le $paginator.PageNumber $lower_limit -}}
|
||||
{{ if le .PageNumber $max_links -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
{{ else if ge $paginator.PageNumber $upper_limit -}}
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
{{ else -}}
|
||||
{{ if and (ge .PageNumber (sub $paginator.PageNumber $adjacent_links)) (le .PageNumber (add $paginator.PageNumber $adjacent_links)) -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ else -}}
|
||||
{{ $page_number_flag = true -}}
|
||||
{{ end -}}
|
||||
|
||||
{{ if eq $page_number_flag true -}}
|
||||
<li class="{{ if eq . $paginator }} active {{ end }}">
|
||||
<a href="{{ .URL }}" {{ if eq . $paginator }}aria-current="page"{{ end }}>
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
<!-- Next page. -->
|
||||
{{ if $paginator.HasNext -}}
|
||||
<li>
|
||||
<a href="{{ $paginator.Next.URL }}">{{ i18n "page_next" }}</a>
|
||||
<a href="{{ $paginator.Next.URL }}" rel="next">{{ i18n "page_next" }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{- end }}
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{{ partial "blog-sidebar.html" . }}
|
||||
|
|
@ -112,7 +119,7 @@
|
|||
|
||||
<!-- regular page -->
|
||||
{{ else -}}
|
||||
{{ .Render "default" }}
|
||||
{{ .Render "default" }}
|
||||
{{- end }}
|
||||
<!-- /regular page -->
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{{ define "main" }}
|
||||
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
{{ partial "page-title.html" . }}
|
||||
|
||||
|
||||
<!-- checking blog -->
|
||||
{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }}
|
||||
|
||||
|
|
@ -26,12 +27,25 @@
|
|||
</div>
|
||||
<div class="post-thumb">
|
||||
{{ with .Params.image -}}
|
||||
<img class="img-responsive" src="{{ . | relURL }}" alt="{{ $.Title }}">
|
||||
{{- end }}
|
||||
{{ $img := . }}
|
||||
{{ $static := printf "static/%s" (strings.TrimLeft "/" $img) }}
|
||||
{{ $w := 0 }}{{ $h := 0 }}
|
||||
{{ if fileExists $static }}
|
||||
{{ with (imageConfig $static) }}{{ $w = .Width }}{{ $h = .Height }}{{ end }}
|
||||
{{ end }}
|
||||
<img class="img-responsive"
|
||||
src="{{ $img | relURL }}"
|
||||
alt="{{ $.Title | plainify }}"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
{{ if gt $w 0 }}width="{{ $w }}"{{ end }}
|
||||
{{ if gt $h 0 }}height="{{ $h }}"{{ end }}>
|
||||
{{- end }}
|
||||
</div>
|
||||
<div class="post-content post-excerpt">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ partial "related.html" . }}
|
||||
{{ with site.Params.DisqusShortname -}}
|
||||
<div class="post-comments">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue