Make all links non-relative
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
{{- range $images }}
|
||||
{{- $img := .Fit "1220x340 webp" -}}
|
||||
{{ if $first }}
|
||||
<img src="{{ $img.RelPermalink }}" class="placeholder">
|
||||
<img src="{{ $img.Permalink }}" class="placeholder">
|
||||
{{ $first = false }}
|
||||
{{ end }}
|
||||
<img src="{{ $img.RelPermalink }}" class="hidden slider-img">
|
||||
<img src="{{ $img.Permalink }}" class="hidden slider-img">
|
||||
{{ end -}}
|
||||
<div class="dots">
|
||||
{{- $count := (len $images) -}}
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
<div class="last-entry meta-menu">
|
||||
<ul>
|
||||
<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="{{ relref . "page/info/sitemap" }}">Sitemap</a></li>
|
||||
<li><a href="{{ relref . "page/info" }}">Kontakt</a></li>
|
||||
<li><a href="{{ ref . "page/club/impressum" }}">Impressum & Datenschutz</a></li>
|
||||
<li><a href="{{ ref . "page/info/sitemap" }}">Sitemap</a></li>
|
||||
<li><a href="{{ ref . "page/info" }}">Kontakt</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "transpiler" "dartsass") }}
|
||||
{{ $scss := resources.Get "css/main.scss" | css.Sass $options }}
|
||||
{{ 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 }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
@@ -22,8 +22,8 @@
|
||||
<script defer src="{{ relURL "js/jquery-3.6.3.min.js" }}"></script>
|
||||
{{ $galleryJs := resources.Get "js/gallery.js" }}
|
||||
{{ 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" }}
|
||||
{{ if hugo.IsProduction }}{{ $mailsJs = $mailsJs | minify | fingerprint }}{{ end }}
|
||||
<script defer src="{{ $mailsJs.RelPermalink }}"></script>
|
||||
<script defer src="{{ $mailsJs.Permalink }}"></script>
|
||||
</head>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{{ $announcements := partial "get-announcement-list" . }}
|
||||
<div class="announcements">
|
||||
{{ range $announcements }}
|
||||
{{ $urlBlogEntry := .RelPermalink}}
|
||||
{{ $urlBlogEntry := .Permalink}}
|
||||
<div class="entry">
|
||||
<div class="time">
|
||||
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}
|
||||
|
||||
Reference in New Issue
Block a user