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

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-09-06 18:42:21 +0300
committervjeantet <valere.jeantet@gmail.com>2020-09-06 18:42:21 +0300
commitf15172311f7609749aa32a55757441ca6cfa20b9 (patch)
tree6d97eccdcf305804dd40ae048417f6341d981a5c
parent74da25cf8c2bf876566b6dce0ed8c0ae8267b06b (diff)
fix link formating
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 61be3f4..5e437fd 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -3,7 +3,7 @@
{{ if or (hasPrefix . "http:") (hasPrefix . "https:") }}
{{ $redirectURL = . }}
{{ else }}
- {{ $redirectURL = relref $ .}}
+ {{ $redirectURL = ref $ .}}
{{ end }}
{{ end }}
<!DOCTYPE html>
diff --git a/layouts/index.html b/layouts/index.html
index 3e02a9a..0bbb41d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -7,7 +7,7 @@
{{ partial "body-article-content.html" . }}
{{else}}
{{with index .Site.Sections 0}}
- <meta http-equiv = "refresh" content = "0; url = {{.RelPermalink}}"/>
+ <meta http-equiv = "refresh" content = "0; url = {{.Permalink}}"/>
{{else}}
no file found in content folder :(
{{end}}