Moved sidebar partials into a separate directoy
This commit is contained in:
parent
1c22ec6571
commit
6cc83333f4
7 changed files with 9 additions and 44 deletions
|
|
@ -1 +1 @@
|
|||
{{ partial "sidebar.html" . }}
|
||||
{{ partial "sidebar-for-tiny-theme/sidebar.html" . }}
|
||||
7
layouts/partials/sidebar-for-tiny-theme/sidebar.html
Normal file
7
layouts/partials/sidebar-for-tiny-theme/sidebar.html
Normal 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>
|
||||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue