summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleafee98 <leafee98@hotmail.com>2022-05-16 18:46:25 +0800
committerleafee98 <leafee98@hotmail.com>2022-05-16 18:46:25 +0800
commitb343bac3f9e267501d25068686f4eec0adaaab9d (patch)
treea8ed33ef4e4e42cd370ca4d6b8b5f2966db35d42
parentbabe8865cb98d3f88e5e4a7ad4a02de767334a45 (diff)
handle all manually wirte URL with relURL
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/index.html6
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/header.html2
-rw-r--r--layouts/partials/side-categories.html4
-rw-r--r--layouts/partials/side-tags.html4
7 files changed, 14 insertions, 14 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 80d0e1a..393c3c1 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -17,7 +17,7 @@
{{ with .Params.tags }}
{{ range . }}
- <a class="tags" href="{{ "tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
+ <a class="tags" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
@@ -30,4 +30,4 @@
</section>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index cb00381..fe05600 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -18,7 +18,7 @@
<div>
Categories:
{{ range . }}
- <a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}
@@ -27,7 +27,7 @@
<div>
Tags:
{{ range . }}
- <a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}
@@ -46,4 +46,4 @@
{{ end }}
</section>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index e503274..ef54ebc 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -17,7 +17,7 @@
<div class="categories">
<span>Categories:</span>
{{ range first 2 . }}
- <a href="{{ "/categories/" | absURL }}{{ . | 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/" | absURL }}{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}
@@ -39,4 +39,4 @@
</div>
{{ partial "pagination.html" . }}
</div>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b5c2802..b1f80cd 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -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" | absURL }}"></script>
+ <script src="{{ "/js/meraid-9.0.0.min.js" | relURL }}"></script>
<script>mermaid.initialize({ startOnLoad: true });</script>
{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 231e06d..8f36795 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -19,4 +19,4 @@
{{ end }}
</ul>
</div>
-</header> \ No newline at end of file
+</header>
diff --git a/layouts/partials/side-categories.html b/layouts/partials/side-categories.html
index 6f84570..168c167 100644
--- a/layouts/partials/side-categories.html
+++ b/layouts/partials/side-categories.html
@@ -5,8 +5,8 @@
<ul>
{{ range $key, $_ := .Site.Taxonomies.categories }}
<li>
- <a href="{{ "/categories/" }}{{ $key | urlize }}">{{ $key }}({{ .Count }})</a>
+ <a href="{{ "/categories/" | relURL }}{{ $key | urlize }}">{{ $key }}({{ .Count }})</a>
</li>
{{ end }}
</ul>
-</div> \ No newline at end of file
+</div>
diff --git a/layouts/partials/side-tags.html b/layouts/partials/side-tags.html
index 8772457..acee11e 100644
--- a/layouts/partials/side-tags.html
+++ b/layouts/partials/side-tags.html
@@ -5,8 +5,8 @@
<ul>
{{ range .Site.Taxonomies.tags.Alphabetical }}
<li>
- <a href="{{ "/tags/" }}{{ .Name | urlize }}">{{ .Name }} ({{ .Count }})</a>
+ <a href="{{ "/tags/" | relURL }}{{ .Name | urlize }}">{{ .Name }} ({{ .Count }})</a>
</li>
{{ end }}
</ul>
-</div> \ No newline at end of file
+</div>