Moved sidebar out of microhook
Moved the sidebar out of the after-post-list microhook and into the base theme template. This should resolve the styling issue which will break sites using the before-post-list microhook. This does tie the plugin to Tiny-theme baseof theme, which is not great. Will need to resolve this in some way, but should work for now.
This commit is contained in:
parent
a9f0437fc7
commit
7a3eb89fd8
5 changed files with 31 additions and 4 deletions
|
|
@ -1 +0,0 @@
|
|||
{{ partial "sidebar-for-tiny-theme/sidebar.html" . }}
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
{{ if .IsHome -}}
|
||||
<div class="sidebar">
|
||||
{{ if templates.Exists "partials/sidebar.html" }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
{{ else }}
|
||||
{{ partial "sidebar-for-tiny-theme/recommendations.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue