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-08-30 19:15:15 +0300
committervjeantet <valere.jeantet@gmail.com>2020-08-30 19:15:15 +0300
commitc08d263aeedf0470c02d7a6c88000c108412316f (patch)
treee290e5ead116049aa172f1019b4e99e9c58aed89 /layouts
parent84dc97cffaded0a1ce61ba0cebbc3334dd082b70 (diff)
update documentation
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html27
-rw-r--r--layouts/partials/body-article-sidepage.html4
2 files changed, 24 insertions, 7 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index befda08..d5a1abb 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,9 +1,21 @@
+{{- $redirectURL := "" }}
+{{ with .Params.redirect}}
+ {{ if or (hasPrefix . "http:") (hasPrefix . "https:") }}
+ {{ $redirectURL = . }}
+ {{ else }}
+ {{ $redirectURL = relref $ .}}
+ {{ end }}
+{{ end }}
<!DOCTYPE html>
<html>
<head>
<title>{{ block "title" . }}{{ end }}</title>
{{ partial "html-head.html" . }}
+ {{if ne $redirectURL "" }}
+ <meta http-equiv="refresh" content="0;{{ $redirectURL }}">
+ {{end}}
</head>
+
<body data-url="{{ .RelPermalink }}"
class="
@@ -14,7 +26,7 @@
{{if .Params.hide_toc}}hidetoc {{end -}}
{{if .Params.hide_footer}}hidefooter {{end -}}
">
-<!--
+<!--
<style type="text/css">
#debug{
display: -webkit-box;
@@ -37,12 +49,17 @@
overflow: auto;
}
</style>
-<pre id="debug">
- {{ printf "%#v" resources }}
-</pre>
+ <pre id="debug">
+ {{ printf "%#v" $redirectURL }}
+</pre>
-->
-{{ if eq .Params.layout "raw" }}
+{{ if ne $redirectURL ""}}
+ <script type="text/javascript">
+ window.location = '{{ $redirectURL }}'
+ </script>
+ <a href="{{ $redirectURL }}">go to {{ $redirectURL }}</a>
+{{ else if eq .Params.layout "raw" }}
{{- .Content -}}
{{ else }}
<header style="">
diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html
index e49376d..5a4aa75 100644
--- a/layouts/partials/body-article-sidepage.html
+++ b/layouts/partials/body-article-sidepage.html
@@ -1,4 +1,4 @@
-{{- partial "_mdinclude.html" (dict "name" "_article-sidepage-before" "context" .) -}}
+{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-before/_index" "context" .) -}}
<div class="actions">
</div>
<div class="TableOfContents">
@@ -10,4 +10,4 @@
</nav>
{{ .TableOfContents }}
</div>
-{{- partial "_mdinclude.html" (dict "name" "_article-sidepage-after" "context" .) -}} \ No newline at end of file
+{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-after/_index" "context" .) -}} \ No newline at end of file