SEOOptimierungenAlex07092025
This commit is contained in:
parent
6828c3f835
commit
b7f8f2ac5e
34 changed files with 4426 additions and 253 deletions
|
|
@ -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