diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-07 15:50:01 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-07 15:50:01 +0800 |
| commit | b3e89034d87dad4bedfb0aab08ce3dd6d88b71cf (patch) | |
| tree | 594fe7c1e6e2d91eff7160d48323c7e3c36884e6 /layouts | |
| parent | d0e7f15de7b1c048e3db95b096b767537c2a40e8 (diff) | |
feat: add "see all" links for both sections in index
Former-commit-id: 055261cd834ca7b55fb5027484ee7047ac11df37
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/index.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index ff721ab7..d2a75ea7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -38,13 +38,14 @@ </div> {{ end }} </div> - <a href="/posts" class="index-section-morelink">查看所有</a> + <a href="/posts" class="index-section-morelink"> + {{ T "moreLinks.posts" }} + </a> </section> {{ if eq .Site.Language.Lang "zh" }} <!-- Latest Cards --> <section id="latest-cards"> - <h2 class="index-section-title">{{ T "cards" }}</h2> <div class="latest-cards-container"> {{- $cards := .Site.GetPage "section" "cards" }} <!-- 获取 "cards" 部分的内容 --> {{- $paginator := .Paginate $cards.Pages 4 }} <!-- 对该部分内容进行分页 --> @@ -70,6 +71,11 @@ </div> {{- end }} </div> + <div style="margin: 1rem 0"> + <a href="/cards" class="index-section-morelink"> + {{ T "moreLinks.cards" }} + </a> + </div> </section> {{ end }} </article> |
