Skip to content

Commit ec919ba

Browse files
committed
Translate 'Published on' label
Translate the 'Published on' label installed by rev 6921359 of Oct 5 2021.
1 parent a831308 commit ec919ba

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

_data/home.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
en:
2+
published_on: 'Published on'
3+
zh_CN:
4+
published_on: 'Published on'
5+
zh_TW:
6+
published_on: 'Published on'
7+
ja:
8+
published_on: 'Published on'
9+
es:
10+
published_on: 'Publicado el'

_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2 class="link-post"><a href="{{ post.url }}" title="{{ post.title }}">{{ post.
5050
<h2><a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
5151
<p>{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>
5252
<p class="dt-published" datetime="{{ page.date | date_to_xmlschema }}">
53-
<small>Published on {{ post.date | date: "%B %d, %Y" }}</small>
53+
<small>{{ site.data.home[page.lang]['published_on'] }} {{ post.date | date: "%B %d, %Y" }}</small>
5454
</p>
5555
{% endif %}
5656
</article>

0 commit comments

Comments
 (0)