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

github.com/nodejh/hugo-theme-cactus-plus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornodejh <jianghangscu@gmail.com>2021-02-28 16:48:23 +0300
committernodejh <jianghangscu@gmail.com>2021-02-28 16:48:23 +0300
commit706cd8f8e96f9700b07299374852d65e38ef39c7 (patch)
treec99a09bbdd5fae091d6396118c25c5c33c2daa5c
parented49811edaee1601ebbe8a2e5513507a19ee7c4b (diff)
fix: fix navigation url
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/navigation.html9
-rw-r--r--layouts/partials/profile.html4
3 files changed, 7 insertions, 8 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 1708753..41f0358 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -10,7 +10,7 @@
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}
-<link rel="stylesheet" href={{ "css/style.css" | relURL }}>
+<link rel="stylesheet" href={{ "/css/style.css" | relURL }}>
<link rel="shortcut icon" href={{ "/images/favicon.ico" | relURL }} type="image/x-icon" />
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html
index bd5c26a..326779b 100644
--- a/layouts/partials/navigation.html
+++ b/layouts/partials/navigation.html
@@ -1,11 +1,10 @@
<nav class="navigation">
- {{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if not .IsHome }}
- <a href='{{ .Site.BaseURL }}'> <span class="arrow">←</span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
+ <a href='/'> <span class="arrow">←</span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
{{ end }}
- <a href='{{ .Site.BaseURL }}posts'>{{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }}</a>
- <a href='{{ .Site.BaseURL }}tags'>{{ with .Site.Params.tags }}{{ . }}{{ else }}Tags{{ end }}</a>
- <a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
+ <a href='/posts'>{{ with .Site.Params.archive }}{{ . }}{{ else }}Archive{{ end }}</a>
+ <a href='/tags'>{{ with .Site.Params.tags }}{{ . }}{{ else }}Tags{{ end }}</a>
+ <a href='/about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
{{ range $element := .Site.Params.Links }}
<a href="{{ $element.path }}">{{ $element.name }}</a>
diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html
index 49ea1db..31e9623 100644
--- a/layouts/partials/profile.html
+++ b/layouts/partials/profile.html
@@ -1,10 +1,10 @@
<header class="profile">
{{ if .Site.Params.avatarLink }}
<a href="{{ .Site.Params.avatarLink }}">
- <img class="avatar" alt="avatar" src="{{ .Site.BaseURL }}images/avatar.png" />
+ <img class="avatar" alt="avatar" src="/images/avatar.png" />
</a>
{{ else }}
- <img class="avatar" alt="avatar" src="{{ .Site.BaseURL }}images/avatar.png" />
+ <img class="avatar" alt="avatar" src="/images/avatar.png" />
{{ end }}
<h1>{{ .Site.Title }}</h1>