fix: wrong usage of relURL

This commit is contained in:
leafee98 2022-09-04 19:11:04 +08:00
parent 0e48c7d586
commit 7c400e3412
7 changed files with 13 additions and 13 deletions

View file

@ -22,7 +22,7 @@
{{ with .Params.tags }}
{{ range . }}
<a class="tags" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
<a class="tags" href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}

View file

@ -18,7 +18,7 @@
<div>
Categories:
{{ range . }}
<a href="{{ "/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}
@ -27,7 +27,7 @@
<div>
Tags:
{{ range . }}
<a href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}

View file

@ -22,7 +22,7 @@
{{ with .Params.tags }}
{{ range . }}
<a class="tags" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
<a class="tags" href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}

View file

@ -17,7 +17,7 @@
<div class="categories">
<span>Categories:</span>
{{ range first 2 . }}
<a href="{{ "/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}
@ -26,7 +26,7 @@
<div class="tags">
<span>Tags:</span>
{{ range first 5 . }}
<a href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}

View file

@ -7,7 +7,7 @@
{{/* load mermaid if any mermaid code block */}}
{{ if .Page.Store.Get "hasMermaid" }}
<script src="{{ "/js/meraid-9.0.0.min.js" | relURL }}"></script>
<script src="{{ "js/meraid-9.0.0.min.js" | relURL }}"></script>
<script>mermaid.initialize({ startOnLoad: true });</script>
{{ end }}
@ -30,7 +30,7 @@
</script>
{{ end }}
<link rel="stylesheet" href="{{ "/lib/icofont/icofont.min.css" | relURL }}" />
<link rel="stylesheet" href="{{ "/css/syntax.css" | relURL }}" />
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
<link rel="shortcut icon" href="{{ "/images/favicon.ico" | relURL }}" type="image/x-icon" />
<link rel="stylesheet" href="{{ "lib/icofont/icofont.min.css" | relURL }}" />
<link rel="stylesheet" href="{{ "css/syntax.css" | relURL }}" />
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" />
<link rel="shortcut icon" href="{{ "images/favicon.ico" | relURL }}" type="image/x-icon" />

View file

@ -5,7 +5,7 @@
<ul>
{{ range $key, $_ := .Site.Taxonomies.categories }}
<li>
<a href="{{ "/categories/" | relURL }}{{ $key | urlize }}">{{ $key }}({{ .Count }})</a>
<a href="{{ "categories/" | relURL }}{{ $key | urlize }}">{{ $key }}({{ .Count }})</a>
</li>
{{ end }}
</ul>

View file

@ -5,7 +5,7 @@
<ul>
{{ range .Site.Taxonomies.tags.Alphabetical }}
<li>
<a href="{{ "/tags/" | relURL }}{{ .Name | urlize }}">{{ .Name }} ({{ .Count }})</a>
<a href="{{ "tags/" | relURL }}{{ .Name | urlize }}">{{ .Name }} ({{ .Count }})</a>
</li>
{{ end }}
</ul>