Skip to content

Commit

Permalink
Merge pull request nunocoracao#923 from nunocoracao/dev
Browse files Browse the repository at this point in the history
🔖 v2.40.1
  • Loading branch information
nunocoracao authored Aug 17, 2023
2 parents dc1ff0f + 45819c5 commit 6e0164d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions exampleSite/content/docs/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down Expand Up @@ -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. |
Expand Down
3 changes: 1 addition & 2 deletions layouts/shortcodes/carousel.html
Original file line number Diff line number Diff line change
@@ -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") }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/chart.html
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/gallery.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $id := delimit (slice "gallery" .Ordinal) "-" }}
{{ $id := delimit (slice "gallery" .Ordinal now.UnixNano) "-" }}

<div id="{{ $id }}">
{{ .Inner }}
Expand Down
3 changes: 1 addition & 2 deletions layouts/shortcodes/typeit.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 6e0164d

Please sign in to comment.