i18n applied to breadcrumbs
This commit is contained in:
		
							parent
							
								
									4f730fee5d
								
							
						
					
					
						commit
						e81cd2d421
					
				|  | @ -626,7 +626,7 @@ other = "검색..." | |||
| [summary-dateformat] | ||||
| other = "2006년 01월 02일" | ||||
| 
 | ||||
| [taxo-tags] | ||||
| [tags] | ||||
| other = "태그" | ||||
| 
 | ||||
| ... | ||||
|  |  | |||
|  | @ -621,7 +621,7 @@ other = "검색..." | |||
| [summary-dateformat] | ||||
| other = "2006년 01월 02일" | ||||
| 
 | ||||
| [taxo-tags] | ||||
| [tags] | ||||
| other = "태그" | ||||
| 
 | ||||
| ... | ||||
|  |  | |||
|  | @ -3,6 +3,8 @@ title: "{{ replace .Name "-" " " | title }}" | |||
| date: {{ .Date }} | ||||
| description: | ||||
| draft: false | ||||
| hideToc: false | ||||
| enableToc: true | ||||
| enableTocContent: false | ||||
| tags: | ||||
| - | ||||
|  |  | |||
|  | @ -14,7 +14,11 @@ | |||
|   @include themify($themes) { | ||||
|     background-color: themed('body-background-color'); | ||||
|   } | ||||
|  } | ||||
| } | ||||
| 
 | ||||
| .capitalize { | ||||
|   text-transform: capitalize; | ||||
| } | ||||
| 
 | ||||
| .hide { | ||||
|   display: none; | ||||
|  |  | |||
|  | @ -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,13 +28,9 @@ | |||
|     }     | ||||
| 
 | ||||
|     &: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'); | ||||
|       } | ||||
|     }        | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -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] | ||||
|  |  | |||
|  | @ -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] | ||||
|  |  | |||
|  | @ -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] | ||||
|  |  | |||
|  | @ -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"> | ||||
|  |  | |||
|  | @ -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"> | ||||
|  |  | |||
|  | @ -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"> | ||||
|  |  | |||
|  | @ -8,12 +8,14 @@ | |||
|   {{ else if not .p1.IsHome }} | ||||
|   {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 )  }} | ||||
|   {{ 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 }} | ||||
|       <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> | ||||
|     {{ end }}     | ||||
|       <a href="{{ .p1.Permalink }}" class="capitalize">{{ i18n (lower .p1.Title) | default .p1.Title }}</a> | ||||
|     {{ end }} | ||||
|   </li> | ||||
|   {{ end }} | ||||
| </nav> | ||||
|  | @ -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 }} | ||||
|  |  | |||
|  | @ -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 }} | ||||
|  |  | |||
|  | @ -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 }} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 zzossig
						zzossig