Skip to content

Commit

Permalink
feat: update theme sidebar template
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaohei committed May 8, 2022
1 parent c6e056f commit 187b7fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 1 addition & 3 deletions themes/default/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ <h3 class="archive-title">{{.Year}}</h3>
</ul>
</section>{{end}}
</div>
<div class="main-sidebar">
{{template "partial/sidebar.html" .}}
</div>
{{template "partial/sidebar.html" .}}
</div>
</main>
{{template "footer.html" .}}
Expand Down
6 changes: 2 additions & 4 deletions themes/default/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h3 class="post-title"><a
<span class="post-author">{{.page.Author.Name}}</span>
</div>
<div class="post-content">{{HTML .page.Content}}</div>
{{if and .extension.Comments.Enabled .post.Comment}}
{{if and .extension.Comments.Enabled .page.Comment}}
<section class="post-comment comment-{{.extension.Comments.Current}}">
{{template "partial/comments.html" .}}
</section>
Expand All @@ -26,9 +26,7 @@ <h3 class="post-title"><a
{{end}}
</article>
</div>
<div class="main-sidebar">
{{template "partial/sidebar.html" .}}
</div>
{{template "partial/sidebar.html" .}}
</div>
</main>
{{template "footer.html" .}}
Expand Down
4 changes: 1 addition & 3 deletions themes/default/post-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ <h3 class="post-title">
</article>{{end}}
{{template "partial/pager.html" .}}
</div>
<div class="main-sidebar">
{{template "partial/sidebar.html" .}}
</div>
{{template "partial/sidebar.html" .}}
</div>
</main>
{{template "footer.html" .}}
Expand Down
4 changes: 1 addition & 3 deletions themes/default/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ <h3 class="post-title"><a href="{{.post.Link}}">{{.post.Title}}</a></h3>
{{end}}
</article>
</div>
<div class="main-sidebar">
{{template "partial/sidebar.html" .}}
</div>
{{template "partial/sidebar.html" .}}
</div>
</main>
{{template "footer.html" .}}
Expand Down

0 comments on commit 187b7fa

Please sign in to comment.