diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 6a5cfb8f..71027536 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1425,6 +1425,10 @@ select { top: 5rem; } +.z-\[500\] { + z-index: 500; +} + .z-50 { z-index: 50; } diff --git a/exampleSite/config/_default/menus.en.toml b/exampleSite/config/_default/menus.en.toml index cd5ffa91..18d4bc52 100644 --- a/exampleSite/config/_default/menus.en.toml +++ b/exampleSite/config/_default/menus.en.toml @@ -20,22 +20,27 @@ pageRef = "samples" weight = 20 +[[main]] + name = "Showcase" + pageRef = "examples" + weight = 30 + [[main]] name = "Users" pageRef = "users" - weight = 30 + weight = 40 [[main]] identifier = "github" pre = "github" url = "https://github.com/nunocoracao/blowfish" - weight = 40 + weight = 50 [[main]] identifier = "twitter" pre = "twitter" url = "https://twitter.com/burufugu" - weight = 50 + weight = 60 # -- Footer Menu -- diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 32446b87..29bcb929 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -62,6 +62,8 @@ mainSections = ["docs"] sharingLinks = [ "linkedin", "twitter", "whatsapp", "pinterest", "reddit", "facebook", "email"] [list] + showHero = true + heroStyle = "background" # valid options: basic, big, background showBreadcrumbs = false showSummary = false showTableOfContents = true diff --git a/exampleSite/content/docs/_index.md b/exampleSite/content/docs/_index.md index 0a25eacb..26cdfff9 100755 --- a/exampleSite/content/docs/_index.md +++ b/exampleSite/content/docs/_index.md @@ -12,8 +12,6 @@ cascade: Simple, yet powerful. Learn how to use Blowfish and its features. {{< /lead >}} - - 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. --- diff --git a/exampleSite/content/docs/featured.png b/exampleSite/content/docs/blowfish.png similarity index 100% rename from exampleSite/content/docs/featured.png rename to exampleSite/content/docs/blowfish.png diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 68ab8c27..9c6ae73b 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -155,8 +155,8 @@ Many of the article defaults here can be overridden on a per article basis by sp | `article.showLikes` | `false` | Whether or not article likes are displayed. This requires firebase integrations to be enabled, look below. | | `article.showDateUpdated` | `false` | Whether or not the dates articles were updated are displayed. | | `article.showAuthor` | `true` | Whether or not the author box is displayed in the article footer. | -| `article.showHero` | `true` | Whether the thumbnail image will be shown as a hero image within each article page. | -| `heroStyle` | `basic` | Style to display the hero image, valid options are: `basic`, `big`, `background`. | +| `article.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each article page. | +| `article.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`. | | `article.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the article header. | | `article.showDraftLabel` | `true` | Whether or not the draft indicator is shown next to articles when site is built with `--buildDrafts`. | | `article.showEdit` | `false` | Whether or not the link to edit the article content should be displayed. | @@ -173,6 +173,8 @@ Many of the article defaults here can be overridden on a per article basis by sp | `article.showWordCount` | `false` | Whether or not article word counts are displayed. | | `article.showComments` | `false` | Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer. | | `article.sharingLinks` | _Not set_ | Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed. | +| `list.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each list page. | +| `list.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`. | | `list.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the header on list pages. | | `list.showTableOfContents` | `false` | Whether or not the table of contents is displayed on list pages. | | `list.showSummary` | `false` | Whether or not article summaries are displayed on list pages. If a summary is not provided in the [front matter]({{< ref "front-matter" >}}), one will be auto generated using the `summaryLength` parameter in the [site configuration](#site-configuration). | diff --git a/exampleSite/content/docs/cover.jpg b/exampleSite/content/docs/cover.jpg new file mode 100644 index 00000000..6352a781 Binary files /dev/null and b/exampleSite/content/docs/cover.jpg differ diff --git a/exampleSite/content/examples/_index.md b/exampleSite/content/examples/_index.md new file mode 100755 index 00000000..050965d9 --- /dev/null +++ b/exampleSite/content/examples/_index.md @@ -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. + +--- diff --git a/exampleSite/content/examples/blowfish-template-repo/_index.md b/exampleSite/content/examples/blowfish-template-repo/_index.md new file mode 100755 index 00000000..30379b31 --- /dev/null +++ b/exampleSite/content/examples/blowfish-template-repo/_index.md @@ -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. diff --git a/exampleSite/content/examples/blowfish-template-repo/cover.png b/exampleSite/content/examples/blowfish-template-repo/cover.png new file mode 100644 index 00000000..e86997b9 Binary files /dev/null and b/exampleSite/content/examples/blowfish-template-repo/cover.png differ diff --git a/exampleSite/content/examples/blowfish-template/_index.md b/exampleSite/content/examples/blowfish-template/_index.md new file mode 100755 index 00000000..7e4e3a6b --- /dev/null +++ b/exampleSite/content/examples/blowfish-template/_index.md @@ -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. diff --git a/exampleSite/content/examples/blowfish-template/cover.png b/exampleSite/content/examples/blowfish-template/cover.png new file mode 100644 index 00000000..e86997b9 Binary files /dev/null and b/exampleSite/content/examples/blowfish-template/cover.png differ diff --git a/exampleSite/content/examples/cover.jpg b/exampleSite/content/examples/cover.jpg new file mode 100644 index 00000000..6352a781 Binary files /dev/null and b/exampleSite/content/examples/cover.jpg differ diff --git a/exampleSite/content/samples/cover.jpg b/exampleSite/content/samples/cover.jpg new file mode 100644 index 00000000..6352a781 Binary files /dev/null and b/exampleSite/content/samples/cover.jpg differ diff --git a/exampleSite/content/users.md b/exampleSite/content/users/_index.md similarity index 100% rename from exampleSite/content/users.md rename to exampleSite/content/users/_index.md diff --git a/exampleSite/content/users/cover.jpg b/exampleSite/content/users/cover.jpg new file mode 100644 index 00000000..6352a781 Binary files /dev/null and b/exampleSite/content/users/cover.jpg differ diff --git a/exampleSite/resources/_gen/images/docs/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/docs/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..e2dcb141 Binary files /dev/null and b/exampleSite/resources/_gen/images/docs/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/docs/feature_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/docs/feature_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..e2dcb141 Binary files /dev/null and b/exampleSite/resources/_gen/images/docs/feature_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/docs/featured_hud8adc593272aed8f1224d3593fe9b187_99792_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/docs/featured_hud8adc593272aed8f1224d3593fe9b187_99792_1200x0_resize_box_3.png new file mode 100644 index 00000000..9c882c76 Binary files /dev/null and b/exampleSite/resources/_gen/images/docs/featured_hud8adc593272aed8f1224d3593fe9b187_99792_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/example/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/example/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..e2dcb141 Binary files /dev/null and b/exampleSite/resources/_gen/images/example/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template copy/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template copy/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png new file mode 100644 index 00000000..2380ecb9 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template copy/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template copy/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template copy/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png new file mode 100644 index 00000000..54de70a8 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template copy/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png new file mode 100644 index 00000000..2380ecb9 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png new file mode 100644 index 00000000..54de70a8 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hud8adc593272aed8f1224d3593fe9b187_99792_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hud8adc593272aed8f1224d3593fe9b187_99792_1200x0_resize_box_3.png new file mode 100644 index 00000000..9c882c76 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hud8adc593272aed8f1224d3593fe9b187_99792_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hud8adc593272aed8f1224d3593fe9b187_99792_600x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hud8adc593272aed8f1224d3593fe9b187_99792_600x0_resize_box_3.png new file mode 100644 index 00000000..14bd2f52 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template-repo/cover_hud8adc593272aed8f1224d3593fe9b187_99792_600x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png new file mode 100644 index 00000000..2380ecb9 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_1200x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/blowfish-template/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png b/exampleSite/resources/_gen/images/examples/blowfish-template/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png new file mode 100644 index 00000000..54de70a8 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/blowfish-template/cover_hu4592ac3fe4dd4ca45e75cc0313416524_51117_600x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/examples/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/examples/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..e2dcb141 Binary files /dev/null and b/exampleSite/resources/_gen/images/examples/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/samples/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/samples/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..e2dcb141 Binary files /dev/null and b/exampleSite/resources/_gen/images/samples/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg new file mode 100644 index 00000000..e2dcb141 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_1200x0_resize_q75_box.jpg differ diff --git a/exampleSite/resources/_gen/images/users/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_600x0_resize_q75_box.jpg b/exampleSite/resources/_gen/images/users/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_600x0_resize_q75_box.jpg new file mode 100644 index 00000000..6e0a8786 Binary files /dev/null and b/exampleSite/resources/_gen/images/users/cover_hu3d03a01dcc18bc5be0e67db3d8d209a6_5000159_600x0_resize_q75_box.jpg differ diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ab916162..ec9039eb 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,10 +1,20 @@ {{ define "main" }} + +{{ if .Site.Params.list.showHero | default false }} +{{ $heroStyle := print "partials/hero/" .Site.Params.list.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 .TableOfContents "