diff options
Diffstat (limited to 'layouts/partials/list')
| -rw-r--r-- | layouts/partials/list/pagination.html | 12 | ||||
| -rw-r--r-- | layouts/partials/list/post-card.html | 6 | ||||
| -rw-r--r-- | layouts/partials/list/recent-posts.html | 6 |
3 files changed, 12 insertions, 12 deletions
diff --git a/layouts/partials/list/pagination.html b/layouts/partials/list/pagination.html index d1170e1..dfe8178 100644 --- a/layouts/partials/list/pagination.html +++ b/layouts/partials/list/pagination.html @@ -1,27 +1,27 @@ {{- $paginator := . }} {{- if gt $paginator.TotalPages 1 }} -<nav class="pagination" aria-label="{{ lang.Translate "pagination.label" | default "Page navigation" }}"> +<nav class="pagination" aria-label="{{ lang.Translate "page_navigation" | default "Page navigation" }}"> {{- if $paginator.HasPrev }} <a href="{{ $paginator.Prev.URL }}" class="pagination__link" rel="prev" - aria-label="{{ lang.Translate "pagination.previous_page" | default "Previous page" }}" + aria-label="{{ lang.Translate "page_previous" | default "Previous page" }}" > - ← {{ lang.Translate "common.previous" | default "Previous" }} + ← {{ lang.Translate "previous" | default "Previous" }} </a> {{- end }} <p class="pagination__current"> - {{ lang.Translate "pagination.position" $paginator.PageNumber $paginator.TotalPages | default (printf "Page %d of %d" $paginator.PageNumber $paginator.TotalPages) }} + {{ lang.Translate "page_position" $paginator.PageNumber $paginator.TotalPages | default (printf "Page %d of %d" $paginator.PageNumber $paginator.TotalPages) }} </p> {{- if $paginator.HasNext }} <a href="{{ $paginator.Next.URL }}" class="pagination__link" rel="next" - aria-label="{{ lang.Translate "pagination.next_page" | default "Next page" }}" + aria-label="{{ lang.Translate "page_next" | default "Next page" }}" > - {{ lang.Translate "common.next" | default "Next" }} → + {{ lang.Translate "next" | default "Next" }} → </a> {{- end }} </nav> diff --git a/layouts/partials/list/post-card.html b/layouts/partials/list/post-card.html index 254cc6b..955e868 100644 --- a/layouts/partials/list/post-card.html +++ b/layouts/partials/list/post-card.html @@ -13,11 +13,11 @@ <!-- Uncomment for post meta info <p class="post-card__meta-info"> <span class="post-card__reading-time"> - {{ lang.Translate "list.reading_time" $post.ReadingTime | default (printf "Estimated reading time: %s min" $post.ReadingTime) }} + {{ lang.Translate "reading_time" $post.ReadingTime | default (printf "Estimated reading time: %s min" $post.ReadingTime) }} </span> | <span class="post-card__word-count"> - {{ lang.Translate "list.word_count" $post.WordCount | default (printf "%s words" $post.WordCount) }} + {{ lang.Translate "word_count" $post.WordCount | default (printf "%s words" $post.WordCount) }} </span> </p> --> @@ -41,7 +41,7 @@ {{- if gt (len .) 3 }} <li class="post-card__tags-item post-card__tags-more"> <span class="post-card__tags-more-count"> - +{{ sub (len .) 3 }} {{ lang.Translate "common.more" | default "more" }} + +{{ sub (len .) 3 }} {{ lang.Translate "more" | default "more" }} </span> </li> {{- end }} 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> |
