Add link to navbar sections and refactor names

This commit is contained in:
Jacob Zhong 2023-01-14 17:26:42 -05:00
parent 4272da7ee4
commit d774192b8d
30 changed files with 40 additions and 194 deletions

View File

@ -48,14 +48,6 @@ widget:
more: more:
other: اكثر other: اكثر
tagCloud:
title:
other: وسوم
categoriesCloud:
title:
other: التصنيفات
search: search:
title: title:
other: بحث other: بحث

View File

@ -48,13 +48,6 @@ widget:
more: more:
other: আরও other: আরও
tagCloud:
title:
other: ট্যাগ
categoriesCloud:
title:
other: বিভাগ
search: search:
title: title:
other: অনুসন্ধান other: অনুসন্ধান

View File

@ -48,13 +48,6 @@ widget:
more: more:
other: Més other: Més
tagCloud:
title:
other: Etiquetes
categoriesCloud:
title:
other: Categories
search: search:
title: title:
other: Cerca other: Cerca

View File

@ -48,14 +48,6 @@ widget:
more: more:
other: Weitere other: Weitere
tagCloud:
title:
other: Schlagwörter
categoriesCloud:
title:
other: Kategorien
search: search:
title: title:
other: Suche other: Suche

View File

@ -48,10 +48,6 @@ widget:
more: more:
other: Περισσότερα other: Περισσότερα
tagCloud:
title:
other: Tags
search: search:
title: title:
other: Αναζήτηση other: Αναζήτηση

View File

@ -48,13 +48,6 @@ widget:
more: more:
other: More other: More
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categories
search: search:
title: title:
other: Search other: Search

View File

@ -48,13 +48,6 @@ widget:
more: more:
other: Más other: Más
tagCloud:
title:
other: Etiquetas
categoriesCloud:
title:
other: Categorías
search: search:
title: title:
other: Búsqueda other: Búsqueda

View File

@ -48,13 +48,6 @@ widget:
more: more:
other: بیشتر other: بیشتر
tagCloud:
title:
other: تگ ها
categoriesCloud:
title:
other: دسته بندی
search: search:
title: title:
other: جستجو other: جستجو

View File

@ -47,10 +47,6 @@ widget:
more: more:
other: Autres other: Autres
tagCloud:
title:
other: Mots clés
search: search:
title: title:
other: Rechercher other: Rechercher

View File

@ -48,13 +48,6 @@ widget:
more: more:
other: Több other: Több
tagCloud:
title:
other: Cimkék
categoriesCloud:
title:
other: Kategóriák
search: search:
title: title:
other: Keresés other: Keresés

View File

@ -47,14 +47,6 @@ widget:
more: more:
other: Lebih other: Lebih
tagCloud:
title:
other: Tag
categoriesCloud:
title:
other: Kategori
search: search:
title: title:
other: Cari other: Cari

View File

@ -47,14 +47,6 @@ widget:
more: more:
other: Di più other: Di più
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categorie
search: search:
title: title:
other: Cerca other: Cerca

View File

@ -34,14 +34,6 @@ widget:
more: more:
other: さらに見る other: さらに見る
tagCloud:
title:
other: タグ
categoriesCloud:
title:
other: カテゴリ
search: search:
title: title:
other: 検索 other: 検索

View File

@ -46,14 +46,6 @@ widget:
other: 보관함 other: 보관함
more: more:
other: 더보기 other: 더보기
categoriesCloud:
title:
other: 카테고리
tagCloud:
title:
other: 태그
search: search:
title: title:

View File

@ -34,13 +34,6 @@ widget:
other: Archief other: Archief
more: more:
other: Meer other: Meer
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categorie
search: search:
title: title:

View File

@ -47,14 +47,6 @@ widget:
more: more:
other: Więcej other: Więcej
tagCloud:
title:
other: Tagi
categoriesCloud:
title:
other: Kategorie
search: search:
title: title:
other: Szukaj other: Szukaj

View File

@ -45,12 +45,6 @@ widget:
other: Arquivos other: Arquivos
more: more:
other: Mais other: Mais
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categorias
search: search:
title: title:

View File

@ -45,12 +45,6 @@ widget:
other: Arquivos other: Arquivos
more: more:
other: Mais other: Mais
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categorias
search: search:
title: title:

View File

@ -44,9 +44,6 @@ widget:
other: Архивы other: Архивы
more: more:
other: Ещё other: Ещё
tagCloud:
title:
other: Теги
search: search:
title: title:

View File

@ -48,10 +48,6 @@ widget:
more: more:
other: อื่นๆ นอกจากนี้ other: อื่นๆ นอกจากนี้
tagCloud:
title:
other: แท็ก
search: search:
title: title:
other: ค้นหา other: ค้นหา

View File

@ -34,9 +34,6 @@ widget:
other: Arşiv other: Arşiv
more: more:
other: Daha fazla other: Daha fazla
tagCloud:
title:
other: Etiketler
search: search:
title: title:

View File

@ -49,10 +49,6 @@ widget:
more: more:
other: Більше other: Більше
tagCloud:
title:
other: Теґи
search: search:
title: title:
other: Пошук other: Пошук

View File

@ -48,14 +48,6 @@ widget:
more: more:
other: Còn nữa other: Còn nữa
tagCloud:
title:
other: Nhãn dán
categoriesCloud:
title:
other: Chuỗi bài
search: search:
title: title:
other: Tìm kiếm other: Tìm kiếm

View File

@ -34,14 +34,6 @@ widget:
more: more:
other: 更多 other: 更多
tagCloud:
title:
other: 标签云
categoriesCloud:
title:
other: 分类
search: search:
title: title:
other: 搜索 other: 搜索

View File

@ -48,13 +48,6 @@ widget:
more: more:
other: 更多 other: 更多
tagCloud:
title:
other: Tags
categoriesCloud:
title:
other: Categories
search: search:
title: title:
other: 搜尋 other: 搜尋

View File

@ -34,10 +34,6 @@ widget:
more: more:
other: 更多 other: 更多
tagCloud:
title:
other: 標籤雲
search: search:
title: title:
other: 搜尋 other: 搜尋

View File

@ -11,7 +11,7 @@
<div class="section-card"> <div class="section-card">
<div class="section-details"> <div class="section-details">
<h3 class="section-count">{{ T "list.page" (len .Pages) }}</h3> <h3 class="section-count">{{ T "list.page" (len .Pages) }}</h3>
<h1 class="section-term">{{ .Title }}</h1> <h1 class="section-term">{{ default (strings.FirstUpper .Type) .Title }}</h1>
{{ with .Params.description }} {{ with .Params.description }}
<h2 class="section-description">{{ . }}</h2> <h2 class="section-description">{{ . }}</h2>
{{ end }} {{ end }}

View File

@ -7,7 +7,7 @@
<div class="widget-icon"> <div class="widget-icon">
{{ partial "helper/icon" "infinity" }} {{ partial "helper/icon" "infinity" }}
</div> </div>
<h2 class="widget-title section-title">{{ T "widget.archives.title" }}</h2> <h2 class="widget-title section-title"><a href="{{ $archivesPage.RelPermalink }}">{{ T "widget.archives.title" }}</a></h2>
{{ $pages := where $context.Site.RegularPages "Type" "in" $context.Site.Params.mainSections }} {{ $pages := where $context.Site.RegularPages "Type" "in" $context.Site.Params.mainSections }}
{{ $notHidden := where $context.Site.RegularPages "Params.hidden" "!=" true }} {{ $notHidden := where $context.Site.RegularPages "Params.hidden" "!=" true }}

View File

@ -1,16 +1,22 @@
{{- $query := first 1 (where (where .Context.Site.Pages "Kind" "taxonomy") "Type" "categories") -}}
{{- $context := .Context -}} {{- $context := .Context -}}
{{- $limit := default 10 .Params.limit -}} {{- $limit := default 10 .Params.limit -}}
<section class="widget tagCloud"> {{- if $query -}}
<div class="widget-icon"> {{- $categoriesPage := index $query 0 -}}
{{ partial "helper/icon" "categories" }} <section class="widget tagCloud">
</div> <div class="widget-icon">
<h2 class="widget-title section-title">{{ T "widget.categoriesCloud.title" }}</h2> {{ partial "helper/icon" "categories" }}
</div>
<h2 class="widget-title section-title"><a href="{{ $categoriesPage.RelPermalink }}">{{ default "Categories" $categoriesPage.Title }}</a></h2>
<div class="tagCloud-tags"> <div class="tagCloud-tags">
{{ range first $limit $context.Site.Taxonomies.categories.ByCount }} {{ range first $limit $context.Site.Taxonomies.categories.ByCount }}
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}"> <a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
{{ .Page.Title }} {{ .Page.Title }}
</a> </a>
{{ end }} {{ end }}
</div> </div>
</section> </section>
{{- else -}}
{{- warnf "Categories page not found. Please enable the categories taxonomy." -}}
{{- end -}}

View File

@ -1,16 +1,22 @@
{{- $query := first 1 (where (where .Context.Site.Pages "Kind" "taxonomy") "Type" "tags") -}}
{{- $context := .Context -}} {{- $context := .Context -}}
{{- $limit := default 10 .Params.limit -}} {{- $limit := default 10 .Params.limit -}}
<section class="widget tagCloud"> {{- if $query -}}
<div class="widget-icon"> {{- $tagsPage := index $query 0 -}}
{{ partial "helper/icon" "tag" }} <section class="widget tagCloud">
</div> <div class="widget-icon">
<h2 class="widget-title section-title">{{ T "widget.tagCloud.title" }}</h2> {{ partial "helper/icon" "tag" }}
</div>
<h2 class="widget-title section-title"><a href="{{ $tagsPage.RelPermalink }}">{{ default "Tags" $tagsPage.Title }}</a></h2>
<div class="tagCloud-tags"> <div class="tagCloud-tags">
{{ range first $limit $context.Site.Taxonomies.tags.ByCount }} {{ range first $limit $context.Site.Taxonomies.tags.ByCount }}
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}"> <a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
{{ .Page.Title }} {{ .Page.Title }}
</a> </a>
{{ end }} {{ end }}
</div> </div>
</section> </section>
{{- else -}}
{{- warnf "Categories page not found. Please enable the categories taxonomy." -}}
{{- end -}}