mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
551b5812d1 | ||
|
|
4204c0e40d | ||
|
|
b81790c034 | ||
|
|
ee838f0590 | ||
|
|
cae852186c | ||
|
|
e10fd01788 | ||
|
|
9d83e45d1c | ||
|
|
dae0a02883 | ||
|
|
83e8bbe902 | ||
|
|
687067fec0 | ||
|
|
333b79ddd1 | ||
|
|
71ed8c9b4f | ||
|
|
9360ff1207 | ||
|
|
d024ad961b | ||
|
|
f4b919681e | ||
|
|
a79219a6aa | ||
|
|
21b332dcd8 | ||
|
|
63af7e03d0 | ||
|
|
ead5a1a056 | ||
|
|
9987868ee5 | ||
|
|
064ef5eb9a | ||
|
|
2e097b8ec5 |
@@ -9,7 +9,6 @@
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
|
||||
|
||||
Blowfish is designed to be a powerful, lightweight theme for [Hugo](https://gohugo.io). It's built using Tailwind CSS with a clean and minimalist design that prioritises to your content. The theme is a fork of [Congo](https://github.com/jpanther/congo).
|
||||
|
||||
🌏 [Demo site](https://nunocoracao.github.io/blowfish/)
|
||||
@@ -140,3 +139,4 @@ If you're able to fix a bug or implement a new feature, I welcome PRs for this p
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
[module.hugoVersion]
|
||||
extended = true
|
||||
min = "0.87.0 "
|
||||
max = "0.106.0"
|
||||
max = "0.107.0"
|
||||
@@ -45,6 +45,7 @@ enableCodeCopy = true
|
||||
showHero = true
|
||||
heroStyle = "basic" # valid options: basic, big, background
|
||||
layoutBackgroundBlur = false # only used when heroStyle equals background
|
||||
layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
|
||||
showBreadcrumbs = true
|
||||
showDraftLabel = true
|
||||
showEdit = true
|
||||
@@ -65,6 +66,7 @@ enableCodeCopy = true
|
||||
[list]
|
||||
#showHero = true
|
||||
#heroStyle = "background" # valid options: basic, big, background
|
||||
#layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
|
||||
showBreadcrumbs = false
|
||||
showSummary = false
|
||||
#showViews = true
|
||||
|
||||
@@ -19,5 +19,6 @@ dateFormat = "2 January 2006"
|
||||
bio = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
|
||||
links = [
|
||||
{ twitter = "https://twitter.com/burufugu" },
|
||||
{ mastodon = "https://masto.ai/@blowfish" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
]
|
||||
|
||||
@@ -35,18 +35,29 @@
|
||||
url = "http://tee.pub/lic/qwSlWVBL5zc"
|
||||
weight = 50
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
url = "https://github.com/nunocoracao/blowfish"
|
||||
weight = 60
|
||||
#[[main]]
|
||||
# name = "Test"
|
||||
# pageRef = "pagTest"
|
||||
# weight = 1000
|
||||
|
||||
[[main]]
|
||||
identifier = "twitter"
|
||||
pre = "twitter"
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 60
|
||||
|
||||
[[main]]
|
||||
identifier = "mastodon"
|
||||
pre = "mastodon"
|
||||
url = "https://masto.ai/@blowfish"
|
||||
weight = 70
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
url = "https://github.com/nunocoracao/blowfish"
|
||||
weight = 80
|
||||
|
||||
|
||||
# -- Footer Menu --
|
||||
# The footer menu is displayed at the bottom of the page, just before
|
||||
|
||||
@@ -65,6 +65,7 @@ mainSections = ["docs"]
|
||||
[list]
|
||||
showHero = true
|
||||
heroStyle = "background" # valid options: basic, big, background
|
||||
layoutBackgroundHeaderSpace = false
|
||||
showBreadcrumbs = false
|
||||
showSummary = false
|
||||
showViews = true
|
||||
|
||||
@@ -161,6 +161,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|
||||
| `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.layoutBackgroundBlur` | `false` | Makes the background image in the background article heroStyle blur with the scroll |
|
||||
| `article.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. |
|
||||
| `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. |
|
||||
@@ -180,6 +181,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|
||||
| `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.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. |
|
||||
| `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). |
|
||||
| `list.showViews` | `false` | Whether or not list views are displayed. This requires firebase integrations to be enabled, look below. |
|
||||
|
||||
@@ -50,4 +50,5 @@ Front matter parameter default values are inherited from the theme's [base confi
|
||||
|`series_order`|_Not set_|Number of the article within the series.|
|
||||
|`summary`|Auto generated using `summaryLength` (see [site configuration]({{< ref "configuration#site-configuration" >}}))|When `showSummary` is enabled, this is the Markdown string to be used as the summary for this article.|
|
||||
|`xml`|`true` unless excluded by `sitemap.excludedKinds`|Whether or not this article is included in the generated `/sitemap.xml` file.|
|
||||
|`layoutBackgroundHeaderSpace`|`true`|Add space between the header and the body.|
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
19
exampleSite/content/pagtest/_index.md
Normal file
19
exampleSite/content/pagtest/_index.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: "TEST"
|
||||
date: 2022-06-13T20:55:37+01:00
|
||||
draft: true
|
||||
|
||||
showDate : false
|
||||
showDateUpdated : false
|
||||
showHeadingAnchors : false
|
||||
showPagination : false
|
||||
showReadingTime : false
|
||||
showTableOfContents : true
|
||||
showTaxonomies : false
|
||||
showWordCount : false
|
||||
showSummary : false
|
||||
sharingLinks : false
|
||||
|
||||
cardView: false
|
||||
---
|
||||
|
||||
7
exampleSite/content/pagtest/file1 copy 10.md
Normal file
7
exampleSite/content/pagtest/file1 copy 10.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 11.md
Normal file
7
exampleSite/content/pagtest/file1 copy 11.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 12.md
Normal file
7
exampleSite/content/pagtest/file1 copy 12.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 13.md
Normal file
7
exampleSite/content/pagtest/file1 copy 13.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 14.md
Normal file
7
exampleSite/content/pagtest/file1 copy 14.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 15.md
Normal file
7
exampleSite/content/pagtest/file1 copy 15.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 16.md
Normal file
7
exampleSite/content/pagtest/file1 copy 16.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 17.md
Normal file
7
exampleSite/content/pagtest/file1 copy 17.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 18.md
Normal file
7
exampleSite/content/pagtest/file1 copy 18.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 19.md
Normal file
7
exampleSite/content/pagtest/file1 copy 19.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 2.md
Normal file
7
exampleSite/content/pagtest/file1 copy 2.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 20.md
Normal file
7
exampleSite/content/pagtest/file1 copy 20.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 21.md
Normal file
7
exampleSite/content/pagtest/file1 copy 21.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 22.md
Normal file
7
exampleSite/content/pagtest/file1 copy 22.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 23.md
Normal file
7
exampleSite/content/pagtest/file1 copy 23.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 24.md
Normal file
7
exampleSite/content/pagtest/file1 copy 24.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 25.md
Normal file
7
exampleSite/content/pagtest/file1 copy 25.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 26.md
Normal file
7
exampleSite/content/pagtest/file1 copy 26.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 27.md
Normal file
7
exampleSite/content/pagtest/file1 copy 27.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 28.md
Normal file
7
exampleSite/content/pagtest/file1 copy 28.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 3.md
Normal file
7
exampleSite/content/pagtest/file1 copy 3.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 4.md
Normal file
7
exampleSite/content/pagtest/file1 copy 4.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 5.md
Normal file
7
exampleSite/content/pagtest/file1 copy 5.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 6.md
Normal file
7
exampleSite/content/pagtest/file1 copy 6.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 7.md
Normal file
7
exampleSite/content/pagtest/file1 copy 7.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 8.md
Normal file
7
exampleSite/content/pagtest/file1 copy 8.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy 9.md
Normal file
7
exampleSite/content/pagtest/file1 copy 9.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1 copy.md
Normal file
7
exampleSite/content/pagtest/file1 copy.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
7
exampleSite/content/pagtest/file1.md
Normal file
7
exampleSite/content/pagtest/file1.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: "Charts"
|
||||
date: 2019-03-06
|
||||
summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
|
||||
tags: ["chart", "sample", "graph", "shortcodes"]
|
||||
showDate: false
|
||||
---
|
||||
@@ -44,6 +44,7 @@ Real websites that are built with Blowfish.
|
||||
| [spelucin.me](https://spelucin.me) | Personal site |
|
||||
| [insidemordecai.com](https://insidemordecai.com) | Personal site |
|
||||
| [sajayprakash.com](https://sajayprakash.com) | Personal site |
|
||||
| [jamesdixon.dev](https://jamesdixon.dev) | Personal site |
|
||||
|
||||
{{< alert >}}
|
||||
|
||||
|
||||
1
exampleSite/layouts/partials/extend-footer.html
Normal file
1
exampleSite/layouts/partials/extend-footer.html
Normal file
@@ -0,0 +1 @@
|
||||
<a rel="me" href="https://masto.ai/@blowfish"></a>
|
||||
@@ -1,5 +1,6 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ .Scratch.Set "scope" "list" }}
|
||||
{{ if .Site.Params.list.showHero | default false }}
|
||||
{{ $heroStyle := print "partials/hero/" .Site.Params.list.heroStyle ".html" }}
|
||||
{{ if templates.Exists $heroStyle }}
|
||||
@@ -226,7 +227,6 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ else }}
|
||||
@@ -236,4 +236,8 @@
|
||||
</p>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{{ define "main" }}
|
||||
{{ .Scratch.Set "scope" "single" }}
|
||||
|
||||
<article>
|
||||
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }}
|
||||
{{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }}
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
<li class="mb-1">
|
||||
<a {{ if or (strings.HasPrefix .URL "http:") (strings.HasPrefix .URL "https:") }} target="_blank"{{ end }} class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||
href="{{ .URL }}" title="{{ .Title }}">
|
||||
{{ partial "icon.html" .Pre }}
|
||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" .Pre }}</span>
|
||||
{{ if and .Pre .Name }} {{ end }}
|
||||
{{ .Name | markdownify | emojify }}
|
||||
</a>
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
target="_blank" {{ end }}
|
||||
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||
href="{{ .URL }}" title="{{ .Title }}">
|
||||
{{ partial "icon.html" .Pre }}
|
||||
<span class="inline-block align-text-bottom">{{ partial "icon.html" .Pre }}</span>
|
||||
{{ if and .Pre .Name }} {{ end }}
|
||||
{{ .Name | markdownify | emojify }}
|
||||
</a>
|
||||
|
||||
@@ -2,9 +2,16 @@
|
||||
{{- $featured := $images.GetMatch "*feature*" -}}
|
||||
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
|
||||
{{- if not $featured }}{{ with .Site.Params.defaultBackgroundImage }}{{ $featured = resources.Get . }}{{ end }}{{ end -}}
|
||||
{{ $isParentList := eq (.Scratch.Get "scope") "list" }}
|
||||
{{ $shouldAddHeaderSpace := $.Params.layoutBackgroundHeaderSpace | default (or
|
||||
(and ($.Site.Params.article.layoutBackgroundHeaderSpace | default true) (not $isParentList))
|
||||
(and ($.Site.Params.list.layoutBackgroundHeaderSpace | default true) ($isParentList))
|
||||
) }}
|
||||
{{- with $featured -}}
|
||||
{{ with .Resize "1200x" }}
|
||||
{{ if $shouldAddHeaderSpace | default true}}
|
||||
<div id="hero" class="h-[150px] md:h-[200px]"></div>
|
||||
{{ end }}
|
||||
<div class="fixed inset-x-0 top-0 h-[800px] single_hero_background nozoom"
|
||||
style="background-image:url({{ .RelPermalink }});">
|
||||
<div class="absolute inset-0 bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal">
|
||||
|
||||
@@ -1,39 +1,49 @@
|
||||
{{ $paginator := .Paginator }}
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
<ul class="flex flex-row mt-8">
|
||||
{{ if $paginator.HasPrev }}
|
||||
<li>
|
||||
<a
|
||||
href="{{ $paginator.Prev.URL }}"
|
||||
{{- if gt .Paginator.TotalPages 1 -}}
|
||||
<ul class="flex flex-row mt-8 justify-center">
|
||||
{{- .Scratch.Set "paginator.ellipsed" false -}}
|
||||
{{ if $.Paginator.HasPrev }}
|
||||
<li>
|
||||
<a
|
||||
href="{{ $.Paginator.Prev.URL }}"
|
||||
class="mx-1 block min-w-[1.8rem] rounded text-center hover:bg-primary-600 hover:text-neutral"
|
||||
rel="prev"
|
||||
>
|
||||
←
|
||||
</a>
|
||||
</li>
|
||||
>←</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ range $paginator.Pagers }}
|
||||
<li>
|
||||
<a
|
||||
href="{{ .URL }}"
|
||||
class="{{ if eq . $paginator }}
|
||||
bg-primary-200 dark:bg-primary-400 dark:text-neutral-800
|
||||
{{ end }} mx-1 block min-w-[1.8rem] rounded text-center hover:bg-primary-600 hover:text-neutral"
|
||||
>
|
||||
{{ .PageNumber }}
|
||||
</a>
|
||||
{{- range $.Paginator.Pagers -}}
|
||||
{{- $right := sub .TotalPages .PageNumber -}}
|
||||
{{- $showNumber := or (le .PageNumber 1) (eq $right 0) -}}
|
||||
{{- $showNumber := or $showNumber (and (gt .PageNumber (sub $.Paginator.PageNumber 3)) (lt .PageNumber (add $.Paginator.PageNumber 3))) -}}
|
||||
{{- if $showNumber -}}
|
||||
{{- $.Scratch.Set "paginator.ellipsed" false -}}
|
||||
{{- $.Scratch.Set "paginator.shouldEllipse" false -}}
|
||||
{{- else -}}
|
||||
{{- $.Scratch.Set "paginator.shouldEllipse" (not ($.Scratch.Get "paginator.ellipsed") ) -}}
|
||||
{{- $.Scratch.Set "paginator.ellipsed" true -}}
|
||||
{{- end -}}
|
||||
{{- if $showNumber -}}
|
||||
<li>
|
||||
<a
|
||||
href="{{ .URL }}"
|
||||
class="{{ if eq . $.Paginator }}
|
||||
bg-primary-200 dark:bg-primary-400 dark:text-neutral-800
|
||||
{{ end }} mx-1 block min-w-[1.8rem] rounded text-center hover:bg-primary-600 hover:text-neutral"
|
||||
>{{ .PageNumber }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ if $paginator.HasNext }}
|
||||
<li>
|
||||
<a
|
||||
href="{{ $paginator.Next.URL }}"
|
||||
{{- else if ($.Scratch.Get "paginator.shouldEllipse") -}}
|
||||
<li class="page-item ">
|
||||
<span class="page-link" aria-hidden="true">…</span>
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ if $.Paginator.HasNext }}
|
||||
<li>
|
||||
<a
|
||||
href="{{ $.Paginator.Next.URL }}"
|
||||
class="mx-1 block min-w-[1.8rem] rounded text-center hover:bg-primary-600 hover:text-neutral"
|
||||
rel="next"
|
||||
>
|
||||
→
|
||||
</a>
|
||||
</li>
|
||||
>→</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
18
package-lock.json
generated
18
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "hugo-blowfish-theme",
|
||||
"version": "2.14.0",
|
||||
"version": "2.14.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "hugo-blowfish-theme",
|
||||
"version": "2.14.0",
|
||||
"version": "2.14.1",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -21,7 +21,7 @@
|
||||
"fuse.js": "^6.6.2",
|
||||
"katex": "^0.16.3",
|
||||
"mermaid": "^9.2.2",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier": "^2.8.0",
|
||||
"prettier-plugin-go-template": "^0.0.13",
|
||||
"prettier-plugin-tailwindcss": "^0.1.13",
|
||||
"rimraf": "^3.0.2",
|
||||
@@ -1673,9 +1673,9 @@
|
||||
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
|
||||
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
|
||||
"version": "2.8.0",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz",
|
||||
"integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin-prettier.js"
|
||||
@@ -3300,9 +3300,9 @@
|
||||
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
|
||||
},
|
||||
"prettier": {
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
|
||||
"integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
|
||||
"version": "2.8.0",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz",
|
||||
"integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==",
|
||||
"dev": true
|
||||
},
|
||||
"prettier-plugin-go-template": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hugo-blowfish-theme",
|
||||
"version": "2.14.0",
|
||||
"version": "2.15.0",
|
||||
"description": "Blowfish theme for Hugo",
|
||||
"scripts": {
|
||||
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
|
||||
@@ -39,7 +39,7 @@
|
||||
"fuse.js": "^6.6.2",
|
||||
"katex": "^0.16.3",
|
||||
"mermaid": "^9.2.2",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier": "^2.8.0",
|
||||
"prettier-plugin-go-template": "^0.0.13",
|
||||
"prettier-plugin-tailwindcss": "^0.1.13",
|
||||
"rimraf": "^3.0.2",
|
||||
|
||||
Reference in New Issue
Block a user