Skip to content

Commit

Permalink
Side bar partial fails to honour site.Params.search gethugothemes#60
Browse files Browse the repository at this point in the history
Ensure sidebar partial honours site.Params.search, as per
the header partial.
  • Loading branch information
phillxnet committed Mar 17, 2024
1 parent 286d51a commit b2a820a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div class="col-lg-4">
{{ if site.Params.search }}
<div class="widget search-box">
<form action="{{ site.BaseURL }}/search">
<i class="ti-search"></i>
<input class="form-control border-0 pl-5" type="search" placeholder="Search" id="search-query" name="s">
</form>
</div>
{{ end }}
<div class="widget">
<h6 class="mb-4">LATEST POST</h6>
{{ range first 3 ( where site.Pages "Type" "post") }}
Expand Down

0 comments on commit b2a820a

Please sign in to comment.