Enable Multilingual

This commit is contained in:
Gibo 2016-12-02 02:24:50 +09:00
parent 16e9542711
commit 43d5587f8d
11 changed files with 42 additions and 32 deletions

View file

@ -1,5 +1,5 @@
<div class="education-container container-block"> <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 }} {{ range .Site.Params.education.list }}
<div class="item"> <div class="item">
<h4 class="degree">{{ .degree }}</h4> <h4 class="degree">{{ .degree }}</h4>
@ -7,4 +7,4 @@
<div class="time">{{ .dates }}</div> <div class="time">{{ .dates }}</div>
</div><!--//item--> </div><!--//item-->
{{ end }} {{ end }}
</div><!--//education-container--> </div><!--//education-container-->

View file

@ -1,6 +1,6 @@
<section class="section experiences-section"> <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 }} {{ range .Site.Params.jobs.list }}
<div class="item"> <div class="item">
<div class="meta"> <div class="meta">
@ -15,5 +15,5 @@
</div><!--//details--> </div><!--//details-->
</div><!--//item--> </div><!--//item-->
{{ end }} {{ end }}
</section><!--//section--> </section><!--//section-->

View file

@ -1,22 +1,22 @@
<title>{{ .Site.Title }}</title> <title>{{ i18n "title" }}</title>
<!-- Meta --> <!-- Meta -->
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}"> <meta name="description" content="{{ i18n "description" }}">
<meta name="author" content="{{ with .Site.Params.author }}{{ . }}{{ end }}"> <meta name="author" content="{{ i18n "author" }}">
<link rel="shortcut icon" href="favicon.ico"> <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'> <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 --> <!-- 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 --> <!-- Plugins CSS -->
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/plugins/font-awesome/css/font-awesome.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 }}"> <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 --> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <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> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]--> <![endif]-->
{{ template "_internal/google_analytics_async.html" . }} {{ template "_internal/google_analytics_async.html" . }}

View file

@ -1,8 +1,8 @@
<div class="interests-container container-block"> <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"> <ul class="list-unstyled interests-list">
{{ range .Site.Params.interests.list }} {{ range .Site.Params.interests.list }}
<li>{{ .interest }}</li> <li>{{ .interest }}</li>
{{ end }} {{ end }}
</ul> </ul>
</div><!--//interests--> </div><!--//interests-->

View file

@ -1,3 +1,3 @@
<!--[if IE 8]> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}" class="ie8"> <![endif]--> <!--[if IE 8]> <html lang="{{ .Site.Language }}" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}" class="ie9"> <![endif]--> <!--[if IE 9]> <html lang="{{ .Site.Language }}" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> <!--<![endif]--> <!--[if !IE]><!--> <html lang="{{ .Site.Language }}"> <!--<![endif]-->

View file

@ -1,8 +1,8 @@
<div class="languages-container container-block"> <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"> <ul class="list-unstyled interests-list">
{{ range .Site.Params.languages.list }} {{ range .Site.Params.languages.list }}
<li>{{ .language }} <span class="lang-desc">({{ .level }})</span></li> <li>{{ .language }} <span class="lang-desc">({{ .level }})</span></li>
{{ end }} {{ end }}
</ul> </ul>
</div><!--//languages--> </div><!--//languages-->

View file

@ -2,4 +2,4 @@
<img class="profile" src="{{ .Site.BaseURL }}assets/images/{{ .Site.Params.profile.avatar }}" alt="" /> <img class="profile" src="{{ .Site.BaseURL }}assets/images/{{ .Site.Params.profile.avatar }}" alt="" />
<h1 class="name">{{ .Site.Params.profile.name }}</h1> <h1 class="name">{{ .Site.Params.profile.name }}</h1>
<h3 class="tagline">{{ .Site.Params.profile.tagline }}</h3> <h3 class="tagline">{{ .Site.Params.profile.tagline }}</h3>
</div><!--//profile-container--> </div><!--//profile-container-->

View file

@ -1,5 +1,5 @@
<section class="section projects-section"> <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"> <div class="intro">
<p>{{ with .Site.Params.projects.intro }}{{ . | markdownify }}{{ end }}</p> <p>{{ with .Site.Params.projects.intro }}{{ . | markdownify }}{{ end }}</p>
</div><!--//intro--> </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> <span class="project-title"><a href="{{ .url }}">{{ .title }}</a></span> - <span class="project-tagline">{{ with .tagline }}{{ . | markdownify }}{{ end }}</span>
</div><!--//item--> </div><!--//item-->
{{ end }} {{ end }}
</section><!--//section--> </section><!--//section-->

View file

@ -1,5 +1,15 @@
<div class="sidebar-wrapper"> <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" . }} {{ partial "profile.html" . }}
{{ if .Site.Params.contact.enable }} {{ if .Site.Params.contact.enable }}
@ -18,4 +28,4 @@
{{ partial "interests.html" . }} {{ partial "interests.html" . }}
{{ end }} {{ end }}
</div><!--//sidebar-wrapper--> </div><!--//sidebar-wrapper-->

View file

@ -1,14 +1,14 @@
<section class="skills-section section"> <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"> <div class="skillset">
{{ range .Site.Params.skills.list }} {{ range .Site.Params.skills.list }}
<div class="item"> <div class="item">
<h3 class="level-title">{{ .skill }}</h3> <h3 class="level-title">{{ .skill }}</h3>
<div class="level-bar"> <div class="level-bar">
<div class="level-bar-inner" data-level="{{ .level }}"> <div class="level-bar-inner" data-level="{{ .level }}">
</div> </div>
</div><!--//level-bar--> </div><!--//level-bar-->
</div><!--//item--> </div><!--//item-->
{{ end }} {{ end }}
</div> </div>
</section><!--//skills-section--> </section><!--//skills-section-->

View file

@ -1,6 +1,6 @@
<section class="section summary-section"> <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"> <div class="summary">
<p>{{ with .Site.Params.summary.summary }}{{ . | markdownify }}{{ end }}</p> <p>{{ with .Site.Params.summary.summary }}{{ . | markdownify }}{{ end }}</p>
</div><!--//summary--> </div><!--//summary-->
</section><!--//section--> </section><!--//section-->