Skip to content

Commit

Permalink
removed search bar, added year headers to papers list
Browse files Browse the repository at this point in the history
  • Loading branch information
dev10110 committed Aug 28, 2024
1 parent 9325d30 commit cdb139a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions layouts/papers/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ <h1>{{ .Title }}</h1>

<p class="d-none"> Rendered from layouts/papers/list </p>

{{ range .Pages.ByPublishDate.Reverse }}
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "2006" }}

{{ partial "paper-card" . }}
<p> {{ .Key }} </p>

{{ range .Pages }}
{{ partial "paper-card" . }}
{{ end }}

{{ end }}

Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
</li>
{{ end }}
</ul>
<div class="d-none">
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</div>
</nav>

0 comments on commit cdb139a

Please sign in to comment.