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-19 14:28:36 +0300
committervjeantet <valere.jeantet@gmail.com>2020-08-19 14:28:36 +0300
commita5f3708cf8330fcd6653a18564dc77e156fc41cf (patch)
tree363b779ca6ad805be73e9f2bfddc4acdb3fdcbb8 /layouts
parent5ac2db91010c879c13e1e9e2af6231e487b3ccf5 (diff)
rename content/_includes folder to content/_layout
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/_next-prev-page.html2
-rw-r--r--layouts/partials/body-footer.html2
-rw-r--r--layouts/partials/body-header.html2
-rw-r--r--layouts/partials/body-sidebar.html4
4 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/_next-prev-page.html b/layouts/partials/_next-prev-page.html
index f7ec44e..9b5ee39 100644
--- a/layouts/partials/_next-prev-page.html
+++ b/layouts/partials/_next-prev-page.html
@@ -5,7 +5,7 @@
{{- define "menu-nextprev" -}}
{{- $currentNode := .currentnode -}}
- {{- if ne .menu.Params.hidden true -}}
+ {{- if and (ne .menu.Params.hidden true) (not (hasPrefix .menu.Section "_")) -}}
{{- if hasPrefix $currentNode.Permalink .menu.Permalink -}}
{{- $currentNode.Scratch.Set "NextPageOK" "OK" -}}
{{- $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") -}}
diff --git a/layouts/partials/body-footer.html b/layouts/partials/body-footer.html
index d2c3d04..214fbb3 100644
--- a/layouts/partials/body-footer.html
+++ b/layouts/partials/body-footer.html
@@ -33,6 +33,6 @@
</div>
-{{- partial "_mdinclude.html" (dict "name" "_include/footer/_index" "context" . "tip" "cocou" ) -}}
+{{- partial "_mdinclude.html" (dict "name" "_layout/footer/_index" "context" . "tip" (T "create-footer-md") ) -}}
diff --git a/layouts/partials/body-header.html b/layouts/partials/body-header.html
index 4748dbb..636b388 100644
--- a/layouts/partials/body-header.html
+++ b/layouts/partials/body-header.html
@@ -5,7 +5,7 @@
<div>
{{- $defaultheader := printf "<a class='baselink' href='%s'>%s</a>" .Site.BaseURL .Site.Title -}}
- {{- partial "_mdinclude.html" (dict "name" "_include/header/_index" "context" . "tip" $defaultheader ) -}}
+ {{- partial "_mdinclude.html" (dict "name" "_layout/header/_index" "context" . "tip" $defaultheader ) -}}
</div>
{{- with .Site.Menus.shortcuts}}
diff --git a/layouts/partials/body-sidebar.html b/layouts/partials/body-sidebar.html
index 39a352b..217d8fb 100644
--- a/layouts/partials/body-sidebar.html
+++ b/layouts/partials/body-sidebar.html
@@ -18,7 +18,7 @@
{{- end}}
-{{- partial "_mdinclude.html" (dict "name" "_include/sidebar-before/_index" "context" .) -}}
+{{- partial "_mdinclude.html" (dict "name" "_layout/sidebar-before/_index" "context" .) -}}
<div id="close_menu">
<a href="javascript:void(0);" style="font-size:15px;" onclick="$('article > aside').toggleClass('responsive')">
@@ -30,4 +30,4 @@
{{- partial "_menu.html" . }}
</ul>
-{{- partial "_mdinclude.html" (dict "name" "_include/sidebar-after/_index" "context" .) -}} \ No newline at end of file
+{{- partial "_mdinclude.html" (dict "name" "_layout/sidebar-after/_index" "context" .) -}} \ No newline at end of file