From 43d5587f8d6ff9b18d6689db9d8814e4c2e11195 Mon Sep 17 00:00:00 2001 From: Gibo Date: Fri, 2 Dec 2016 02:24:50 +0900 Subject: [PATCH 01/13] Enable Multilingual --- layouts/partials/education.html | 4 ++-- layouts/partials/experiences.html | 8 ++++---- layouts/partials/head.html | 16 ++++++++-------- layouts/partials/interests.html | 4 ++-- layouts/partials/lang.html | 6 +++--- layouts/partials/languages.html | 4 ++-- layouts/partials/profile.html | 2 +- layouts/partials/projects.html | 4 ++-- layouts/partials/sidebar.html | 12 +++++++++++- layouts/partials/skills.html | 10 +++++----- layouts/partials/summary.html | 4 ++-- 11 files changed, 42 insertions(+), 32 deletions(-) diff --git a/layouts/partials/education.html b/layouts/partials/education.html index 7bb716d..d9a91b3 100644 --- a/layouts/partials/education.html +++ b/layouts/partials/education.html @@ -1,5 +1,5 @@
-

{{ .Site.Params.education.title }}

+

{{ i18n "education" }}

{{ range .Site.Params.education.list }}

{{ .degree }}

@@ -7,4 +7,4 @@
{{ .dates }}
{{ end }} -
\ No newline at end of file + diff --git a/layouts/partials/experiences.html b/layouts/partials/experiences.html index cad1f52..dc67655 100644 --- a/layouts/partials/experiences.html +++ b/layouts/partials/experiences.html @@ -1,6 +1,6 @@
-

{{ .Site.Params.experiences.title }}

- +

{{ i18n "experiences" }}

+ {{ range .Site.Params.jobs.list }}
@@ -15,5 +15,5 @@
{{ end }} - -
\ No newline at end of file + + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d990c08..7e7cb7a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,22 +1,22 @@ - {{ .Site.Title }} + {{ i18n "title" }} - - - + + + - + - - + + - {{ template "_internal/google_analytics_async.html" . }} \ No newline at end of file + {{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/partials/interests.html b/layouts/partials/interests.html index 4c8c119..d7a3f90 100644 --- a/layouts/partials/interests.html +++ b/layouts/partials/interests.html @@ -1,8 +1,8 @@
-

{{ .Site.Params.interests.title }}

+

{{ i18n "interests" }}

-
\ No newline at end of file + diff --git a/layouts/partials/lang.html b/layouts/partials/lang.html index 3a94f21..7bcd2ce 100644 --- a/layouts/partials/lang.html +++ b/layouts/partials/lang.html @@ -1,3 +1,3 @@ - - - \ No newline at end of file + + + diff --git a/layouts/partials/languages.html b/layouts/partials/languages.html index fc2b372..5eee153 100644 --- a/layouts/partials/languages.html +++ b/layouts/partials/languages.html @@ -1,8 +1,8 @@
-

{{ .Site.Params.languages.title }}

+

{{ i18n "languages" }}

-
\ No newline at end of file + diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index 5840da7..5d7f8d9 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -2,4 +2,4 @@

{{ .Site.Params.profile.name }}

{{ .Site.Params.profile.tagline }}

- \ No newline at end of file + diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html index def95ee..7d83f0c 100644 --- a/layouts/partials/projects.html +++ b/layouts/partials/projects.html @@ -1,5 +1,5 @@
-

{{ .Site.Params.projects.title }}

+

{{ i18n "projects" }}

{{ with .Site.Params.projects.intro }}{{ . | markdownify }}{{ end }}

@@ -8,4 +8,4 @@ {{ .title }} - {{ with .tagline }}{{ . | markdownify }}{{ end }} {{ end }} -
\ No newline at end of file + diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 9c73ee1..c60068d 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,5 +1,15 @@ \ No newline at end of file + diff --git a/layouts/partials/skills.html b/layouts/partials/skills.html index aef464a..71bf7c0 100644 --- a/layouts/partials/skills.html +++ b/layouts/partials/skills.html @@ -1,14 +1,14 @@
-

{{ .Site.Params.skills.title }}

+

{{ i18n "skills" }}

{{ range .Site.Params.skills.list }}

{{ .skill }}

-
-
+
+
{{ end }} - -
\ No newline at end of file + + diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html index 3e025bf..41f1351 100644 --- a/layouts/partials/summary.html +++ b/layouts/partials/summary.html @@ -1,6 +1,6 @@
-

{{ .Site.Params.summary.title }}

+

{{ i18n "summary" }}

{{ with .Site.Params.summary.summary }}{{ . | markdownify }}{{ end }}

-
\ No newline at end of file + From dcc2ec0ab3b199674094c05351dd76091373d328 Mon Sep 17 00:00:00 2001 From: Gibo Date: Fri, 2 Dec 2016 02:50:07 +0900 Subject: [PATCH 02/13] move translation buttons location --- layouts/partials/profile.html | 7 +++++++ layouts/partials/sidebar.html | 10 ---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index 5d7f8d9..2c33c9d 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -2,4 +2,11 @@

{{ .Site.Params.profile.name }}

{{ .Site.Params.profile.tagline }}

+ {{ if .IsTranslated }} +
+ {{ range .Translations }} + {{ .Lang }} + {{ end }} +
+ {{ end }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c60068d..a65f8d4 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,15 +1,5 @@ - + {{ partial "footer.html" . }} {{ partial "scripts.html" . }} - - + diff --git a/layouts/partials/languages.html b/layouts/partials/language.html similarity index 61% rename from layouts/partials/languages.html rename to layouts/partials/language.html index 5eee153..dcac74a 100644 --- a/layouts/partials/languages.html +++ b/layouts/partials/language.html @@ -1,8 +1,8 @@ -
-

{{ i18n "languages" }}

+
+

{{ i18n "language" }}

    - {{ range .Site.Params.languages.list }} + {{ range .Site.Params.language.list }}
  • {{ .language }} ({{ .level }})
  • {{ end }}
-
+
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 3bbdaf1..22499e8 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,7 +1,7 @@