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:
|
||||
other: اكثر
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: وسوم
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: التصنيفات
|
||||
|
||||
search:
|
||||
title:
|
||||
other: بحث
|
||||
|
@ -48,13 +48,6 @@ widget:
|
||||
more:
|
||||
other: আরও
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: ট্যাগ
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: বিভাগ
|
||||
|
||||
search:
|
||||
title:
|
||||
other: অনুসন্ধান
|
||||
|
@ -48,13 +48,6 @@ widget:
|
||||
more:
|
||||
other: Més
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Etiquetes
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categories
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Cerca
|
||||
|
@ -48,14 +48,6 @@ widget:
|
||||
more:
|
||||
other: Weitere
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Schlagwörter
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Kategorien
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Suche
|
||||
|
@ -48,10 +48,6 @@ widget:
|
||||
more:
|
||||
other: Περισσότερα
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tags
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Αναζήτηση
|
||||
|
@ -48,13 +48,6 @@ widget:
|
||||
more:
|
||||
other: More
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tags
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categories
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Search
|
||||
|
@ -48,13 +48,6 @@ widget:
|
||||
more:
|
||||
other: Más
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Etiquetas
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categorías
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Búsqueda
|
||||
|
@ -48,13 +48,6 @@ widget:
|
||||
more:
|
||||
other: بیشتر
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: تگ ها
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: دسته بندی
|
||||
|
||||
search:
|
||||
title:
|
||||
other: جستجو
|
||||
|
@ -47,10 +47,6 @@ widget:
|
||||
more:
|
||||
other: Autres
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Mots clés
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Rechercher
|
||||
|
@ -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
|
||||
|
@ -47,14 +47,6 @@ widget:
|
||||
more:
|
||||
other: Lebih
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tag
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Kategori
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Cari
|
||||
|
@ -47,14 +47,6 @@ widget:
|
||||
more:
|
||||
other: Di più
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tags
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categorie
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Cerca
|
||||
|
@ -34,14 +34,6 @@ widget:
|
||||
more:
|
||||
other: さらに見る
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: タグ
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: カテゴリ
|
||||
|
||||
search:
|
||||
title:
|
||||
other: 検索
|
||||
|
@ -46,14 +46,6 @@ widget:
|
||||
other: 보관함
|
||||
more:
|
||||
other: 더보기
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: 카테고리
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: 태그
|
||||
|
||||
search:
|
||||
title:
|
||||
|
@ -34,13 +34,6 @@ widget:
|
||||
other: Archief
|
||||
more:
|
||||
other: Meer
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tags
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categorie
|
||||
|
||||
search:
|
||||
title:
|
||||
|
@ -47,14 +47,6 @@ widget:
|
||||
more:
|
||||
other: Więcej
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tagi
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Kategorie
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Szukaj
|
||||
|
@ -45,12 +45,6 @@ widget:
|
||||
other: Arquivos
|
||||
more:
|
||||
other: Mais
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tags
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categorias
|
||||
|
||||
search:
|
||||
title:
|
||||
|
@ -45,12 +45,6 @@ widget:
|
||||
other: Arquivos
|
||||
more:
|
||||
other: Mais
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tags
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categorias
|
||||
|
||||
search:
|
||||
title:
|
||||
|
@ -44,9 +44,6 @@ widget:
|
||||
other: Архивы
|
||||
more:
|
||||
other: Ещё
|
||||
tagCloud:
|
||||
title:
|
||||
other: Теги
|
||||
|
||||
search:
|
||||
title:
|
||||
|
@ -48,10 +48,6 @@ widget:
|
||||
more:
|
||||
other: อื่นๆ นอกจากนี้
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: แท็ก
|
||||
|
||||
search:
|
||||
title:
|
||||
other: ค้นหา
|
||||
|
@ -34,9 +34,6 @@ widget:
|
||||
other: Arşiv
|
||||
more:
|
||||
other: Daha fazla
|
||||
tagCloud:
|
||||
title:
|
||||
other: Etiketler
|
||||
|
||||
search:
|
||||
title:
|
||||
|
@ -49,10 +49,6 @@ widget:
|
||||
more:
|
||||
other: Більше
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Теґи
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Пошук
|
||||
|
@ -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
|
||||
|
@ -34,14 +34,6 @@ widget:
|
||||
more:
|
||||
other: 更多
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: 标签云
|
||||
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: 分类
|
||||
|
||||
search:
|
||||
title:
|
||||
other: 搜索
|
||||
|
@ -48,13 +48,6 @@ widget:
|
||||
more:
|
||||
other: 更多
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Tags
|
||||
categoriesCloud:
|
||||
title:
|
||||
other: Categories
|
||||
|
||||
search:
|
||||
title:
|
||||
other: 搜尋
|
||||
|
@ -34,10 +34,6 @@ widget:
|
||||
more:
|
||||
other: 更多
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: 標籤雲
|
||||
|
||||
search:
|
||||
title:
|
||||
other: 搜尋
|
||||
|
@ -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 }}
|
||||
|
@ -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 }}
|
||||
|
@ -1,16 +1,22 @@
|
||||
{{- $query := first 1 (where (where .Context.Site.Pages "Kind" "taxonomy") "Type" "categories") -}}
|
||||
{{- $context := .Context -}}
|
||||
{{- $limit := default 10 .Params.limit -}}
|
||||
<section class="widget tagCloud">
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "categories" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title">{{ T "widget.categoriesCloud.title" }}</h2>
|
||||
{{- 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"><a href="{{ $categoriesPage.RelPermalink }}">{{ default "Categories" $categoriesPage.Title }}</a></h2>
|
||||
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.categories.ByCount }}
|
||||
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.categories.ByCount }}
|
||||
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</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 -}}
|
||||
{{- $limit := default 10 .Params.limit -}}
|
||||
<section class="widget tagCloud">
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "tag" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title">{{ T "widget.tagCloud.title" }}</h2>
|
||||
{{- 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"><a href="{{ $tagsPage.RelPermalink }}">{{ default "Tags" $tagsPage.Title }}</a></h2>
|
||||
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.tags.ByCount }}
|
||||
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.tags.ByCount }}
|
||||
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{- else -}}
|
||||
{{- warnf "Categories page not found. Please enable the categories taxonomy." -}}
|
||||
{{- end -}}
|
Loading…
Reference in New Issue
Block a user