From d68db94b3b40e3077d5c1262194782b4a682f90b Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Tue, 2 Apr 2024 21:14:39 +1100 Subject: [PATCH] Replaced overridden baseof template with before-closing-body micro-hook --- layouts/_default/baseof.html | 26 ------------------- .../microhook-before-closing-body.html | 1 + plugin.json | 2 +- 3 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 layouts/_default/baseof.html create mode 100644 layouts/partials/partials/microhook-before-closing-body.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index 20c2b3f..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -{{ partial "head.html" . }} - - - {{ partial "header.html" . }} - -
-
- {{ block "main" . }}{{ end }} -
- {{ partial "sidebar-for-tiny-theme/sidebar.html" . }} -
- {{ partial "footer.html" . }} - - {{ range .Site.Params.plugins_js }} - - {{ end }} - - {{ if templates.Exists "partials/microhook-before-closing-body.html" }} - {{ partial "microhook-before-closing-body.html" . }} - {{ end }} - - - \ No newline at end of file diff --git a/layouts/partials/partials/microhook-before-closing-body.html b/layouts/partials/partials/microhook-before-closing-body.html new file mode 100644 index 0000000..ddeaa04 --- /dev/null +++ b/layouts/partials/partials/microhook-before-closing-body.html @@ -0,0 +1 @@ +{{ partial "sidebar-for-tiny-theme/sidebar.html" . }} \ No newline at end of file diff --git a/plugin.json b/plugin.json index 8b58661..7e82329 100644 --- a/plugin.json +++ b/plugin.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.1.0", "title": "Sidebar for Tiny Theme", "description": "Adds a sidebar to a blog using Tiny Theme", "includes": [