diff options
author | Yurizal Susanto <rizal.sagi@gmail.com> | 2017-06-29 17:50:06 +0300 |
---|---|---|
committer | Yurizal Susanto <rizal.sagi@gmail.com> | 2017-06-29 17:50:06 +0300 |
commit | 8595ef0187afdf1faa9780929202ef00c56cf992 (patch) | |
tree | 2ded0a8de2ab445356186a8e7dbd846762ce34d9 /layouts | |
parent | c38639b1bf168cadd860ccff26e600becb22ee9b (diff) |
Use the translation
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/about/list.html | 2 | ||||
-rw-r--r-- | layouts/about/single.html | 10 | ||||
-rw-r--r-- | layouts/blog/list.html | 16 | ||||
-rw-r--r-- | layouts/blog/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/footer.html | 6 | ||||
-rw-r--r-- | layouts/work/list.html | 16 | ||||
-rw-r--r-- | layouts/work/single.html | 6 |
8 files changed, 52 insertions, 10 deletions
diff --git a/layouts/about/list.html b/layouts/about/list.html index 7cdcd67..44186d3 100644 --- a/layouts/about/list.html +++ b/layouts/about/list.html @@ -1,6 +1,6 @@ {{ partial "header" . }} <section> - <h2>{{.Section | title}}</h2> + <h2>{{ T "sectionAbout" }}</h2> {{ with .Content }}{{.}}{{ end }} </section> <section> diff --git a/layouts/about/single.html b/layouts/about/single.html new file mode 100644 index 0000000..448872e --- /dev/null +++ b/layouts/about/single.html @@ -0,0 +1,10 @@ +{{ partial "header" . }} +<article> + <header> + <h1>{{ .Title }}</h1> + </header> + {{ .Content }} + <hr/> + <a href="/about">{{ T "backtoAbout" }}</a> +</article> +{{ partial "footer" . }} diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..a88d823 --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,16 @@ +{{ partial "header" . }} +<section> + <h2>{{ T "sectionBlog" }}</h2> + {{ with .Content }}{{.}}{{ end }} +</section> +{{ range .Pages.GroupByDate "Jan, 2006" }} +<section> + <h4>{{ .Key }}</h4> + <ul class="no-bullet"> + {{ range .Pages }} + {{ partial "li" . }} + {{ end }} + </ul> +</section> +{{ end }} +{{ partial "footer" . }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index e814c93..709b0d3 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -4,7 +4,7 @@ <h1>{{ .Title }}</h1> <h6> {{if .Date}}<time datetime="{{.Date}}">{{ .Date.Format .Site.Params.DateFmt }} - </time>{{end}} - {{ .ReadingTime }} Menit + {{ T "readingTime" .ReadingTime }} {{if .Params.tags}} - {{range .Params.tags}} diff --git a/layouts/index.html b/layouts/index.html index 5cb90b9..de86453 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ partial "header" . }} {{ $latestcount := .Site.Params.latestcount | default 5 }} <section> - <h4>Blog</h4> + <h4>{{ T "latestPost" }}</h4> <ul class="no-bullet"> {{- range (first $latestcount (where .Pages "Section" "blog")) -}} {{ partial "li" . }} @@ -9,7 +9,7 @@ </ul> </section> <section> - <h4>Work</h4> + <h4>{{ T "latestWork" }}</h4> <ul class="no-bullet"> {{- range (first $latestcount (where .Pages "Section" "work")) -}} {{ partial "li" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index b4e750f..b9ff285 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,11 +5,11 @@ {{ partial "social.html" . }} <p> {{ if .Site.Params.themeAttrib }} - Theme used: <a href="https://github.com/yursan9/manis-hugo-theme">Manis</a><br> + {{ T "usedTheme" }} <a href="https://github.com/yursan9/manis-hugo-theme">Manis</a><br> {{ end }} {{ with .Site.Params.License }} {{ . | safeHTML }} | - <a href="/about/license">License</a> + <a href="/about/license">{{ T "license" }}</a> {{ end }} </p> </div> @@ -17,7 +17,7 @@ {{ if ne .Kind "home" }} <a href="#"> <img class="icon-text" src="/img/toup.svg" alt="To Up"/> - <span>Kembali ke atas</span> + <span>{{ T "toUp" }}</span> </a> {{ end }} </div> diff --git a/layouts/work/list.html b/layouts/work/list.html new file mode 100644 index 0000000..423744d --- /dev/null +++ b/layouts/work/list.html @@ -0,0 +1,16 @@ +{{ partial "header" . }} +<section> + <h2>{{ T "sectionWork" }}</h2> + {{ with .Content }}{{.}}{{ end }} +</section> +{{ range .Pages.GroupByDate "Jan, 2006" }} +<section> + <h4>{{ .Key }}</h4> + <ul class="no-bullet"> + {{ range .Pages }} + {{ partial "li" . }} + {{ end }} + </ul> +</section> +{{ end }} +{{ partial "footer" . }} diff --git a/layouts/work/single.html b/layouts/work/single.html index e4afb09..c276935 100644 --- a/layouts/work/single.html +++ b/layouts/work/single.html @@ -4,6 +4,9 @@ <h1>{{ .Title }}</h1> <h6> {{if .Date}}<time datetime="{{.Date}}">{{ .Date.Format .Site.Params.DateFmt }} - </time>{{end}} + {{ with .Params.workURL }} + <a href="{{.}}" target="_blank"><em>{{ T "workHomepage" }}</em></a> - + {{ end }} {{if .Params.tags}} {{range .Params.tags}} {{ . }} @@ -11,9 +14,6 @@ {{end}} </h6> </header> - {{ with .Params.workURL }} - <a href="{{.}}" target="_blank"><em>Work's Homepage</em></a> - {{ end }} {{ .Content }} <hr/> <div class="row"> |