Skip to content

Commit

Permalink
adjust template of taxonomy and term
Browse files Browse the repository at this point in the history
  • Loading branch information
leafee98 committed May 18, 2022
1 parent 4c7fe1a commit c078c22
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
File renamed without changes.
33 changes: 33 additions & 0 deletions layouts/_default/term.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{{ define "main" }}

<section id="archive">
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="group">
<h3 class="key">
{{ .Key }}
</h3>

{{ range .Pages }}
<div class="value">
<time class="date" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "01/02" }}</time>

<div class="title">

<a href="{{ .Permalink }}">{{ .Title }}</a>

{{ with .Params.tags }}
{{ range . }}
<a class="tags" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}

</div>
</div>
{{ end }}

</div>
{{ end }}

</section>

{{ end }}

0 comments on commit c078c22

Please sign in to comment.