Skip to content

Commit 10d0a5e

Browse files
committed
尝试增加一些国际化的字符串 但是没成功
1 parent 2214344 commit 10d0a5e

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Website settings
44
title: 升烟张诚
5-
description: Ryan ZhangCheng(张诚)的个人主页
5+
description: Ryan ZhangCheng/升烟张诚的个人主页
66
keywords: redhat,openshift,devops,CI,CD,python,Java,cloud,kubernetes,fabric8,云计算,运维,jekyll,reveal.js,javascript
77
baseurl: "" # This will be your homepage
88
url: https://ryanzhang.github.io # url should be 'http://<github_username>.github.io/homepage' as before

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<meta name="author" content="{{ site.author.name }}">
1212
<meta name="baseurl" content="{{ site.baseurl }}">
1313

14-
<title>
14+
<title data-i18n="site.title">
1515
{% if page.title != "index" %}
1616
{{ site.title }}|{{ page.title }}
1717
{% else %}

_includes/sections/blog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
<div class="poem">孤舟蓑笠翁</div>
1818
<div class="poem">独钓寒江雪</div>
1919
</article>
20-
</div>
20+
</div>
2121
<div class="row" style="width:50%; height: 500px; float:left;">
2222
<div class="col-lg-12 wow zoomIn" id="i18_blog">
23-
<h1>Latest Post</h1>
23+
<h1><span data-i18n="blog.latest_blog">Latest post</span></h1>
2424
<ul class="entries">
2525
{% for post in site.posts limit:5 %}
2626
<li>

static/locales/en.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"website":{
3-
"title": "Jack's blog"
3+
"title": "Ryan ZhangCheng"
44
},
55
"nav":{
66
"home": "Home",
@@ -63,7 +63,8 @@
6363

6464
},
6565
"blog":{
66-
"my_blog": "My Blog"
66+
"my_blog": "My Blog",
67+
"latest_blog": "Latest Post"
6768
},
6869
"slide":{
6970
"slide": "My Slide"

static/locales/zh.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"site":{
3-
"title": "升烟的博客"
2+
"website":{
3+
"title": "升烟张诚"
44
},
55
"nav":{
66
"home": "首页",
@@ -62,7 +62,8 @@
6262
"cugb_job": "研究生:计算机软件, 本科:勘查工程"
6363
},
6464
"blog":{
65-
"my_blog": "我的博客"
65+
"my_blog": "我的博客",
66+
"latest_blog": "最近更新"
6667
},
6768
"slide":{
6869
"slide": "幻灯片"

0 commit comments

Comments
 (0)