diff --git a/config/_default/params.toml b/config/_default/params.toml index aec40a4a..302e3cc4 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -96,6 +96,7 @@ enableCodeCopy = true [term] #showHero = true #heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = false #showSummary = false #showViews = false #showLikes = false diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index a5aff927..8f1e4af8 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -95,6 +95,7 @@ defaultBackgroundImage = "/img/iceland.jpg" [term] showHero = true heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = false showSummary = false showViews = true showLikes = true diff --git a/exampleSite/content/tags/advanced/_index.md b/exampleSite/content/tags/advanced/_index.md index 04a98ff0..02f65b03 100644 --- a/exampleSite/content/tags/advanced/_index.md +++ b/exampleSite/content/tags/advanced/_index.md @@ -1,5 +1,5 @@ --- -title: advanced +title: Advanced --- This is the advanced tag. Just like other listing pages in Blowfish, you can add custom content to individual taxonomy terms and it will be displayed at the top of the term listing. :rocket: diff --git a/exampleSite/resources/_gen/images/tags/advanced/featured_hu61945c9a50a7e783444cb54fb71dc68a_650977_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/tags/advanced/featured_hu61945c9a50a7e783444cb54fb71dc68a_650977_1200x0_resize_box_3.png new file mode 100644 index 00000000..5a6e38bc Binary files /dev/null and b/exampleSite/resources/_gen/images/tags/advanced/featured_hu61945c9a50a7e783444cb54fb71dc68a_650977_1200x0_resize_box_3.png differ diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 61cdc0d2..5857ecaa 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -17,7 +17,7 @@ {{ if .Params.showBreadcrumbs | default (.Site.Params.taxonomy.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} {{ end }} -

{{ .Title }}

+

{{ .Title }}

{{ partial "article-meta-taxonomy.html" (dict "context" . "scope" "single") }}
diff --git a/layouts/_default/term.html b/layouts/_default/term.html index d84ef675..ac95515f 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -1,9 +1,23 @@ {{ define "main" }} + +{{ .Scratch.Set "scope" "list" }} +{{ if .Site.Params.term.showHero | default false }} +{{ $heroStyle := print "partials/hero/" .Site.Params.term.heroStyle ".html" }} +{{ if templates.Exists $heroStyle }} +{{ partial $heroStyle . }} +{{ else }} +{{ partial "partials/hero/basic.html" . }} +{{ end }} +{{- end -}} + +{{ $toc := and (.Params.showTableOfContents | default (.Site.Params.term.showTableOfContents | default false)) (in +.TableOfContents " - {{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }} + {{ if .Params.showBreadcrumbs | default (.Site.Params.term.showBreadcrumbs | default false) }} {{ partial "breadcrumbs.html" . }} {{ end }} -

{{ .Title }}

+

{{ .Title }}

{{ partial "article-meta-term.html" (dict "context" . "scope" "single") }}
diff --git a/layouts/partials/article-link.html b/layouts/partials/article-link.html index b93cd9f2..406790d3 100644 --- a/layouts/partials/article-link.html +++ b/layouts/partials/article-link.html @@ -1,6 +1,6 @@ {{ $articleClasses := "flex flex-wrap article" }} {{ if .Site.Params.list.showCards }} -{{ $articleClasses = delimit (slice $articleClasses "border border-neutral-200 dark:border-neutral-700 border-2 rounded-md") " " }} +{{ $articleClasses = delimit (slice $articleClasses "border border-neutral-200 dark:border-neutral-700 border-2 rounded-md backdrop-blur") " " }} {{ else }} {{ $articleClasses = delimit (slice $articleClasses "") " " }} {{ end }}