Make all links non-relative
This commit is contained in:
parent
1340c77a2f
commit
1dcf58286d
@ -3,7 +3,7 @@ languageCode: de
|
|||||||
defaultContentLanguage: de
|
defaultContentLanguage: de
|
||||||
title: TSC im VfL Sindelfingen e.V.
|
title: TSC im VfL Sindelfingen e.V.
|
||||||
theme: tsc_vfl
|
theme: tsc_vfl
|
||||||
relativeUrls: true
|
relativeUrls: false
|
||||||
|
|
||||||
sitemap:
|
sitemap:
|
||||||
changeFreq: daily
|
changeFreq: daily
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<div class="announcement-list">
|
<div class="announcement-list">
|
||||||
{{ $announcements := partial "get-announcement-list" . }}
|
{{ $announcements := partial "get-announcement-list" . }}
|
||||||
{{ range $announcements }}
|
{{ range $announcements }}
|
||||||
{{ $urlBlogEntry := .RelPermalink}}
|
{{ $urlBlogEntry := .Permalink}}
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<span class="time">
|
<span class="time">
|
||||||
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}
|
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="archive-year-list">
|
<div class="archive-year-list">
|
||||||
<div class="date">{{ .Date.Format "02.01.2006" }}</div>
|
<div class="date">{{ .Date.Format "02.01.2006" }}</div>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<a href="{{ .RelPermalink}}">
|
<a href="{{ .Permalink}}">
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="news-blog">
|
<div class="news-blog">
|
||||||
{{ range (.Paginate (first 30 ( where .Site.RegularPages "Section" "==" "news")) 10 ).Pages }}
|
{{ range (.Paginate (first 30 ( where .Site.RegularPages "Section" "==" "news")) 10 ).Pages }}
|
||||||
{{ $urlBlogEntry := .RelPermalink}}
|
{{ $urlBlogEntry := .Permalink}}
|
||||||
<div class="blog-entry">
|
<div class="blog-entry">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
{{ .Date.Format "02.01.2006" }}
|
{{ .Date.Format "02.01.2006" }}
|
||||||
@ -21,7 +21,7 @@
|
|||||||
{{/* {{ with ($resImage).Fit "290x190 webp" }} */}}
|
{{/* {{ with ($resImage).Fit "290x190 webp" }} */}}
|
||||||
{{ with $resImage }}
|
{{ with $resImage }}
|
||||||
<a href="{{ $urlBlogEntry }}">
|
<a href="{{ $urlBlogEntry }}">
|
||||||
<img src="{{ (.Fit "290x190 webp").RelPermalink }}">
|
<img src="{{ (.Fit "290x190 webp").Permalink }}">
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -3,14 +3,5 @@
|
|||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
</a>
|
</a>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
<!--{{ range .Pages.ByPublishDate.Reverse }}
|
|
||||||
<p>
|
|
||||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
|
||||||
{{ partial "metadata.html" . }}
|
|
||||||
<a class="summary" href="{{ .RelPermalink }}">
|
|
||||||
<p>{{ .Summary }}</p>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
{{ end }}-->
|
|
||||||
{{ partial "totop" }}
|
{{ partial "totop" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="day">
|
<div class="day">
|
||||||
<div class="date">{{ .Key }}</div>
|
<div class="date">{{ .Key }}</div>
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<div class="participation"><a href="{{ .RelPermalink }}">{{ .Params.ort }} ({{ .Params.partner }} / {{ .Params.partnerin }})</a></div>
|
<div class="participation"><a href="{{ .Permalink }}">{{ .Params.ort }} ({{ .Params.partner }} / {{ .Params.partnerin }})</a></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
{{- range $images }}
|
{{- range $images }}
|
||||||
{{- $img := .Fit "1220x340 webp" -}}
|
{{- $img := .Fit "1220x340 webp" -}}
|
||||||
{{ if $first }}
|
{{ if $first }}
|
||||||
<img src="{{ $img.RelPermalink }}" class="placeholder">
|
<img src="{{ $img.Permalink }}" class="placeholder">
|
||||||
{{ $first = false }}
|
{{ $first = false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img src="{{ $img.RelPermalink }}" class="hidden slider-img">
|
<img src="{{ $img.Permalink }}" class="hidden slider-img">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
<div class="dots">
|
<div class="dots">
|
||||||
{{- $count := (len $images) -}}
|
{{- $count := (len $images) -}}
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
<div class="last-entry meta-menu">
|
<div class="last-entry meta-menu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://www.facebook.com/pages/Tanzsportclub-im-VfL-Sindelfingen/140842382700982" class="facebook" target="_blank"></a></li>
|
<li><a href="https://www.facebook.com/pages/Tanzsportclub-im-VfL-Sindelfingen/140842382700982" class="facebook" target="_blank"></a></li>
|
||||||
<li><a href="{{ relref . "page/club/impressum" }}">Impressum & Datenschutz</a></li>
|
<li><a href="{{ ref . "page/club/impressum" }}">Impressum & Datenschutz</a></li>
|
||||||
<li><a href="{{ relref . "page/info/sitemap" }}">Sitemap</a></li>
|
<li><a href="{{ ref . "page/info/sitemap" }}">Sitemap</a></li>
|
||||||
<li><a href="{{ relref . "page/info" }}">Kontakt</a></li>
|
<li><a href="{{ ref . "page/info" }}">Kontakt</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "transpiler" "dartsass") }}
|
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "transpiler" "dartsass") }}
|
||||||
{{ $scss := resources.Get "css/main.scss" | css.Sass $options }}
|
{{ $scss := resources.Get "css/main.scss" | css.Sass $options }}
|
||||||
{{ if hugo.IsProduction }}{{ $scss = $scss | minify | fingerprint }}{{ end }}
|
{{ if hugo.IsProduction }}{{ $scss = $scss | minify | fingerprint }}{{ end }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}" />
|
<link rel="stylesheet" type="text/css" href="{{ $scss.Permalink }}" />
|
||||||
{{ $title := print .Site.Title " | " .Title }}
|
{{ $title := print .Site.Title " | " .Title }}
|
||||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
@ -22,8 +22,8 @@
|
|||||||
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
|
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
|
||||||
{{ $galleryJs := resources.Get "js/gallery.js" }}
|
{{ $galleryJs := resources.Get "js/gallery.js" }}
|
||||||
{{ if hugo.IsProduction }}{{ $galleryJs = $galleryJs | minify | fingerprint }}{{ end }}
|
{{ if hugo.IsProduction }}{{ $galleryJs = $galleryJs | minify | fingerprint }}{{ end }}
|
||||||
<script defer src="{{ $galleryJs.RelPermalink }}"></script>
|
<script defer src="{{ $galleryJs.Permalink }}"></script>
|
||||||
{{ $mailsJs := resources.Get "js/mails.js" }}
|
{{ $mailsJs := resources.Get "js/mails.js" }}
|
||||||
{{ if hugo.IsProduction }}{{ $mailsJs = $mailsJs | minify | fingerprint }}{{ end }}
|
{{ if hugo.IsProduction }}{{ $mailsJs = $mailsJs | minify | fingerprint }}{{ end }}
|
||||||
<script defer src="{{ $mailsJs.RelPermalink }}"></script>
|
<script defer src="{{ $mailsJs.Permalink }}"></script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{ $announcements := partial "get-announcement-list" . }}
|
{{ $announcements := partial "get-announcement-list" . }}
|
||||||
<div class="announcements">
|
<div class="announcements">
|
||||||
{{ range $announcements }}
|
{{ range $announcements }}
|
||||||
{{ $urlBlogEntry := .RelPermalink}}
|
{{ $urlBlogEntry := .Permalink}}
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
<div class="time">
|
<div class="time">
|
||||||
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}
|
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
## Trainingsorte
|
## Trainingsorte
|
||||||
|
|
||||||
siehe [Standorte]({{ relref $.Page "raeume" }})
|
siehe [Standorte]({{ ref $.Page "raeume" }})
|
||||||
|
|
||||||
## Beitrag
|
## Beitrag
|
||||||
|
|
||||||
siehe [Mitgliedschaft]({{ relref $.Page "beitrag" }})
|
siehe [Mitgliedschaft]({{ ref $.Page "beitrag" }})
|
||||||
|
@ -17,12 +17,12 @@
|
|||||||
{{ with $.Get "href" }}
|
{{ with $.Get "href" }}
|
||||||
href="{{ . }}"
|
href="{{ . }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
data-url="{{ $imgFitted.RelPermalink }}"
|
data-url="{{ $imgFitted.Permalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
{{ with $.Get "alt"}}alt="{{.}}"{{ end }}
|
{{ with $.Get "alt"}}alt="{{.}}"{{ end }}
|
||||||
src="{{ $img.RelPermalink }}"
|
src="{{ $img.Permalink }}"
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
{{ with $.Get "credits" }}
|
{{ with $.Get "credits" }}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{{ if not $resource }}
|
{{ if not $resource }}
|
||||||
{{ $resource = resources.GetMatch $filename }}
|
{{ $resource = resources.GetMatch $filename }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
src="{{ $resource.RelPermalink }}"
|
src="{{ $resource.Permalink }}"
|
||||||
>
|
>
|
||||||
{{ with .Get "href" }}
|
{{ with .Get "href" }}
|
||||||
</a>
|
</a>
|
||||||
|
@ -6,6 +6,6 @@ class="internal-video"
|
|||||||
>
|
>
|
||||||
<source
|
<source
|
||||||
{{ with .Get "type" }}type="{{ . }}"{{ end }}
|
{{ with .Get "type" }}type="{{ . }}"{{ end }}
|
||||||
src="{{ (.Page.Resources.GetMatch (.Get "src")).RelPermalink }}"
|
src="{{ (.Page.Resources.GetMatch (.Get "src")).Permalink }}"
|
||||||
>
|
>
|
||||||
</video>
|
</video>
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
{{ .Get "url"}}{{ page.Resources}}
|
{{ .Get "url"}}{{ page.Resources}}
|
||||||
-->
|
-->
|
||||||
{{ $res := .Page.Resources.GetMatch (.Get "url") }}
|
{{ $res := .Page.Resources.GetMatch (.Get "url") }}
|
||||||
<a target="_blank" class="download press-download" href="{{ $res.RelPermalink }}">
|
<a target="_blank" class="download press-download" href="{{ $res.Permalink }}">
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
</a>
|
</a>
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
-->
|
-->
|
||||||
<div class="press-img">
|
<div class="press-img">
|
||||||
{{- $res := .Page.Resources.GetMatch (.Get "src") -}}
|
{{- $res := .Page.Resources.GetMatch (.Get "src") -}}
|
||||||
<img{{ with .Get "alt" }} alt="{{ . }}"{{ end }} src="{{ $res.RelPermalink }}">
|
<img{{ with .Get "alt" }} alt="{{ . }}"{{ end }} src="{{ $res.Permalink }}">
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="image">
|
<div class="image">
|
||||||
{{ $resource := .Page.Resources.GetMatch (.Get "image") }}
|
{{ $resource := .Page.Resources.GetMatch (.Get "image") }}
|
||||||
<img src="{{ $resource.RelPermalink}} ">
|
<img src="{{ $resource.Permalink}} ">
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
{{ $imageName := .Params.image }}
|
{{ $imageName := .Params.image }}
|
||||||
{{ $image := "" }}
|
{{ $image := "" }}
|
||||||
{{ with .Resources.GetMatch $imageName}}
|
{{ with .Resources.GetMatch $imageName}}
|
||||||
{{ $image = (.Fit "60x80 webp").RelPermalink }}
|
{{ $image = (.Fit "60x80 webp").Permalink }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ with .Resources.ByType "image" }}
|
{{ with .Resources.ByType "image" }}
|
||||||
{{ $image = ((index . 0).Fit "60x80 webp").RelPermalink }}
|
{{ $image = ((index . 0).Fit "60x80 webp").Permalink }}
|
||||||
{{ warnf "Image for %s is not correclty found. Falling back to first found image in page resources." ($.Get "name") }}
|
{{ warnf "Image for %s is not correclty found. Falling back to first found image in page resources." ($.Get "name") }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ with .Params.sex }}
|
{{ with .Params.sex }}
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
{{ $imageName := .Params.image }}
|
{{ $imageName := .Params.image }}
|
||||||
{{ $image := "" }}
|
{{ $image := "" }}
|
||||||
{{ with (.Resources.GetMatch $imageName) }}
|
{{ with (.Resources.GetMatch $imageName) }}
|
||||||
{{ $image = (.Fit "60x80 webp").RelPermalink }}
|
{{ $image = (.Fit "60x80 webp").Permalink }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ warnf "Image for %s is not correclty found. Falling back to default." ($.Get "name") }}
|
{{ warnf "Image for %s is not correclty found. Falling back to default." ($.Get "name") }}
|
||||||
{{ with (.Resources.ByType "image") }}
|
{{ with (.Resources.ByType "image") }}
|
||||||
{{ $image = ((index . 0).Fit "60x80 webp").RelPermalink }}
|
{{ $image = ((index . 0).Fit "60x80 webp").Permalink }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ with .Params.sex }}
|
{{ with .Params.sex }}
|
||||||
{{ if eq . "male" }}
|
{{ if eq . "male" }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user