mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
commit
6e0164d0e4
7 changed files with 9 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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. |
|
||||
|
|
|
@ -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") }}
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ $id := delimit (slice "gallery" .Ordinal) "-" }}
|
||||
{{ $id := delimit (slice "gallery" .Ordinal now.UnixNano) "-" }}
|
||||
|
||||
<div id="{{ $id }}">
|
||||
{{ .Inner }}
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue