diff options
| author | Eltrac <hi@guhub.cn> | 2025-01-09 13:17:24 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-01-09 13:17:24 +0800 |
| commit | 2be142d7aa72545b0527112f8843e14ca22ca22d (patch) | |
| tree | 4fbd52c334a1fd7df404996c8412ea9c1f0c741a | |
| parent | 5194c420ff9b68f1dab5da706a076fc36a71965b (diff) | |
fix(theme): inconsistent post list structure
Former-commit-id: 27a42e2db163b21f1de3f69c2c10a21545968945
| -rw-r--r-- | layouts/_default/term.html | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 8c69edbf..728f6f6a 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -9,23 +9,27 @@ </a> </p> <div id="posts-list"> + <ul> {{ range .Pages }} - <div class="row posts-line"> - <div class="posts-date col-xs-2"> - <time datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "06/01/02"}}</time> - </div> - <div class="posts-title col-xs-10"> - <div class="row"> - <div class="col-xs-12"> - <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page"> - {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span> - {{ end }} - </a> + <li> + <div class="row posts-line"> + <div class="posts-date col-xs-2"> + <time datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "06/01/02"}}</time> + </div> + <div class="posts-title col-xs-10"> + <div class="row"> + <div class="col-xs-12"> + <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page"> + {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span> + {{ end }} + </a> + </div> + </div> + </div> </div> - </div> - </div> - </div> + </li> {{ end }} + </ul> </div> </article> {{ partial "snippets/document-end.html" . }} |
