diff options
author | Bala Ramadurai <bala@balaramadurai.net> | 2019-01-15 15:02:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-15 15:02:38 +0300 |
commit | 634225a52f51698bc048ba5f79e10a4020d3cb31 (patch) | |
tree | 51ecd929f8c6c1c5ad1cb0b68d3af1bdd8d4bcdd | |
parent | ee1b269ed9c6c05f2d21398ffd20f6e4647ab342 (diff) | |
parent | c3a66d7730329b61d77eca7d0abc33fca762d796 (diff) |
Merge pull request #26 from darhon/patch-2
Translation of read more button.
Thanks @darhon for your initiative in solving this.
Thanks and have a great day!
Bala
-rw-r--r-- | layouts/partials/article_list.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/layouts/partials/article_list.html b/layouts/partials/article_list.html index b41ed0b..ad50956 100644 --- a/layouts/partials/article_list.html +++ b/layouts/partials/article_list.html @@ -1,8 +1,5 @@ {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
-{{ $readmore := "Read More" }}
-{{ if .Site.Data.l10n.articles.read_more }}
-{{ $readmore := .Site.Data.l10n.articles.read_more }}
-{{ end }}
+
{{ range $paginator.Pages }}
<section id="main" class="post type-post status-publish format-standard has-post-thumbnail hentry">
<article>
@@ -25,7 +22,7 @@ {{ partial "article_footer" . }}
<span>
<a class="readmore" href="{{ .Permalink }}">
- {{ $readmore }}
+ {{ with .Site.Data.l10n.articles.read_more }}{{ . }}{{ end }}
</a>
</span>
|