Merge pull request #923 from nunocoracao/dev

🔖 v2.40.1
This commit is contained in:
Nuno Coração 2023-08-17 22:16:38 +01:00 committed by GitHub
commit 6e0164d0e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 10 deletions

View file

@ -22,7 +22,7 @@ defaultFeaturedImage = "/img/ocean.jpg"
highlightCurrentMenuArea = true
smartTOC = true
smartTOCHideUnfocusedChildren = true
smartTOCHideUnfocusedChildren = false
[header]
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur

View file

@ -71,6 +71,7 @@ The theme currently supports the following languages by default:
| 🇮🇩 Indonesian | `id` |
| 🇮🇹 Italian | `it` |
| 🇯🇵 Japanese | `ja` |
| 🇰🇷 Korean | `ko` |
| 🇵🇱 Polish | `pl` |
| 🇧🇷 Portuguese (Brazil) | `pt-br` |
| 🇵🇹 Portuguese (Portugal) | `pt-pt` |
@ -110,8 +111,8 @@ The default file can be used as a template to create additional languages, or re
#### Params
<!-- prettier-ignore-start -->
| Name | Default | Description |
| --------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name | Default | Description |
| ---------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `params.displayName` | `"EN"` | The name used when the language appears on the website. |
| `params.isoCode` | `"en"` | The ISO language code for HTML metadata purposes. It can be a top-level language (ie. `en`) or a sub-variant (ie. `en-AU`). |
| `params.rtl` | `false` | Whether or not this is a RTL language. Set to `true` to reflow content from right-to-left. Blowfish fully supports using RTL and LTR languages at the same time and will dynamically adjust to both. |

View file

@ -1,5 +1,4 @@
{{ $time := now.UnixNano }}
{{ $id := delimit (slice "gallery" $time) "-" }}
{{ $id := delimit (slice "carousel" .Ordinal now.UnixNano) "-" }}
{{ $aspect := default "16-9" (.Get "aspectRatio") }}
{{ $images := .Page.Resources.Match (.Get "images") }}
{{ $interval := default "2000" (.Get "interval") }}

View file

@ -1,5 +1,5 @@
{{ $id := delimit (slice "chart" .Ordinal now.UnixNano) "-" }}
<div class="chart">
{{ $id := delimit (shuffle (seq 1 9)) "" }}
<canvas id="{{ $id }}"></canvas>
<script type="text/javascript">
window.addEventListener("DOMContentLoaded", (event) => {

View file

@ -1,4 +1,4 @@
{{ $id := delimit (slice "gallery" .Ordinal) "-" }}
{{ $id := delimit (slice "gallery" .Ordinal now.UnixNano) "-" }}
<div id="{{ $id }}">
{{ .Inner }}

View file

@ -13,8 +13,7 @@
{{- end -}}
{{- $tag := .Get "tag" | default "div" -}}
{{ $time := now.UnixNano }}
{{ $id := delimit (slice "typeit" $time) "-" }}
{{ $id := delimit (slice "typeit" .Ordinal now.UnixNano) "-" }}
{{- $attrs := printf `id="%v"` $id -}}
{{- with $classList -}}

View file

@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.40.0",
"version": "2.40.1",
"description": "Blowfish theme for Hugo",
"scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall",