Switching to relative links

This commit is contained in:
Brandon Rozek 2025-12-06 13:28:08 -05:00
parent ded609da7d
commit fb67108120
No known key found for this signature in database
GPG key ID: DFB0E78F805F4567
3 changed files with 10 additions and 10 deletions

View file

@ -43,17 +43,17 @@
{{ $items := (where site.RegularPages "Type" "blog").ByDate }}
{{ range last 1 $items }}
<p><strong>Blog Post: </strong><a href="{{ .Permalink }}">{{ .Title }}</a></p>
<p><strong>Blog Post: </strong><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
{{ end }}
{{ $items := (where site.RegularPages "Type" "paper").ByDate }}
{{ range last 1 $items }}
<p><strong>Publication: </strong><a href="{{ .Permalink }}">{{ .Title }}</a></p>
<p><strong>Publication: </strong><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
{{ end }}
{{ $items := (where site.RegularPages "Type" "tracks").ByDate }}
{{ range last 1 $items }}
<p><strong>Recorded Walk: </strong><a href="{{ .Permalink }}">{{ .Title }}</a></p>
<p><strong>Recorded Walk: </strong><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
{{ end }}
{{ $items := (where site.RegularPages "Type" "observations").ByDate }}
@ -64,13 +64,13 @@
{{ else }}
{{ $name = .Params.taxon.name }}
{{ end }}
<p><strong>Nature Observation: </strong><a href="{{ .Permalink }}">{{ title $name }}</a></p>
<p><strong>Nature Observation: </strong><a href="{{ .RelPermalink }}">{{ title $name }}</a></p>
{{ end }}
{{ $items := (where site.RegularPages "Type" "menu").ByDate }}
{{ range last 1 $items }}
<p><strong>Recipe: </strong><a href="{{ .Permalink }}">{{ .Title }}</a></p>
<p><strong>Recipe: </strong><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
{{ end }}

View file

@ -10,7 +10,7 @@
<ul class="footer-nav">
{{ range .Site.Sections }}
{{ if not .Params.hidden }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
@ -22,7 +22,7 @@
{{ $sectionPages := where .Site.Pages "Section" "" }}
{{ range $sectionPages }}
{{ if and (not .Params.hidden) (ne .Permalink .Site.BaseURL)}}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
<li><a href="/support">Support</a></li>

View file

@ -64,12 +64,12 @@
{{- $fontawesome := resources.Get "css/fontawesome.css" -}}
{{- $syntaxHighlight := resources.Get "css/syntax-highlight.css" -}}
{{ $css := slice $style $markdown $fontawesome $syntaxHighlight | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">
{{- $styleDark := resources.Get "css/style-dark.css" -}}
{{- $markdownDark := resources.Get "css/markdown-dark.css" -}}
{{ $cssDark := slice $styleDark $markdownDark | resources.Concat "css/style-dark.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $cssDark.Permalink }}" media="(prefers-color-scheme: dark)" integrity="{{ $cssDark.Data.Integrity }}">
<link rel="stylesheet" href="{{ $cssDark.RelPermalink }}" media="(prefers-color-scheme: dark)" integrity="{{ $cssDark.Data.Integrity }}">
<!-- custom css -->
{{- range .Site.Params.custom_css -}}
@ -83,5 +83,5 @@
{{ partial "citation.html" . }}
{{- $script := resources.Get "js/script.js" -}}
<script src="{{ $script.Permalink }}" async></script>
<script src="{{ $script.RelPermalink }}" async></script>
</head>