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]
other = "2006년 01월 02일"
[taxo-tags]
[tags]
other = "태그"
...

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,9 +10,11 @@
{{ end }}
<li {{ if eq .p1 .p2 }} class="is-active" {{ end }}>
{{ 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 }}
<a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a>
<a href="{{ .p1.Permalink }}" class="capitalize">{{ i18n (lower .p1.Title) | default .p1.Title }}</a>
{{ end }}
</li>
{{ end }}

View File

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

View File

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

View File

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