diff options
author | Gibo <ryugibo@daum.net> | 2016-12-01 20:24:50 +0300 |
---|---|---|
committer | Gibo <ryugibo@daum.net> | 2016-12-01 20:24:50 +0300 |
commit | 43d5587f8d6ff9b18d6689db9d8814e4c2e11195 (patch) | |
tree | 053601982c818949a7b3a972e6f7d5e5919f1bf7 | |
parent | 16e9542711fb773409ec7cf25bda51c0b68b0c1c (diff) |
Enable Multilingual
-rw-r--r-- | layouts/partials/education.html | 4 | ||||
-rw-r--r-- | layouts/partials/experiences.html | 8 | ||||
-rw-r--r-- | layouts/partials/head.html | 16 | ||||
-rw-r--r-- | layouts/partials/interests.html | 4 | ||||
-rw-r--r-- | layouts/partials/lang.html | 6 | ||||
-rw-r--r-- | layouts/partials/languages.html | 4 | ||||
-rw-r--r-- | layouts/partials/profile.html | 2 | ||||
-rw-r--r-- | layouts/partials/projects.html | 4 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 12 | ||||
-rw-r--r-- | layouts/partials/skills.html | 10 | ||||
-rw-r--r-- | 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 @@ <div class="education-container container-block"> - <h2 class="container-block-title">{{ .Site.Params.education.title }}</h2> + <h2 class="container-block-title">{{ i18n "education" }}</h2> {{ range .Site.Params.education.list }} <div class="item"> <h4 class="degree">{{ .degree }}</h4> @@ -7,4 +7,4 @@ <div class="time">{{ .dates }}</div> </div><!--//item--> {{ end }} - </div><!--//education-container-->
\ No newline at end of file + </div><!--//education-container--> 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 @@ <section class="section experiences-section"> - <h2 class="section-title"><i class="fa {{ .Site.Params.experiences.icon }}"></i>{{ .Site.Params.experiences.title }}</h2> - + <h2 class="section-title"><i class="fa {{ .Site.Params.experiences.icon }}"></i>{{ i18n "experiences" }}</h2> + {{ range .Site.Params.jobs.list }} <div class="item"> <div class="meta"> @@ -15,5 +15,5 @@ </div><!--//details--> </div><!--//item--> {{ end }} - - </section><!--//section-->
\ No newline at end of file + + </section><!--//section--> 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 @@ - <title>{{ .Site.Title }}</title> + <title>{{ i18n "title" }}</title> <!-- Meta --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}"> - <meta name="author" content="{{ with .Site.Params.author }}{{ . }}{{ end }}"> - <link rel="shortcut icon" href="favicon.ico"> + <meta name="description" content="{{ i18n "description" }}"> + <meta name="author" content="{{ i18n "author" }}"> + <link rel="shortcut icon" href="favicon.ico"> <link href='https://fonts.googleapis.com/css?family=Roboto:400,500,400italic,300italic,300,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'> <!-- Global CSS --> - <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/plugins/bootstrap/css/bootstrap.min.css"> + <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/plugins/bootstrap/css/bootstrap.min.css"> <!-- Plugins CSS --> <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/plugins/font-awesome/css/font-awesome.css"> - - <!-- Theme CSS --> + + <!-- Theme CSS --> <link id="theme-style" rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/{{ .Site.Params.styles }}"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> - {{ 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 @@ <div class="interests-container container-block"> - <h2 class="container-block-title">{{ .Site.Params.interests.title }}</h2> + <h2 class="container-block-title">{{ i18n "interests" }}</h2> <ul class="list-unstyled interests-list"> {{ range .Site.Params.interests.list }} <li>{{ .interest }}</li> {{ end }} </ul> - </div><!--//interests-->
\ No newline at end of file + </div><!--//interests--> 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 @@ -<!--[if IE 8]> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}" class="ie8"> <![endif]--> -<!--[if IE 9]> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}" class="ie9"> <![endif]--> -<!--[if !IE]><!--> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> <!--<![endif]-->
\ No newline at end of file +<!--[if IE 8]> <html lang="{{ .Site.Language }}" class="ie8"> <![endif]--> +<!--[if IE 9]> <html lang="{{ .Site.Language }}" class="ie9"> <![endif]--> +<!--[if !IE]><!--> <html lang="{{ .Site.Language }}"> <!--<![endif]--> 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 @@ <div class="languages-container container-block"> - <h2 class="container-block-title">{{ .Site.Params.languages.title }}</h2> + <h2 class="container-block-title">{{ i18n "languages" }}</h2> <ul class="list-unstyled interests-list"> {{ range .Site.Params.languages.list }} <li>{{ .language }} <span class="lang-desc">({{ .level }})</span></li> {{ end }} </ul> - </div><!--//languages-->
\ No newline at end of file + </div><!--//languages--> 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 @@ <img class="profile" src="{{ .Site.BaseURL }}assets/images/{{ .Site.Params.profile.avatar }}" alt="" /> <h1 class="name">{{ .Site.Params.profile.name }}</h1> <h3 class="tagline">{{ .Site.Params.profile.tagline }}</h3> - </div><!--//profile-container-->
\ No newline at end of file + </div><!--//profile-container--> 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 @@ <section class="section projects-section"> - <h2 class="section-title"><i class="fa {{ .Site.Params.projects.icon }}"></i>{{ .Site.Params.projects.title }}</h2> + <h2 class="section-title"><i class="fa {{ .Site.Params.projects.icon }}"></i>{{ i18n "projects" }}</h2> <div class="intro"> <p>{{ with .Site.Params.projects.intro }}{{ . | markdownify }}{{ end }}</p> </div><!--//intro--> @@ -8,4 +8,4 @@ <span class="project-title"><a href="{{ .url }}">{{ .title }}</a></span> - <span class="project-tagline">{{ with .tagline }}{{ . | markdownify }}{{ end }}</span> </div><!--//item--> {{ end }} - </section><!--//section-->
\ No newline at end of file + </section><!--//section--> 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 @@ <div class="sidebar-wrapper"> + {{ if .IsTranslated }} + <div class="contact-container container-block"> + <ul class="list-unstyled contact-list"> + {{ range .Translations }} + <li class="website" style="float: left;"><i class="fa fa-globe"></i><a href="{{ .Permalink }}">{{ .Lang }}</a> + {{ end }} + </ul> + </div><!--//contact-container--> + {{ end }} + {{ partial "profile.html" . }} {{ if .Site.Params.contact.enable }} @@ -18,4 +28,4 @@ {{ partial "interests.html" . }} {{ end }} - </div><!--//sidebar-wrapper-->
\ No newline at end of file + </div><!--//sidebar-wrapper--> 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 @@ <section class="skills-section section"> - <h2 class="section-title"><i class="fa {{ .Site.Params.skills.icon }}"></i>{{ .Site.Params.skills.title }}</h2> + <h2 class="section-title"><i class="fa {{ .Site.Params.skills.icon }}"></i>{{ i18n "skills" }}</h2> <div class="skillset"> {{ range .Site.Params.skills.list }} <div class="item"> <h3 class="level-title">{{ .skill }}</h3> <div class="level-bar"> <div class="level-bar-inner" data-level="{{ .level }}"> - </div> - </div><!--//level-bar--> + </div> + </div><!--//level-bar--> </div><!--//item--> {{ end }} - </div> - </section><!--//skills-section-->
\ No newline at end of file + </div> + </section><!--//skills-section--> 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 @@ <section class="section summary-section"> - <h2 class="section-title"><i class="fa {{ .Site.Params.summary.icon }}"></i>{{ .Site.Params.summary.title }}</h2> + <h2 class="section-title"><i class="fa {{ .Site.Params.summary.icon }}"></i>{{ i18n "summary" }}</h2> <div class="summary"> <p>{{ with .Site.Params.summary.summary }}{{ . | markdownify }}{{ end }}</p> </div><!--//summary--> - </section><!--//section-->
\ No newline at end of file + </section><!--//section--> |