diff options
-rw-r--r-- | exampleSite/content/_layout/footer/_index.md (renamed from exampleSite/content/_include/footer/_index.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/_layout/sidebar-after/_index.md (renamed from exampleSite/content/_include/sidebar-after/_index.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/_layout/sidebar-before/_index.md (renamed from exampleSite/content/_include/sidebar-before/_index.md) | 0 | ||||
-rw-r--r-- | i18n/en.toml | 4 | ||||
-rw-r--r-- | layouts/partials/_next-prev-page.html | 2 | ||||
-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 |
8 files changed, 7 insertions, 7 deletions
diff --git a/exampleSite/content/_include/footer/_index.md b/exampleSite/content/_layout/footer/_index.md index 9ef0862..9ef0862 100644 --- a/exampleSite/content/_include/footer/_index.md +++ b/exampleSite/content/_layout/footer/_index.md diff --git a/exampleSite/content/_include/sidebar-after/_index.md b/exampleSite/content/_layout/sidebar-after/_index.md index a7b4009..a7b4009 100644 --- a/exampleSite/content/_include/sidebar-after/_index.md +++ b/exampleSite/content/_layout/sidebar-after/_index.md diff --git a/exampleSite/content/_include/sidebar-before/_index.md b/exampleSite/content/_layout/sidebar-before/_index.md index ac36e06..ac36e06 100644 --- a/exampleSite/content/_include/sidebar-before/_index.md +++ b/exampleSite/content/_layout/sidebar-before/_index.md diff --git a/i18n/en.toml b/i18n/en.toml index 13f95bd..421502f 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,8 +1,8 @@ [create-header-md] -other = "Create a content/_header.md to customize this" +other = "Create a content/_layout/header/_index.md to customize this" [create-footer-md] -other = "Create a content/_footer.md file to customize the footer content !" +other = "Create a content/_layout/footer/_index.md file to customize the footer content !" [Search-placeholder] other = "Type to search..." 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 |