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

github.com/saadnpq/npq-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaadnpq <saadnpq@localhost.localdomain>2020-04-16 21:21:05 +0300
committersaadnpq <saadnpq@localhost.localdomain>2020-04-16 21:21:05 +0300
commitacfc0d8358de7a57e3c14e761f3a6402980fd8fe (patch)
treeb3f8cd640743d2d0bf6c9db190774d3e1f18742c
parent64b5141d46aa301154d5c9ae4bb37dacd9cc96fc (diff)
fix permalink issues
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/aside.html5
-rw-r--r--layouts/partials/head.html4
3 files changed, 6 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index e3ae2c1..d0e32f6 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -11,5 +11,5 @@
{{- partial "footer.html" . -}}
</main>
</body>
- <script src={{"/js/navbutton.js" | absURL }}></script>
+ <script src={{"js/navbutton.js" | absURL }}></script>
</html>
diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html
index 692f213..f44fca5 100644
--- a/layouts/partials/aside.html
+++ b/layouts/partials/aside.html
@@ -1,10 +1,11 @@
<aside id="sidenav">
<header>
{{if eq .Site.Params.useAvatar true}}
- <a href="{{ .Site.BaseURL }}"><img src="/avatar.png" alt="avatar"></a>
+ <a href={{ "" | absURL }}><img src="{{ "avatar.png" | absURL }}" alt="avatar"></a>
+
{{end}}
- <a id="branding" href="{{ .Site.BaseURL }}">
+ <a id="branding" href={{ "" | absURL }}>
{{with .Site.Params.logo}}
{{ . | safeHTML }}
{{else}}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 9702080..6f4e278 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -10,8 +10,8 @@
{{- with .Site.Params.keywords -}}
<meta name="keywords" content="{{.}}">
{{ end -}}
- <link rel="stylesheet" href={{ "/css/syntax.css" | absURL }}>
- <link rel="stylesheet" href={{ "/css/style.css" | absURL }}>
+ <link rel="stylesheet" href={{ "css/syntax.css" | absURL }}>
+ <link rel="stylesheet" href={{ "css/style.css" | absURL }}>
<script src="https://kit.fontawesome.com/1b7478c139.js" crossorigin="anonymous"></script>
<title>{{ .Site.Title }}</title>
</head> \ No newline at end of file