added support for cover images in lists

This commit is contained in:
Nuno Coração 2022-11-06 22:57:15 +00:00
parent 1ea543da24
commit afd1928cd2
32 changed files with 58 additions and 6 deletions

View file

@ -1425,6 +1425,10 @@ select {
top: 5rem; top: 5rem;
} }
.z-\[500\] {
z-index: 500;
}
.z-50 { .z-50 {
z-index: 50; z-index: 50;
} }

View file

@ -20,22 +20,27 @@
pageRef = "samples" pageRef = "samples"
weight = 20 weight = 20
[[main]]
name = "Showcase"
pageRef = "examples"
weight = 30
[[main]] [[main]]
name = "Users" name = "Users"
pageRef = "users" pageRef = "users"
weight = 30 weight = 40
[[main]] [[main]]
identifier = "github" identifier = "github"
pre = "github" pre = "github"
url = "https://github.com/nunocoracao/blowfish" url = "https://github.com/nunocoracao/blowfish"
weight = 40 weight = 50
[[main]] [[main]]
identifier = "twitter" identifier = "twitter"
pre = "twitter" pre = "twitter"
url = "https://twitter.com/burufugu" url = "https://twitter.com/burufugu"
weight = 50 weight = 60
# -- Footer Menu -- # -- Footer Menu --

View file

@ -12,8 +12,6 @@ cascade:
Simple, yet powerful. Learn how to use Blowfish and its features. Simple, yet powerful. Learn how to use Blowfish and its features.
{{< /lead >}} {{< /lead >}}
![Featured Blowfish image](featured.png)
This section contains everything you need to know about Blowfish. If you're new, check out the [Installation]({{< ref "docs/installation" >}}) guide to begin or visit the [Samples]({{< ref "samples" >}}) section to see what Blowfish can do. This section contains everything you need to know about Blowfish. If you're new, check out the [Installation]({{< ref "docs/installation" >}}) guide to begin or visit the [Samples]({{< ref "samples" >}}) section to see what Blowfish can do.
--- ---

View file

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

View file

@ -0,0 +1,19 @@
---
title: "Showcase"
description: "See what's possible with Blowfish."
cascade:
showEdit: false
showReadingTime: false
showSummary: true
showLikes: false
showViews: false
---
{{< lead >}}
See what's possible with Blowfish.
{{< /lead >}}
This section contains links to example templates and pages created using Blowfish to get you inspired.
---

View file

@ -0,0 +1,8 @@
---
title: "Blowfish Template - GitHub Repo"
date: 2022-11-06
externalUrl: "https://github.com/nunocoracao/blowfish_template"
summary: "A simple template project to get you started. Blowfish theme already installed with a simple github pages action configured."
---
A simple template project to get you started. Blowfish theme already installed with a simple github pages action configured.

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View file

@ -0,0 +1,8 @@
---
title: "Blowfish Template"
date: 2022-11-06
externalUrl: "https://nunocoracao.github.io/blowfish_template/"
summary: "A simple template project to get you started. Blowfish theme already installed with a simple github pages action configured."
---
A simple template project to get you started. Blowfish theme already installed with a simple github pages action configured.

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 KiB

View file

@ -1,4 +1,14 @@
{{ define "main" }} {{ define "main" }}
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }}
{{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }}
{{ if templates.Exists $heroStyle }}
{{ partial $heroStyle . }}
{{ else }}
{{ partial "partials/hero/basic.html" . }}
{{ end }}
{{- end -}}
{{ $toc := and (.Params.showTableOfContents | default (.Site.Params.list.showTableOfContents | default false)) (in {{ $toc := and (.Params.showTableOfContents | default (.Site.Params.list.showTableOfContents | default false)) (in
.TableOfContents "<ul") }} <header> .TableOfContents "<ul") }} <header>
{{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }} {{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }}

View file

@ -1,6 +1,6 @@
<div <div
id="search-wrapper" id="search-wrapper"
class="invisible fixed inset-0 z-50 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm dark:bg-neutral-900/50 sm:p-6 md:p-[10vh] lg:p-[12vh]" class="invisible z-[500] fixed inset-0 z-50 flex h-screen w-screen cursor-default flex-col bg-neutral-500/50 p-4 backdrop-blur-sm dark:bg-neutral-900/50 sm:p-6 md:p-[10vh] lg:p-[12vh]"
data-url="{{ "" | absLangURL }}" data-url="{{ "" | absLangURL }}"
> >
<div <div