Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmazingRise <8315221+AmazingRise@users.noreply.github.com>2022-07-30 15:38:16 +0300
committerAmazingRise <8315221+AmazingRise@users.noreply.github.com>2022-07-30 15:38:16 +0300
commit5017b8bb9533ac5801918d05f67e13a9d6881859 (patch)
tree3c403877d476328286a6a58aeb2ba97c49844de5
parent9f527cd28ce76205858011c9c97b30eb8e10393d (diff)
Fixed #133
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/_default/taxonomy.html2
-rw-r--r--layouts/_default/terms.html2
-rw-r--r--layouts/index.html4
-rw-r--r--layouts/partials/comment.html4
-rw-r--r--layouts/partials/head.html4
-rw-r--r--layouts/partials/mobile-header.html2
-rw-r--r--layouts/partials/sidebar.html2
-rw-r--r--layouts/shortcodes/insertFigure.html4
9 files changed, 15 insertions, 15 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f1e2a0c..c014cac 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -12,7 +12,7 @@
{{ if $featured_image }}
{{ $image := .Resources.GetMatch (.Params.featured_image) }}
{{ if $image }}
- style="background-image: url('{{$image.Permalink }}')"
+ style="background-image: url('{{$image.RelPermalink }}')"
{{ else }}
style="background-image: url('{{ $featured_image | absURL}}')"
{{ end }}
@@ -79,7 +79,7 @@
<nav class="post-pagination">
{{if .Next}}
- <a class="newer-posts" href="{{.Next.Permalink}}">
+ <a class="newer-posts" href="{{.Next.RelPermalink}}">
{{ i18n "next_link" }}<br>{{.Next.Title}}
</a>
{{else}}
@@ -89,7 +89,7 @@
{{end}}
{{if .Prev}}
- <a class="older-posts" href="{{.Prev.Permalink}}">
+ <a class="older-posts" href="{{.Prev.RelPermalink}}">
{{ i18n "prev_link" }}<br>{{.Prev.Title}}
</a>
{{else}}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index ed8110a..6d4e368 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -5,7 +5,7 @@
<div class="post-item post-item-no-gaps">
<div class="post-item-info-wrapper">
<div class="post-item-title post-item-title-small">
- <a href="{{ .Parent.Permalink }}">{{.Parent.Title}}</a> / {{ .Title }}
+ <a href="{{ .Parent.RelPermalink }}">{{.Parent.Title}}</a> / {{ .Title }}
</div>
</div>
</div>
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index c977206..500093d 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -15,7 +15,7 @@
<div class="tags">
{{ range .Data.Terms }}
<div class="tag">
- <a href="{{.Page.Permalink}}" class="btn btn-outline-secondary position-relative rounded-pill">
+ <a href="{{.Page.RelPermalink}}" class="btn btn-outline-secondary position-relative rounded-pill">
{{.Page.Title}}
<span class="badge">({{.Count}})</span>
</a>
diff --git a/layouts/index.html b/layouts/index.html
index e25ed9d..43378b3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -5,7 +5,7 @@
<div class="post-list-container post-list-container-no-background">
{{range .Paginator.Pages}}
{{if and (.IsPage) (.Params.date)}}
- <a href="{{.Permalink}}" class="a-block">
+ <a href="{{.RelPermalink}}" class="a-block">
<div class="post-item-wrapper">
<div class="post-item post-item-no-divider">
<div class="post-item-info-wrapper">
@@ -24,7 +24,7 @@
<div class="post-item-image"
{{ if $image }}
{{ $thumbnail := $image.Resize "690x360" }}
- style="background-image: url('{{ $thumbnail.Permalink }}')"
+ style="background-image: url('{{ $thumbnail.RelPermalink }}')"
{{ else }}
style="background-image: url('{{ $featured_image | absURL}}')"
diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html
index 372df17..a7f1e73 100644
--- a/layouts/partials/comment.html
+++ b/layouts/partials/comment.html
@@ -11,10 +11,10 @@
*/
var disqus_config = function () {
// Replace PAGE_URL with your page's canonical URL variable
- this.page.url = '{{ .Permalink }}';
+ this.page.url = '{{ .RelPermalink }}';
// Replace PAGE_IDENTIFIER with your page's unique identifier variable
- this.page.identifier = '{{ .Permalink }}';
+ this.page.identifier = '{{ .RelPermalink }}';
};
(function() {
var d = document, s = d.createElement('script');
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index aa7c9b2..9a08420 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -47,11 +47,11 @@
{{ end }}
{{ $styles := resources.Get "scss/journal.scss" | toCSS | minify | fingerprint }}
-<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
+<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
{{ if not .Site.Params.disableDarkmode }}
{{ $darkmode := resources.Get "scss/dark-mode.scss" | toCSS | minify | fingerprint }}
-<link rel="stylesheet" href="{{ $darkmode.Permalink }}" integrity="{{ $darkmode.Data.Integrity }}" media="screen">
+<link rel="stylesheet" href="{{ $darkmode.RelPermalink }}" integrity="{{ $darkmode.Data.Integrity }}" media="screen">
{{ end }}
<script src="{{"/vendor/js/loadCSS.js" | relURL}}"></script>
diff --git a/layouts/partials/mobile-header.html b/layouts/partials/mobile-header.html
index ad59cda..4e1c738 100644
--- a/layouts/partials/mobile-header.html
+++ b/layouts/partials/mobile-header.html
@@ -6,7 +6,7 @@
<script async src="https://cse.google.com/cse.js?cx={{.Site.Params.googleSearchCode}}"></script>
<div class="gcse-searchbox-only" mobileLayout="true"></div>
{{ end }}
- {{ $current := .Permalink | absLangURL }}
+ {{ $current := .RelPermalink | absLangURL }}
{{ range .Site.Menus.main }}
{{$actived := "false"}}
<!-- A problem caused by slash: if you use "eq" directly, you will get a result of "/tags/" and "/tags" -->
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 153c56f..1cb7f51 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -15,7 +15,7 @@
</a>
<div class="nav-link-list">
- {{ $current := .Permalink | absLangURL }}
+ {{ $current := .RelPermalink | absLangURL }}
{{ range .Site.Menus.main }}
{{$actived := "false"}}
<!-- A problem caused by slash: if you use "eq" directly, you will get a result of "/tags/" and "/tags" -->
diff --git a/layouts/shortcodes/insertFigure.html b/layouts/shortcodes/insertFigure.html
index e220646..b9cd015 100644
--- a/layouts/shortcodes/insertFigure.html
+++ b/layouts/shortcodes/insertFigure.html
@@ -25,8 +25,8 @@
{{ end }}
<figure align="{{$align}}" role="group" aria-describedby="caption-{{ $caption | md5 }}">
- <a href="{{ $original.Permalink }}" class="img-link">
- <img src="{{ $new.Permalink }}">
+ <a href="{{ $original.RelPermalink }}" class="img-link">
+ <img src="{{ $new.RelPermalink }}">
</a>
<figcaption id="caption-{{ $caption | md5 }}">
{{ $caption | markdownify }}