Moved sidebar partials into a separate directoy

This commit is contained in:
Leon Mika 2024-03-17 09:05:34 +11:00
parent 1c22ec6571
commit 6cc83333f4
7 changed files with 9 additions and 44 deletions

View file

@ -1 +1 @@
{{ partial "sidebar.html" . }}
{{ partial "sidebar-for-tiny-theme/sidebar.html" . }}

View file

@ -0,0 +1,7 @@
<div class="sidebar">
{{ if templates.Exists "partials/sidebar.html" }}
{{ partial "microhook-after-page-content.html" . }}
{{ else }}
{{ partial "sidebar-for-tiny-theme/recommendations.html" . }}
{{ end }}
</div>

View file

@ -1,14 +0,0 @@
<div class="sidebar">
{{ partial "sidebar-items/recommendations.html" . }}
<div class="sidebar-item">
<header>
<h1>About</h1>
</header>
<div>
<p>This is some more stuff that goes here.</p>
</div>
</div>
{{ partial "sidebar-items/links.html" (dict "title" "Books" "links" (index .Site.Data.blogrolls "books-that-are-cool"))}}
</div>