diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-08-17 21:10:42 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-08-17 21:10:42 +0300 |
commit | dfa890967eebbd0cc057fb99dc1cf61c847083ed (patch) | |
tree | 3a11391bb8e022e3e662c0e025416604cabb574c /layouts/partials | |
parent | 67ed32d5cb8cb053afc643defaca71189141629d (diff) |
use _include folder for mdinclude
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/_menu.html | 6 | ||||
-rw-r--r-- | layouts/partials/body-footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/body-header.html | 2 | ||||
-rw-r--r-- | layouts/partials/body-sidebar.html | 4 |
4 files changed, 8 insertions, 6 deletions
diff --git a/layouts/partials/_menu.html b/layouts/partials/_menu.html index f94a9d1..ec82735 100644 --- a/layouts/partials/_menu.html +++ b/layouts/partials/_menu.html @@ -6,7 +6,9 @@ {{- end}} {{- else}} {{- range .Site.Home.Sections.ByWeight}} - {{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "level" 0}} + {{- if not (hasPrefix .Section "_") -}} + {{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "level" 0}} + {{end}} {{- end}} {{- end}} @@ -68,7 +70,7 @@ {{- range $pages.ByWeight }} {{- if and .Params.hidden (not $.showhidden) }} {{- else}} - {{ if eq .Kind "section"}} + {{ if eq .Kind "section" }} {{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "level" (add $level 1)}} {{- end}} {{- end}} diff --git a/layouts/partials/body-footer.html b/layouts/partials/body-footer.html index 82c9cda..d2c3d04 100644 --- a/layouts/partials/body-footer.html +++ b/layouts/partials/body-footer.html @@ -33,6 +33,6 @@ </div> -{{- partial "_mdinclude.html" (dict "name" "_footer" "context" . "tip" (T "create-footer-md") ) -}} +{{- partial "_mdinclude.html" (dict "name" "_include/footer/_index" "context" . "tip" "cocou" ) -}} diff --git a/layouts/partials/body-header.html b/layouts/partials/body-header.html index d8c342a..4748dbb 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" "_header" "context" . "tip" $defaultheader ) -}} + {{- partial "_mdinclude.html" (dict "name" "_include/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 169f9f5..39a352b 100644 --- a/layouts/partials/body-sidebar.html +++ b/layouts/partials/body-sidebar.html @@ -18,7 +18,7 @@ {{- end}} -{{- partial "_mdinclude.html" (dict "name" "_sidebar-before" "context" .) -}} +{{- partial "_mdinclude.html" (dict "name" "_include/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" "_sidebar-after" "context" .) -}}
\ No newline at end of file +{{- partial "_mdinclude.html" (dict "name" "_include/sidebar-after/_index" "context" .) -}}
\ No newline at end of file |