From 4d67bbc76e946462e5215d84e9d501f3291ee4d0 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Wed, 15 May 2019 16:07:45 +0900 Subject: [PATCH 1/4] Gemfile added --- Gemfile | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Gemfile diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..f1b369d2 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'github-pages', group: :jekyll_plugins From f9a2f9bd11c5cc37eca71d76678b366095b5ffc8 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Wed, 15 May 2019 19:32:38 +0900 Subject: [PATCH 2/4] multilanguage implemented --- _config.yml | 19 +++++++++++++++++-- _layouts/default.html | 8 +++++--- _posts/2019-05-15-test.md | 9 +++++++++ en/index.html | 26 ++++++++++++++++++++++++++ index.html | 19 ++++++++++++------- ko/index.html | 26 ++++++++++++++++++++++++++ 6 files changed, 95 insertions(+), 12 deletions(-) create mode 100644 _posts/2019-05-15-test.md create mode 100644 en/index.html create mode 100644 ko/index.html diff --git a/_config.yml b/_config.yml index 54d0af28..927097f9 100644 --- a/_config.yml +++ b/_config.yml @@ -5,8 +5,23 @@ description: Hitomi.la viewer for Android baseurl: "/Pupil" show_downloads: true -google_analytics: UA-119938781-2 github: app_url: https://github.com/tom5079/Pupil-issue/releases/download/1.3/Pupil-v1.3.apk - issue_url: https://github.com/tom5079/Pupil-issue/issues/new/choose \ No newline at end of file + issue_url: https://github.com/tom5079/Pupil-issue/issues/new/choose + +t: + en: + header: + description: Hitomi.la viewer for Android + download: "Download app" + issue: "Having a problem?" + or: "or…" + email: "Send an E-mail" + ko: + header: + description: 안드로이드 Hitomi.la 뷰어 + download: "앱 다운로드" + issue: "문제가 있으세요?" + or: "또는…" + email: "이메일 보내기" diff --git a/_layouts/default.html b/_layouts/default.html index 91c07722..fb0d59e5 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -25,8 +25,10 @@

{{ page.title | default: site.title | default: site.github.repository_name }}

{{ page.description | default: site.description | default: site.github.project_tagline }}

{% if site.show_downloads %} - Download app (v1.3) - Having a problem? + {{ site.t[page.lang].header.download }} + {{ site.t[page.lang].header.issue }} + {{ site.t[page.lang].header.or }} + {{ site.t[page.lang].header.email }} {% endif %} @@ -41,4 +43,4 @@ - \ No newline at end of file + diff --git a/_posts/2019-05-15-test.md b/_posts/2019-05-15-test.md new file mode 100644 index 00000000..d0990489 --- /dev/null +++ b/_posts/2019-05-15-test.md @@ -0,0 +1,9 @@ +--- +layout: default +lang: ko +title: "테스트" +date: 2019-05-15 18:51:00 +0900 +--- + +# 테스트입니당 +이게 보인다구요? 야호~~~~~ diff --git a/en/index.html b/en/index.html new file mode 100644 index 00000000..799ca64f --- /dev/null +++ b/en/index.html @@ -0,0 +1,26 @@ +--- +layout: default +lang: en +--- + +
+

Blog posts

+ {% assign posts=site.posts | where:"lang", page.lang %} +
    + {% for post in posts %} +
  • + + {{ post.date | date_to_string }} + + + » + + + {{ post.title }} + + + {{ post.excerpt }} +
  • + {% endfor %} +
+
diff --git a/index.html b/index.html index 342dcf60..caf9f125 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,12 @@ ---- -layout: default ---- - -
-

Blog Posts

-
\ No newline at end of file + diff --git a/ko/index.html b/ko/index.html new file mode 100644 index 00000000..d71b6546 --- /dev/null +++ b/ko/index.html @@ -0,0 +1,26 @@ +--- +layout: default +lang: ko +--- + +
+

글 목록

+ {% assign posts=site.posts | where:"lang", page.lang %} +
    + {% for post in posts %} +
  • + + {{ post.date | date_to_string }} + + + » + + + {{ post.title }} + + + {{ post.excerpt }} +
  • + {% endfor %} +
+
From d20a0c9963fa89bf799c313961fe59f70abb73fe Mon Sep 17 00:00:00 2001 From: tom5079 Date: Thu, 16 May 2019 09:27:43 +0900 Subject: [PATCH 3/4] Added blog post! --- _config.yml | 1 + _posts/2019-05-15-test.md | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 _posts/2019-05-15-test.md diff --git a/_config.yml b/_config.yml index 927097f9..4612a9a4 100644 --- a/_config.yml +++ b/_config.yml @@ -5,6 +5,7 @@ description: Hitomi.la viewer for Android baseurl: "/Pupil" show_downloads: true +google_analytics: UA-119938781-2 github: app_url: https://github.com/tom5079/Pupil-issue/releases/download/1.3/Pupil-v1.3.apk diff --git a/_posts/2019-05-15-test.md b/_posts/2019-05-15-test.md deleted file mode 100644 index d0990489..00000000 --- a/_posts/2019-05-15-test.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -layout: default -lang: ko -title: "테스트" -date: 2019-05-15 18:51:00 +0900 ---- - -# 테스트입니당 -이게 보인다구요? 야호~~~~~ From 4e76e7fa30c03a41bb1ec1679299870dcfc77a9f Mon Sep 17 00:00:00 2001 From: tom5079 Date: Thu, 16 May 2019 09:34:31 +0900 Subject: [PATCH 4/4] Fixed description --- _config.yml | 4 ++-- _layouts/default.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 4612a9a4..491dc54a 100644 --- a/_config.yml +++ b/_config.yml @@ -14,14 +14,14 @@ github: t: en: header: - description: Hitomi.la viewer for Android + description: "Hitomi.la viewer for Android" download: "Download app" issue: "Having a problem?" or: "or…" email: "Send an E-mail" ko: header: - description: 안드로이드 Hitomi.la 뷰어 + description: "안드로이드 Hitomi.la 뷰어" download: "앱 다운로드" issue: "문제가 있으세요?" or: "또는…" diff --git a/_layouts/default.html b/_layouts/default.html index fb0d59e5..ad3acc81 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -23,7 +23,7 @@