mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 12:03:49 +01:00
refactor(archives): remove archive.categories i18n item (#108)
It's possible in the future to display another kind of taxonomy. To translate that title, create _index.md under content/categories, with the following content: --- title: Category ---
This commit is contained in:
parent
3572fff280
commit
ae477ab224
7 changed files with 5 additions and 28 deletions
|
@ -16,10 +16,6 @@ list:
|
||||||
one: Subsection
|
one: Subsection
|
||||||
other: Subsections
|
other: Subsections
|
||||||
|
|
||||||
archives:
|
|
||||||
categories:
|
|
||||||
other: Categories
|
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: Related contents
|
other: Related contents
|
||||||
|
|
|
@ -4,10 +4,6 @@ toggleMenu:
|
||||||
darkMode:
|
darkMode:
|
||||||
other: ダークモード
|
other: ダークモード
|
||||||
|
|
||||||
archives:
|
|
||||||
categories:
|
|
||||||
other: 分類
|
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: 関連するコンテンツ
|
other: 関連するコンテンツ
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
toggleMenu:
|
toggleMenu:
|
||||||
other: Alternar Menu
|
other: Alternar Menu
|
||||||
|
|
||||||
archives:
|
|
||||||
categories:
|
|
||||||
other: Categorias
|
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: Conteúdos Relacionados
|
other: Conteúdos Relacionados
|
||||||
|
|
|
@ -20,10 +20,6 @@ list:
|
||||||
many: Подразделов
|
many: Подразделов
|
||||||
other: Подразделов
|
other: Подразделов
|
||||||
|
|
||||||
archives:
|
|
||||||
categories:
|
|
||||||
other: Категории
|
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: Также рекомендуем
|
other: Также рекомендуем
|
||||||
|
|
|
@ -16,10 +16,6 @@ list:
|
||||||
one: Alt bölüm
|
one: Alt bölüm
|
||||||
other: Alt bölümler
|
other: Alt bölümler
|
||||||
|
|
||||||
archives:
|
|
||||||
categories:
|
|
||||||
other: Kategoriler
|
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: Alakalı içerikler
|
other: Alakalı içerikler
|
||||||
|
|
|
@ -4,10 +4,6 @@ toggleMenu:
|
||||||
darkMode:
|
darkMode:
|
||||||
other: 暗色模式
|
other: 暗色模式
|
||||||
|
|
||||||
archives:
|
|
||||||
categories:
|
|
||||||
other: 分类
|
|
||||||
|
|
||||||
article:
|
article:
|
||||||
relatedContents:
|
relatedContents:
|
||||||
other: 相关文章
|
other: 相关文章
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{{ define "body-class" }}template-archives{{ end }}
|
{{ define "body-class" }}template-archives{{ end }}
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
|
{{- $taxonomy := $.Site.GetPage "taxonomyTerm" "categories" -}}
|
||||||
{{ if $categories }}
|
{{- $terms := $taxonomy.Pages -}}
|
||||||
<h2 class="section-title">{{ T "archives.categories" }}</h2>
|
{{ if $terms }}
|
||||||
|
<h2 class="section-title">{{ $taxonomy.Title }}</h2>
|
||||||
<div class="subsection-list">
|
<div class="subsection-list">
|
||||||
<div class="article-list--tile">
|
<div class="article-list--tile">
|
||||||
{{ range $categories }}
|
{{ range $terms }}
|
||||||
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "taxonomy") }}
|
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "taxonomy") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue