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:
other: اكثر
tagCloud:
title:
other: وسوم
categoriesCloud:
title:
other: التصنيفات
search:
title:
other: بحث

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -47,14 +47,6 @@ widget:
more:
other: 더보기
categoriesCloud:
title:
other: 카테고리
tagCloud:
title:
other: 태그
search:
title:
other: 검색

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -11,7 +11,7 @@
<div class="section-card">
<div class="section-details">
<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 }}
<h2 class="section-description">{{ . }}</h2>
{{ end }}

View File

@ -7,7 +7,7 @@
<div class="widget-icon">
{{ partial "helper/icon" "infinity" }}
</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 }}
{{ $notHidden := where $context.Site.RegularPages "Params.hidden" "!=" true }}

View File

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

View File

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