diff options
| author | Arne Rief <riearn@proton.me> | 2025-09-19 19:20:39 +0200 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-09-19 19:20:39 +0200 |
| commit | a57a8f991a2a5960fc886aa8bfcfca9719cecfda (patch) | |
| tree | c3bcdf0ff5138c539fdbcf5d28b52951da6c2eca /layouts/partials/list/recent-posts.html | |
| parent | e754bed52740760c91be6b651887980a51cd59cf (diff) | |
Flat i18n tables
Diffstat (limited to 'layouts/partials/list/recent-posts.html')
| -rw-r--r-- | layouts/partials/list/recent-posts.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/list/recent-posts.html b/layouts/partials/list/recent-posts.html index 2404910..5426f70 100644 --- a/layouts/partials/list/recent-posts.html +++ b/layouts/partials/list/recent-posts.html @@ -9,7 +9,7 @@ List of specified number of the most recent and published posts. Accepts a dict */ -}} {{- $count := .count | default 10 -}} -{{- $title := .title | default (lang.Translate "posts.recent" | default "Recent Articles") -}} +{{- $title := .title | default (lang.Translate "posts_recent" | default "Recent Articles") -}} {{- $showViewAll := .show_view_all | default true -}} <section class="recent-posts" aria-labelledby="recent-posts-heading"> <header class="recent-posts__header"> @@ -32,14 +32,14 @@ List of specified number of the most recent and published posts. Accepts a dict {{- if $showViewAll }} {{- with site.GetPage "/all-posts"}} <a href="{{ .RelPermalink }}" class="recent-posts__view-all-link"> - {{ lang.Translate "posts.view_all" | default "View all posts" }} » + {{ lang.Translate "posts_all_view" | default "View all posts" }} » </a> {{- end }} {{- end }} </div> {{ else }} <p class="recent-posts__empty-message"> - {{ lang.Translate "list.empty" | default "No posts in this section." }} + {{ lang.Translate "list_empty" | default "No posts in this section." }} </p> {{- end }} </section> |
