Switch from absolute to relative links

This commit is contained in:
Gabriel Arazas 2023-05-03 13:37:34 +08:00
parent be9ac8fc9f
commit fa1fe03b0e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
{{ $links = sort $links "weight" "asc" }} {{ $links = sort $links "weight" "asc" }}
{{- range $links -}} {{- range $links -}}
<li> <li>
<a {{ if $useImage }}class="site__social-icon"{{ end }} rel="me" href="{{ .url | absLangURL }}" aria-label="{{ with .name }}{{ . }}{{ else }}{{ .id }}{{ end }}"> <a {{ if $useImage }}class="site__social-icon"{{ end }} rel="me" href="{{ .url | relLangURL }}" aria-label="{{ with .name }}{{ . }}{{ else }}{{ .id }}{{ end }}">
{{- if $useImage }} {{- if $useImage }}
{{- partial "components/simple-icon.html" (dict "id" .id) }} {{- partial "components/simple-icon.html" (dict "id" .id) }}
{{- else }} {{- else }}

View File

@ -1,2 +1,2 @@
{{ $siteScript := resources.Get "js/site.js" | resources.ExecuteAsTemplate "js/site.js" . }} {{ $siteScript := resources.Get "js/site.js" | resources.ExecuteAsTemplate "js/site.js" . }}
<script src="{{ $siteScript.Permalink }}"> </script> <script src="{{ $siteScript.RelPermalink }}"> </script>