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>

View file

@ -1,5 +1,5 @@
<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">

View file

@ -1,10 +1,10 @@
<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 -->

View file

@ -1,5 +1,5 @@
<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>

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,5 +1,5 @@
<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>

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-->

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 }}

View file

@ -1,5 +1,5 @@
<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">

View file

@ -1,5 +1,5 @@
<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-->