mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Add link to navbar sections and refactor names
This commit is contained in:
parent
4272da7ee4
commit
d774192b8d
@ -48,14 +48,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: اكثر
|
other: اكثر
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: وسوم
|
|
||||||
|
|
||||||
categoriesCloud:
|
|
||||||
title:
|
|
||||||
other: التصنيفات
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: بحث
|
other: بحث
|
||||||
|
@ -48,13 +48,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: আরও
|
other: আরও
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: ট্যাগ
|
|
||||||
categoriesCloud:
|
|
||||||
title:
|
|
||||||
other: বিভাগ
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: অনুসন্ধান
|
other: অনুসন্ধান
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -48,10 +48,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: Περισσότερα
|
other: Περισσότερα
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: Tags
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: Αναζήτηση
|
other: Αναζήτηση
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -48,13 +48,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: بیشتر
|
other: بیشتر
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: تگ ها
|
|
||||||
categoriesCloud:
|
|
||||||
title:
|
|
||||||
other: دسته بندی
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: جستجو
|
other: جستجو
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -34,14 +34,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: さらに見る
|
other: さらに見る
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: タグ
|
|
||||||
|
|
||||||
categoriesCloud:
|
|
||||||
title:
|
|
||||||
other: カテゴリ
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: 検索
|
other: 検索
|
||||||
|
@ -46,14 +46,6 @@ widget:
|
|||||||
other: 보관함
|
other: 보관함
|
||||||
more:
|
more:
|
||||||
other: 더보기
|
other: 더보기
|
||||||
|
|
||||||
categoriesCloud:
|
|
||||||
title:
|
|
||||||
other: 카테고리
|
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: 태그
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -44,9 +44,6 @@ widget:
|
|||||||
other: Архивы
|
other: Архивы
|
||||||
more:
|
more:
|
||||||
other: Ещё
|
other: Ещё
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: Теги
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
|
@ -48,10 +48,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: อื่นๆ นอกจากนี้
|
other: อื่นๆ นอกจากนี้
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: แท็ก
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: ค้นหา
|
other: ค้นหา
|
||||||
|
@ -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:
|
||||||
|
@ -49,10 +49,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: Більше
|
other: Більше
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: Теґи
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: Пошук
|
other: Пошук
|
||||||
|
@ -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
|
||||||
|
@ -34,14 +34,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: 更多
|
other: 更多
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: 标签云
|
|
||||||
|
|
||||||
categoriesCloud:
|
|
||||||
title:
|
|
||||||
other: 分类
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: 搜索
|
other: 搜索
|
||||||
|
@ -48,13 +48,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: 更多
|
other: 更多
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: Tags
|
|
||||||
categoriesCloud:
|
|
||||||
title:
|
|
||||||
other: Categories
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: 搜尋
|
other: 搜尋
|
||||||
|
@ -34,10 +34,6 @@ widget:
|
|||||||
more:
|
more:
|
||||||
other: 更多
|
other: 更多
|
||||||
|
|
||||||
tagCloud:
|
|
||||||
title:
|
|
||||||
other: 標籤雲
|
|
||||||
|
|
||||||
search:
|
search:
|
||||||
title:
|
title:
|
||||||
other: 搜尋
|
other: 搜尋
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 -}}
|
||||||
|
@ -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 -}}
|
Loading…
Reference in New Issue
Block a user