Skip to content

Commit

Permalink
Merge pull request 'This adds dates to news posts in both the list an…
Browse files Browse the repository at this point in the history
…d the post page.' (#44) from samirtalwar/lix-website:news-dates into main

Reviewed-on: https://git.lix.systems/lix-project/lix-website/pulls/44
  • Loading branch information
jade committed Feb 3, 2025
2 parents 1289ada + 5c11242 commit ef0bddd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions themes/lix/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ <h2 class="fs-1 fw-bold text-center text-primary pb-3">{{ . }}</h2>
</div>
<div class="card-body">
<h5 class="card-title fw-semibold">{{ .Title | safeHTML }}</h5>
<p class="card-subtitle pb-2">{{ .Date | time.Format ":date_medium" }}</p>
<p class="card-text text-black-61">{{ .Summary }}</p>
</div>
</a>
Expand Down
5 changes: 4 additions & 1 deletion themes/lix/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
{{ with .Title | safeHTML }}
<h2 class="display-2 fw-bold text-center text-primary pb-3">{{ . }}</h2>
{{ end }}
{{ with .Date }}
<p class="text-center pb-2">{{ . | time.Format ":date_medium" }}</p>
{{ end }}
{{ with .Params.description }}
<p class="text-black-61 text-center pb-3">{{ . }}</p>
<p class="text-black-61 text-center pb-2">{{ . }}</p>
{{ end }}
</div>
</div>
Expand Down

0 comments on commit ef0bddd

Please sign in to comment.