diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..20c2b3f --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,26 @@ + + + +{{ 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/microhook-after-post-list.html b/layouts/partials/microhook-after-post-list.html deleted file mode 100644 index ddeaa04..0000000 --- a/layouts/partials/microhook-after-post-list.html +++ /dev/null @@ -1 +0,0 @@ -{{ partial "sidebar-for-tiny-theme/sidebar.html" . }} \ No newline at end of file diff --git a/layouts/partials/sidebar-for-tiny-theme/sidebar.html b/layouts/partials/sidebar-for-tiny-theme/sidebar.html index b7892b5..70ac4e8 100644 --- a/layouts/partials/sidebar-for-tiny-theme/sidebar.html +++ b/layouts/partials/sidebar-for-tiny-theme/sidebar.html @@ -1,7 +1,9 @@ +{{ if .IsHome -}} \ No newline at end of file + +{{ end -}} \ No newline at end of file diff --git a/plugin.json b/plugin.json index db322a1..8b58661 100644 --- a/plugin.json +++ b/plugin.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "title": "Sidebar for Tiny Theme", "description": "Adds a sidebar to a blog using Tiny Theme", "includes": [ diff --git a/static/sidebar.css b/static/sidebar.css index 24147a2..10115fd 100644 --- a/static/sidebar.css +++ b/static/sidebar.css @@ -3,7 +3,7 @@ max-width: 50em; } - div.wrapper:has(div.sidebar) { + div.page-content:has(div.sidebar) { display: grid; grid-template-columns: minmax(20em,35em) 15em; column-gap: 60px;