Compare commits

...

10 Commits

Author SHA1 Message Date
Nuno Coração 6e0164d0e4 Merge pull request #923 from nunocoracao/dev
🔖 v2.40.1
2023-08-17 22:16:38 +01:00
Nuno Coração 45819c5dba updated version 2023-08-17 22:16:02 +01:00
Nuno Coração b18dbe2713 Merge pull request #922 from nunocoracao/revert-920-main
Revert "🖌️ Add strava link with icon"
2023-08-17 22:13:36 +01:00
Nuno Coração f67922fc47 Revert "🖌️ Add strava link with icon" 2023-08-17 22:12:55 +01:00
Nuno Coração f55ba5bb64 updated docs 2023-08-17 22:12:46 +01:00
Nuno Coração 52bbe6ff93 Merge pull request #920 from EmilienMottet/main
🖌️ Add strava link with icon
2023-08-17 22:04:01 +01:00
Nuno Coração 55bb0db3ac Merge pull request #921 from nunocoracao/886-adding-gallery-shortcode-to-multiple-timeline-items-breaks-lay-out
🐛 updated logic for unique ids in shortcodes
2023-08-17 22:02:57 +01:00
Nuno Coração 96fdb6db8b updated logic for unique ids in shortcodes 2023-08-17 22:01:42 +01:00
Emilien Mottet 968d1ccc12 Add strava example 2023-08-17 17:58:29 +02:00
Emilien Mottet 08e80d235f Add strava svg 2023-08-17 17:57:11 +02:00
7 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ defaultFeaturedImage = "/img/ocean.jpg"
highlightCurrentMenuArea = true highlightCurrentMenuArea = true
smartTOC = true smartTOC = true
smartTOCHideUnfocusedChildren = true smartTOCHideUnfocusedChildren = false
[header] [header]
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur
@@ -71,6 +71,7 @@ The theme currently supports the following languages by default:
| 🇮🇩 Indonesian | `id` | | 🇮🇩 Indonesian | `id` |
| 🇮🇹 Italian | `it` | | 🇮🇹 Italian | `it` |
| 🇯🇵 Japanese | `ja` | | 🇯🇵 Japanese | `ja` |
| 🇰🇷 Korean | `ko` |
| 🇵🇱 Polish | `pl` | | 🇵🇱 Polish | `pl` |
| 🇧🇷 Portuguese (Brazil) | `pt-br` | | 🇧🇷 Portuguese (Brazil) | `pt-br` |
| 🇵🇹 Portuguese (Portugal) | `pt-pt` | | 🇵🇹 Portuguese (Portugal) | `pt-pt` |
@@ -110,8 +111,8 @@ The default file can be used as a template to create additional languages, or re
#### Params #### Params
<!-- prettier-ignore-start --> <!-- prettier-ignore-start -->
| Name | Default | Description | | Name | Default | Description |
| --------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `params.displayName` | `"EN"` | The name used when the language appears on the website. | | `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.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. | | `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. |
+1 -2
View File
@@ -1,5 +1,4 @@
{{ $time := now.UnixNano }} {{ $id := delimit (slice "carousel" .Ordinal now.UnixNano) "-" }}
{{ $id := delimit (slice "gallery" $time) "-" }}
{{ $aspect := default "16-9" (.Get "aspectRatio") }} {{ $aspect := default "16-9" (.Get "aspectRatio") }}
{{ $images := .Page.Resources.Match (.Get "images") }} {{ $images := .Page.Resources.Match (.Get "images") }}
{{ $interval := default "2000" (.Get "interval") }} {{ $interval := default "2000" (.Get "interval") }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{ $id := delimit (slice "chart" .Ordinal now.UnixNano) "-" }}
<div class="chart"> <div class="chart">
{{ $id := delimit (shuffle (seq 1 9)) "" }}
<canvas id="{{ $id }}"></canvas> <canvas id="{{ $id }}"></canvas>
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener("DOMContentLoaded", (event) => { window.addEventListener("DOMContentLoaded", (event) => {
+1 -1
View File
@@ -1,4 +1,4 @@
{{ $id := delimit (slice "gallery" .Ordinal) "-" }} {{ $id := delimit (slice "gallery" .Ordinal now.UnixNano) "-" }}
<div id="{{ $id }}"> <div id="{{ $id }}">
{{ .Inner }} {{ .Inner }}
+1 -2
View File
@@ -13,8 +13,7 @@
{{- end -}} {{- end -}}
{{- $tag := .Get "tag" | default "div" -}} {{- $tag := .Get "tag" | default "div" -}}
{{ $time := now.UnixNano }} {{ $id := delimit (slice "typeit" .Ordinal now.UnixNano) "-" }}
{{ $id := delimit (slice "typeit" $time) "-" }}
{{- $attrs := printf `id="%v"` $id -}} {{- $attrs := printf `id="%v"` $id -}}
{{- with $classList -}} {{- with $classList -}}
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.40.0", "version": "2.40.1",
"description": "Blowfish theme for Hugo", "description": "Blowfish theme for Hugo",
"scripts": { "scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall", "fullinstall": "npm run preinstall && npm install && npm run postinstall",