diff --git a/assets/icons/chess-com.svg b/assets/icons/chess-com.svg new file mode 100644 index 00000000..23c0a3f8 --- /dev/null +++ b/assets/icons/chess-com.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/lichess.svg b/assets/icons/lichess.svg new file mode 100644 index 00000000..d4d06621 --- /dev/null +++ b/assets/icons/lichess.svg @@ -0,0 +1 @@ + diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index a1d8715a..67068397 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -28,6 +28,7 @@ title = "Blowfish" # { apple = "https://www.apple.com" }, # { blogger = "https://username.blogspot.com/" }, # { bluesky = "https://bsky.app/profile/username" }, +# { chess-com = "https://www.chess.com/member/username" }, # { codepen = "https://codepen.io/username" }, # { dev = "https://dev.to/username" }, # { discord = "https://discord.gg/invitecode" }, @@ -46,6 +47,7 @@ title = "Blowfish" # { keyoxide = "https://keyoxide.org/URI" }, # { kickstarter = "https://www.kickstarter.com/profile/username" }, # { lastfm = "https://lastfm.com/user/username" }, +# { lichess = "https://lichess.org/@/username" }, # { linkedin = "https://linkedin.com/in/username" }, # { mastodon = "https://mastodon.instance/@username" }, # { matrix = "https://matrix.to/#/URI" }, diff --git a/config/_default/params.toml b/config/_default/params.toml index 2dfa384b..d7693fdd 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -88,6 +88,7 @@ forgejoDefaultServer = "https://v11.next.forgejo.org" showHero = false # heroStyle = "basic" # valid options: basic, big, background, thumbAndBackground layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + # layoutBackgroundBlurStyle = "fade" # valid options: fade, classic. Only used when heroStyle equals background layoutBackgroundHeaderSpace = true # only used when heroStyle equals background showBreadcrumbs = false showDraftLabel = true @@ -118,6 +119,7 @@ forgejoDefaultServer = "https://v11.next.forgejo.org" # featureImageHover = false # subtle zoom on card thumbnails on hover # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + # layoutBackgroundBlurStyle = "fade" # valid options: fade, classic. Only used when heroStyle equals background layoutBackgroundHeaderSpace = true # only used when heroStyle equals background showBreadcrumbs = false showSummary = false @@ -139,6 +141,7 @@ forgejoDefaultServer = "https://v11.next.forgejo.org" showHero = false # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + # layoutBackgroundBlurStyle = "fade" # valid options: fade, classic. Only used when heroStyle equals background layoutBackgroundHeaderSpace = true # only used when heroStyle equals background showBreadcrumbs = false showViews = false @@ -150,6 +153,7 @@ forgejoDefaultServer = "https://v11.next.forgejo.org" showHero = false # heroStyle = "background" # valid options: basic, big, background, thumbAndBackground layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground + # layoutBackgroundBlurStyle = "fade" # valid options: fade, classic. Only used when heroStyle equals background layoutBackgroundHeaderSpace = true # only used when heroStyle equals background showBreadcrumbs = false showViews = false diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index f89c1adf..43187ad9 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -288,6 +288,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`, `thumbAndBackground`. Effective only if `article.showHero = true`. | | `article.layoutBackgroundBlur` | `true` | Makes the background image in the background article heroStyle blur with the scroll. Only used when `heroStyle` equals `background` or `thumbAndBackground`. | +| `article.layoutBackgroundBlurStyle` | `fade` | Valid options are `fade` (the hero image fades out as you scroll) or `classic` (a blurred panel stays fixed behind the whole page). Only used when `heroStyle` equals `background` and `layoutBackgroundBlur` is enabled. | | `article.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. Only used when `heroStyle` equals `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`. | @@ -321,6 +322,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`, `thumbAndBackground`. Effective only if `list.showHero = true`. | | `list.layoutBackgroundBlur` | `true` | Makes the background image in the background list heroStyle blur with the scroll. Only used when `heroStyle` equals `background` or `thumbAndBackground`. | +| `list.layoutBackgroundBlurStyle` | `fade` | Valid options are `fade` (the hero image fades out as you scroll) or `classic` (a blurred panel stays fixed behind the whole page). Only used when `heroStyle` equals `background` and `layoutBackgroundBlur` is enabled. | | `list.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. Only used when `heroStyle` equals `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. | @@ -349,6 +351,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | `taxonomy.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each taxonomy page. | | `taxonomy.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`, `thumbAndBackground`. Effective only if `taxonomy.showHero = true`. | | `taxonomy.layoutBackgroundBlur` | `true` | Makes the background image in the background taxonomy heroStyle blur with the scroll. Only used when `heroStyle` equals `background` or `thumbAndBackground`. | +| `taxonomy.layoutBackgroundBlurStyle` | `fade` | Valid options are `fade` (the hero image fades out as you scroll) or `classic` (a blurred panel stays fixed behind the whole page). Only used when `heroStyle` equals `background` and `layoutBackgroundBlur` is enabled. | | `taxonomy.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. Only used when `heroStyle` equals `background`. | | `taxonomy.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the taxonomy header. | | `taxonomy.showViews` | `false` | Whether or not article views are displayed. This requires firebase integrations to be enabled, look below. | @@ -363,6 +366,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | `term.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each term page. | | `term.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`, `thumbAndBackground`. Effective only if `term.showHero = true`. | | `term.layoutBackgroundBlur` | `true` | Makes the background image in the background term heroStyle blur with the scroll. Only used when `heroStyle` equals `background` or `thumbAndBackground`. | +| `term.layoutBackgroundBlurStyle` | `fade` | Valid options are `fade` (the hero image fades out as you scroll) or `classic` (a blurred panel stays fixed behind the whole page). Only used when `heroStyle` equals `background` and `layoutBackgroundBlur` is enabled. | | `term.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. Only used when `heroStyle` equals `background`. | | `term.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the term header. | | `term.showViews` | `false` | Whether or not article views are displayed. This requires firebase integrations to be enabled, look below. | diff --git a/exampleSite/content/users/users.json b/exampleSite/content/users/users.json index a71a282b..c63fc2e3 100644 --- a/exampleSite/content/users/users.json +++ b/exampleSite/content/users/users.json @@ -1172,6 +1172,15 @@ ] }, { + "title": "libreleo.com", + "url": "https://libreleo.com/", + "source": "n/a", + "tags": [ + "Blog", + "Personal site" + ] + }, + { "title": "merox.dev", "url": "https://merox.dev", "source": "n/a", diff --git a/layouts/partials/hero/background.html b/layouts/partials/hero/background.html index c22516ec..50efd835 100644 --- a/layouts/partials/hero/background.html +++ b/layouts/partials/hero/background.html @@ -64,6 +64,18 @@ (and ($.Site.Params.term.layoutBackgroundHeaderSpace | default true) (eq $scope "term")) ) }} +{{ $siteBlurStyle := "fade" }} +{{ if eq $scope "single" }} + {{ $siteBlurStyle = $.Site.Params.article.layoutBackgroundBlurStyle | default "fade" }} +{{ else if eq $scope "list" }} + {{ $siteBlurStyle = $.Site.Params.list.layoutBackgroundBlurStyle | default "fade" }} +{{ else if eq $scope "terms" }} + {{ $siteBlurStyle = $.Site.Params.taxonomy.layoutBackgroundBlurStyle | default "fade" }} +{{ else if eq $scope "term" }} + {{ $siteBlurStyle = $.Site.Params.term.layoutBackgroundBlurStyle | default "fade" }} +{{ end }} +{{ $blurStyle := $.Params.layoutBackgroundBlurStyle | default $siteBlurStyle }} +{{ $isClassic := eq $blurStyle "classic" }} {{- with $featuredURL -}} {{ if $shouldAddHeaderSpace | default true }} @@ -71,7 +83,7 @@ {{ end }}