i18n applied to breadcrumbs

This commit is contained in:
zzossig 2020-01-09 14:25:02 +09:00
parent 4f730fee5d
commit e81cd2d421
16 changed files with 35 additions and 33 deletions

View File

@ -626,7 +626,7 @@ other = "검색..."
[summary-dateformat] [summary-dateformat]
other = "2006년 01월 02일" other = "2006년 01월 02일"
[taxo-tags] [tags]
other = "태그" other = "태그"
... ...

View File

@ -621,7 +621,7 @@ other = "검색..."
[summary-dateformat] [summary-dateformat]
other = "2006년 01월 02일" other = "2006년 01월 02일"
[taxo-tags] [tags]
other = "태그" other = "태그"
... ...

View File

@ -3,6 +3,8 @@ title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }} date: {{ .Date }}
description: description:
draft: false draft: false
hideToc: false
enableToc: true
enableTocContent: false enableTocContent: false
tags: tags:
- -

View File

@ -14,7 +14,11 @@
@include themify($themes) { @include themify($themes) {
background-color: themed('body-background-color'); background-color: themed('body-background-color');
} }
} }
.capitalize {
text-transform: capitalize;
}
.hide { .hide {
display: none; display: none;

View File

@ -16,11 +16,9 @@
li { li {
display: inline; display: inline;
font-size: 1rem; font-size: 0.9rem;
a { a {
font-size: 0.9rem;
@include themify($themes) { @include themify($themes) {
color: themed('breadcrumb-item-color'); color: themed('breadcrumb-item-color');
@include on-event { @include on-event {
@ -30,13 +28,9 @@
} }
&:last-child { &:last-child {
a { @include themify($themes) {
@include themify($themes) { color: themed('breadcrumb-item-active-color');
color: themed('breadcrumb-item-active-color'); }
}
text-decoration: none;
cursor: default;
}
} }
} }

View File

@ -7,13 +7,13 @@ other = "Jan 2, 2006"
[reading-time] [reading-time]
other = "min read" other = "min read"
[taxo-tags] [tags]
other = "Tags" other = "Tags"
[taxo-categories] [categories]
other = "Categories" other = "Categories"
[taxo-series] [series]
other = "Series" other = "Series"
[archive-dateformat] [archive-dateformat]

View File

@ -7,13 +7,13 @@ other = "2006년 01월 02일"
[reading-time] [reading-time]
other = "min read" other = "min read"
[taxo-tags] [tags]
other = "태그" other = "태그"
[taxo-categories] [categories]
other = "카테고리" other = "카테고리"
[taxo-series] [series]
other = "시리즈" other = "시리즈"
[archive-dateformat] [archive-dateformat]

View File

@ -7,13 +7,13 @@ other = "2006年01月02日"
[reading-time] [reading-time]
other = "分钟" other = "分钟"
[taxo-tags] [tags]
other = "标签" other = "标签"
[taxo-categories] [categories]
other = "分类" other = "分类"
[taxo-series] [series]
other = "系列" other = "系列"
[archive-dateformat] [archive-dateformat]

View File

@ -7,7 +7,7 @@
{{ partial "body/breadcrumb" . }} {{ partial "body/breadcrumb" . }}
<article class="list"> <article class="list">
<header class="list__header"> <header class="list__header">
<h5 class="list__header--title h5">{{.Title}}</h5> <h5 class="list__header--title capitalize h5">{{.Title}}</h5>
</header> </header>
<div class="list__header--desc p2"> <div class="list__header--desc p2">

View File

@ -7,7 +7,7 @@
{{ partial "body/breadcrumb" . }} {{ partial "body/breadcrumb" . }}
<article class="list"> <article class="list">
<header class="list__header"> <header class="list__header">
<h5 class="list__header--title h5">{{.Title}}</h5> <h5 class="list__header--title capitalize h5">{{.Title}}</h5>
</header> </header>
<div class="list__header--desc p2"> <div class="list__header--desc p2">

View File

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
{{ $title := .Title }} {{ $title := .Title }}
<header class="header"> <header class="header">
<h3 class="h3 terms__title">{{ $title }}</h3> <h3 class="terms__title capitalize h3">{{ $title }}</h3>
</header> </header>
<main class="terms main"> <main class="terms main">
<div class="terms__list"> <div class="terms__list">

View File

@ -8,12 +8,14 @@
{{ else if not .p1.IsHome }} {{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }} {{ end }}
<li {{ if eq .p1 .p2 }} class="is-active" {{ end }}> <li {{ if eq .p1 .p2 }} class="is-active" {{ end }}>
{{ if eq (len .p1.Title) 0 }} {{ if eq (len .p1.Title) 0 }}
<a href="{{ .p1.Permalink }}">{{ .p1.Site.Title }}</a> <a href="{{ .p1.Permalink }}" class="capitalize">{{ .p1.Site.Title }}</a>
{{ else if eq .p1 .p2 }}
<span>{{ i18n (lower .p1.Title) | default .p1.Title }}</span>
{{ else }} {{ else }}
<a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a> <a href="{{ .p1.Permalink }}" class="capitalize">{{ i18n (lower .p1.Title) | default .p1.Title }}</a>
{{ end }} {{ end }}
</li> </li>
{{ end }} {{ end }}
</nav> </nav>

View File

@ -3,7 +3,7 @@
<section> <section>
<span class="title p2"> <span class="title p2">
<a href="{{ "/categories/" | relLangURL }}" class="taxo__title"> <a href="{{ "/categories/" | relLangURL }}" class="taxo__title">
{{ i18n "taxo-categories" }} {{ i18n "categories" }}
</a> </a>
</span> </span>
{{ range $index, $element := .Site.Taxonomies.categories }} {{ range $index, $element := .Site.Taxonomies.categories }}

View File

@ -3,7 +3,7 @@
<section> <section>
<span class="title p2"> <span class="title p2">
<a href="{{ "/series/" | relLangURL }}" class="taxo__title"> <a href="{{ "/series/" | relLangURL }}" class="taxo__title">
{{ i18n "taxo-series" }} {{ i18n "series" }}
</a> </a>
</span> </span>
{{ range $index, $element := .Site.Taxonomies.series }} {{ range $index, $element := .Site.Taxonomies.series }}

View File

@ -3,7 +3,7 @@
<section> <section>
<span class="title p2"> <span class="title p2">
<a href="{{ "/tags/" | relLangURL }}" class="taxo__title"> <a href="{{ "/tags/" | relLangURL }}" class="taxo__title">
{{ i18n "taxo-tags"}} {{ i18n "tags"}}
</a> </a>
</span> </span>
{{ range $index, $element := .Site.Taxonomies.tags }} {{ range $index, $element := .Site.Taxonomies.tags }}