Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
295dae3345 | ||
|
|
5b5e06f99a | ||
|
|
876d20ce50 | ||
|
|
e005572d9a | ||
|
|
e6905aa1b6 | ||
|
|
0961d763ce | ||
|
|
a0d22e9875 | ||
|
|
4afb62fb0f | ||
|
|
df4b71be84 | ||
|
|
36b6a4551c | ||
|
|
1a5c232535 | ||
|
|
de7ce4364c | ||
|
|
4f1ed64b49 | ||
|
|
d7c5e2ca90 | ||
|
|
074522cf7f | ||
|
|
4c34cabc22 | ||
|
|
67c97d0bad | ||
|
|
bf2a6679ed | ||
|
|
e9cb8fff64 | ||
|
|
4643c46bd5 | ||
|
|
2e7c5bb91f | ||
|
|
efe0bcf9a8 | ||
|
|
9fea4757d0 | ||
|
|
70e204652d | ||
|
|
2845839510 | ||
|
|
2f4ca9ac59 | ||
|
|
8a5b31662e | ||
|
|
7ab6a75d42 | ||
|
|
cef81c9029 | ||
|
|
478031d822 | ||
|
|
75c1ce528f | ||
|
|
f1ca81f3ba | ||
|
|
14940ed7fe | ||
|
|
775a91a63a | ||
|
|
c44c4b1532 | ||
|
|
5e53deb6f7 | ||
|
|
4bfdb7b1b3 | ||
|
|
0dd0a39f0a | ||
|
|
b8ede0f2bf | ||
|
|
2f5696b3f7 | ||
|
|
43e54f063c | ||
|
|
79cc825148 | ||
|
|
e82a5d86d3 | ||
|
|
d9078a025f | ||
|
|
03825107db | ||
|
|
aa52338289 | ||
|
|
69014f6547 | ||
|
|
9f8972fecf | ||
|
|
4b42f34de5 | ||
|
|
be63d03bea | ||
|
|
8334f00562 | ||
|
|
ca56ac78a3 | ||
|
|
587d8eec1d | ||
|
|
7245635dc1 | ||
|
|
148837c017 | ||
|
|
5ef4024c40 | ||
|
|
134a044262 | ||
|
|
a4817aa442 | ||
|
|
03443c989f | ||
|
|
7bef4bb360 | ||
|
|
1784d3c13b | ||
|
|
d50d80bb34 | ||
|
|
b05eff3b30 | ||
|
|
b6e4156e6b | ||
|
|
96f11ba0e7 | ||
|
|
6f493fdbb9 | ||
|
|
984ca8490e | ||
|
|
5e0e09d415 | ||
|
|
7659c5f23d | ||
|
|
09f0573749 | ||
|
|
5b0cd34d5b | ||
|
|
0da79b9888 | ||
|
|
e50adceca0 | ||
|
|
3b2ea59367 | ||
|
|
c559ea3b74 | ||
|
|
e1fb257813 | ||
|
|
57f6c6708a | ||
|
|
1917c3ab51 | ||
|
|
bbf194ce31 | ||
|
|
d296e16e41 | ||
|
|
c71ce62fd5 | ||
|
|
ff4618e379 | ||
|
|
d862e6f789 | ||
|
|
e62da9e2d1 | ||
|
|
af0e11171c | ||
|
|
53a64328d7 | ||
|
|
091f9043ee | ||
|
|
345f806d80 | ||
|
|
405c905754 | ||
|
|
a89d96e4dd | ||
|
|
13602159d4 | ||
|
|
adb250108d | ||
|
|
cff88c00f5 | ||
|
|
1f82608cd6 | ||
|
|
74d03343b9 | ||
|
|
3ea1c3b49f | ||
|
|
84d03b8774 | ||
|
|
06936a4f15 | ||
|
|
8af7e8b855 | ||
|
|
7293b74ae5 | ||
|
|
db2932a16d | ||
|
|
ac252d5190 | ||
|
|
240201223f | ||
|
|
720b865312 | ||
|
|
a142fd55d3 | ||
|
|
1d761fc51a | ||
|
|
1c73bb7c3c | ||
|
|
65eb337501 | ||
|
|
7508edd884 | ||
|
|
0091ffab64 | ||
|
|
4afcd32b99 | ||
|
|
53528cb23f | ||
|
|
ec362e7de4 | ||
|
|
cecc88743d | ||
|
|
a220b9778c | ||
|
|
75d292e590 | ||
|
|
de0ed7c689 | ||
|
|
686dbb082a | ||
|
|
4201295501 | ||
|
|
1403422f60 | ||
|
|
e92cca185d | ||
|
|
6882d6fbb1 | ||
|
|
dac3e5a8a2 | ||
|
|
0b5726fdee | ||
|
|
50b5a49e85 | ||
|
|
117eded987 | ||
|
|
a5a41f9aa5 | ||
|
|
682447fca5 | ||
|
|
31e7ff8754 | ||
|
|
22fed8c1ca | ||
|
|
b50e0a5d12 | ||
|
|
201fb09360 | ||
|
|
da5216132a | ||
|
|
60cf2ea44e | ||
|
|
1fd5219f65 | ||
|
|
9768a2e6c4 | ||
|
|
ef081ffc68 | ||
|
|
a402aafee8 | ||
|
|
fe01814dd5 | ||
|
|
16c58f2c52 | ||
|
|
94cec19786 | ||
|
|
b102502c22 | ||
|
|
a734e5e320 | ||
|
|
2744192e68 | ||
|
|
58da587009 | ||
|
|
35a588221f | ||
|
|
0f060c2e64 | ||
|
|
17b8215782 | ||
|
|
88b4260105 | ||
|
|
c164484993 | ||
|
|
bf9d7ef2cb | ||
|
|
1f14448333 | ||
|
|
b67cdadb27 | ||
|
|
d85a0b243b | ||
|
|
7a3ace780f | ||
|
|
1cf811490c | ||
|
|
4bc35b656a | ||
|
|
bacf607405 | ||
|
|
7cd64e0c77 | ||
|
|
c6d1d04c9b | ||
|
|
af4808d9b7 | ||
|
|
d2196b6d7e | ||
|
|
3c0b3a5ebe | ||
|
|
694df4423e | ||
|
|
ea7d2da4c1 | ||
|
|
e72752168f | ||
|
|
4b3ff374a1 | ||
|
|
e8f44d4e8e | ||
|
|
2d36a64a6e | ||
|
|
8c6dfedb47 | ||
|
|
8263cb1813 | ||
|
|
3a9cc3a9a0 | ||
|
|
aa7af46e57 | ||
|
|
74c1af676d | ||
|
|
6d0f3bd69c | ||
|
|
6a22f960ec | ||
|
|
b3e27eb251 | ||
|
|
4026aee69c | ||
|
|
bdb41a342f | ||
|
|
fadadaf2cc | ||
|
|
f2b14a8463 | ||
|
|
4a2e182b32 | ||
|
|
4c074bc270 | ||
|
|
96a48bcd8b | ||
|
|
ae6a75d827 | ||
|
|
8278ad89fc | ||
|
|
f4fa7ebad5 | ||
|
|
5e81b943ed | ||
|
|
4f8e3e0b53 | ||
|
|
1e2bd11778 | ||
|
|
853bdd169f | ||
|
|
813fdecde0 | ||
|
|
845eecb314 | ||
|
|
e5d2ae8a7b | ||
|
|
58ab07f735 | ||
|
|
ba3b1f4192 | ||
|
|
bcfe2e3f7b | ||
|
|
d8986d6a99 | ||
|
|
ef8d204d1a | ||
|
|
3f5d19da40 | ||
|
|
6c0f1ef456 | ||
|
|
fb4d43776c | ||
|
|
4a45ab6c96 | ||
|
|
ef9e756ce5 | ||
|
|
3e1d31ca87 | ||
|
|
4feebf8acd | ||
|
|
f8cedfbcd8 | ||
|
|
e9a59654c9 | ||
|
|
c73459b634 | ||
|
|
864c8328ec | ||
|
|
ccbf3544d9 | ||
|
|
35c3462f3c | ||
|
|
2f108192ad | ||
|
|
eacda9fc35 | ||
|
|
bb8768c859 | ||
|
|
ee1aadc969 | ||
|
|
c0a7258d50 | ||
|
|
9aaf8f16c1 | ||
|
|
d00e49601a | ||
|
|
6c3e9761b9 | ||
|
|
1d61651817 | ||
|
|
6b11b81aec | ||
|
|
e9699d8c5d | ||
|
|
34b1f117fc | ||
|
|
6c7c4b6a9f | ||
|
|
a7fc9862e4 | ||
|
|
e0b8a49054 | ||
|
|
c4607f0a8f | ||
|
|
7d8b388bfb | ||
|
|
b5054889cb | ||
|
|
7b0904947d | ||
|
|
2c01906987 | ||
|
|
5342dd2128 | ||
|
|
b7d5f96bea | ||
|
|
f80473e761 | ||
|
|
6f6fba6d4d | ||
|
|
8671b01505 | ||
|
|
de2c627aac | ||
|
|
6d8a9b0712 | ||
|
|
62ffaac7ab | ||
|
|
64c437e67f | ||
|
|
6760c9de65 | ||
|
|
562db70231 | ||
|
|
ab9e81d586 | ||
|
|
56f66b633d | ||
|
|
d170cf3d96 | ||
|
|
26bbbbc288 | ||
|
|
5e144d4f11 | ||
|
|
86fd828353 | ||
|
|
a6ce29638a | ||
|
|
8b0691b632 | ||
|
|
863b64815c | ||
|
|
5df9ce4b32 | ||
|
|
598905a36b | ||
|
|
3a86a7656e | ||
|
|
e0e28b651a | ||
|
|
a9869a55a6 | ||
|
|
88863335fd | ||
|
|
6d33438e18 | ||
|
|
db9fb58bca | ||
|
|
baf74cca1a | ||
|
|
1eb3d8da3e | ||
|
|
dff1858ca5 | ||
|
|
ab5c7b7c97 | ||
|
|
350458a3c5 | ||
|
|
c7305a9727 | ||
|
|
75a6f741c8 | ||
|
|
c37d7fcd21 | ||
|
|
7c2545d598 | ||
|
|
2d37ecace0 | ||
|
|
8d28507fe9 | ||
|
|
1e5b7fde7e | ||
|
|
27cdc57bda | ||
|
|
8eff80bb12 | ||
|
|
cda04a5061 | ||
|
|
cc157244ba | ||
|
|
014eaa879c | ||
|
|
da8ca782aa | ||
|
|
f2e9eaa80f | ||
|
|
8eb1f330c5 | ||
|
|
44f787680b | ||
|
|
270a0a74d2 | ||
|
|
a57db858b4 | ||
|
|
2e195fc1e1 | ||
|
|
a666aa54b8 | ||
|
|
89e261f8e4 | ||
|
|
d35a493ba0 | ||
|
|
78341b1822 | ||
|
|
58e075717e | ||
|
|
137860d31a | ||
|
|
cee3e324fd | ||
|
|
2b83b517cc | ||
|
|
cc5cd8f11a | ||
|
|
c6d40c6d3f | ||
|
|
8fda75b134 | ||
|
|
965b0ac6ef | ||
|
|
08f6ccd618 | ||
|
|
3864f6f095 | ||
|
|
9ec0e6810a | ||
|
|
a132a9c5e6 | ||
|
|
0e8848d9c8 | ||
|
|
deffce8a02 | ||
|
|
e2dfae4a64 | ||
|
|
8aac2d7585 | ||
|
|
b9883c761d | ||
|
|
7b0fbea8ab | ||
|
|
4d6a84b041 | ||
|
|
0bc71ebe8d | ||
|
|
ae9b25b69c | ||
|
|
1475200ab4 | ||
|
|
f04dd3659a | ||
|
|
9986ed01ff | ||
|
|
16acbfee52 | ||
|
|
4b864d00e5 | ||
|
|
5a274629e4 | ||
|
|
e917645fba | ||
|
|
82aef982f1 | ||
|
|
cc91b648ec | ||
|
|
10314cff71 | ||
|
|
a7a04c6c5e | ||
|
|
c4bb9ab9b6 | ||
|
|
15299c15ab | ||
|
|
78fa726ebb | ||
|
|
b9ee790d5d | ||
|
|
ee2fc91522 | ||
|
|
9bcb7d37d3 | ||
|
|
d8685e5c9c | ||
|
|
8a9fe666e4 | ||
|
|
a95f11fe56 | ||
|
|
0b5a29e251 | ||
|
|
03615baf92 | ||
|
|
0e29ae9c52 | ||
|
|
ce0d91fcd5 | ||
|
|
a18688473e | ||
|
|
2d5718dd11 | ||
|
|
8779739162 | ||
|
|
cdcbc40d47 | ||
|
|
eb19b988ec | ||
|
|
ca6fe5f967 | ||
|
|
4996869378 | ||
|
|
b0e07a7c0d | ||
|
|
7fdb8ba1b1 | ||
|
|
03be92ad0f | ||
|
|
39adcba775 | ||
|
|
70861235ba | ||
|
|
3f4636afc1 | ||
|
|
26790a12e6 | ||
|
|
a6dc9b52e4 | ||
|
|
a308a86365 | ||
|
|
7691ee18ed | ||
|
|
830b36a9fa | ||
|
|
7ea30cb4f1 | ||
|
|
1f0b3672b5 | ||
|
|
1f0a84a24b | ||
|
|
877a2609e9 | ||
|
|
18ac5b1920 | ||
|
|
7c127074f9 | ||
|
|
e9b51aadcd | ||
|
|
c8d1b46316 | ||
|
|
bad5bf18ac | ||
|
|
ce60eab796 | ||
|
|
99224f248c | ||
|
|
d0b6ea29b4 | ||
|
|
34c82f38ca | ||
|
|
342b3451b3 | ||
|
|
58b9aee2d0 | ||
|
|
524a6869c3 | ||
|
|
b0c563bc15 | ||
|
|
cbc8cf12cd | ||
|
|
503f60fe75 | ||
|
|
167ee1fa4c | ||
|
|
859685f0c2 | ||
|
|
a0fc381ba9 | ||
|
|
ef712c33f9 | ||
|
|
e84fc0e1c6 | ||
|
|
79a78bcef4 | ||
|
|
cc94a0e6c8 | ||
|
|
ffa18c9c4f | ||
|
|
8549e06095 | ||
|
|
01d8db1e4d | ||
|
|
e71a4109cf | ||
|
|
6e70744e9a | ||
|
|
471ee57621 | ||
|
|
28a04921a7 | ||
|
|
5af20c6f9a | ||
|
|
2aa15ce844 | ||
|
|
c92c0aa3ce | ||
|
|
c9271d1df2 | ||
|
|
c08f0a9ffa | ||
|
|
d7c2d69571 | ||
|
|
122d5c70aa | ||
|
|
45c9acab9e | ||
|
|
bcdab29c30 | ||
|
|
1bec932730 | ||
|
|
217a143e6b |
No files matched your search
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "blowfish",
|
||||
"owner": {
|
||||
"name": "Nuno Coração",
|
||||
"url": "https://github.com/nunocoracao"
|
||||
},
|
||||
"plugins": [
|
||||
{
|
||||
"name": "blowfish",
|
||||
"source": "./.claude/skills/blowfish",
|
||||
"description": "Teaches coding agents how to install, configure, and build sites with the Blowfish Hugo theme."
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "blowfish",
|
||||
"description": "Teaches coding agents how to install, configure, and build sites with the Blowfish Hugo theme.",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
---
|
||||
name: blowfish
|
||||
description: Install, configure, and build sites with the Blowfish Hugo theme — setup methods, updates, configuration files, homepage layouts, front matter, shortcodes, customization, and theme architecture. Use when working on a Hugo site that uses (or wants to use) Blowfish, or when working on the theme itself.
|
||||
---
|
||||
|
||||
# Blowfish theme
|
||||
|
||||
Blowfish is a lightweight Hugo theme built with Tailwind CSS. Docs: https://blowfish.page/ · Repo: https://github.com/nunocoracao/blowfish
|
||||
|
||||
Requires Hugo **extended** edition, within the version range declared in the theme's `config.toml` under `[module.hugoVersion]` (check that file — the range is a rolling window that tracks recent Hugo releases).
|
||||
|
||||
## Installing
|
||||
|
||||
Full walkthrough: https://blowfish.page/docs/installation/
|
||||
|
||||
1. **Blowfish Tools CLI:** `npx blowfish-tools` — interactive setup that scaffolds the site and config. `npx blowfish-tools new <site>` creates project + theme in one go.
|
||||
2. **Git submodule:**
|
||||
```shell
|
||||
git init # if not already a repo
|
||||
git submodule add -b main https://github.com/nunocoracao/blowfish.git themes/blowfish
|
||||
```
|
||||
Then set `theme = "blowfish"` in the site's `config/_default/hugo.toml`.
|
||||
3. **Hugo module:** `hugo mod init github.com/<user>/<repo>` then in `config/_default/module.toml`:
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
4. **Manual:** download the latest release archive, extract to `themes/blowfish/`, set `theme = "blowfish"`.
|
||||
|
||||
After installing (any method): delete the site's generated `hugo.toml` in the project root, and copy the theme's `config/_default/*.toml` files into the site's `config/_default/` (don't overwrite `module.toml` if using Hugo modules). A ready-made zip of the config files: https://github.com/nunocoracao/blowfish/releases/latest/download/config-default.zip
|
||||
|
||||
## Updating
|
||||
|
||||
- **Git submodule:** `git submodule update --remote --merge`
|
||||
- **Hugo module:** `hugo mod get -u` (inspects `module.toml` + `go.mod`)
|
||||
- **Manual:** download the latest release and replace `themes/blowfish/` entirely (local edits inside the theme folder are lost — site-level overrides are safe).
|
||||
- **Upgrading v2 → v3:** fully backwards compatible; all new features are opt-in and nothing was removed or renamed. Hugo-module users change the import path `…/blowfish/v2` → `…/blowfish/v3` in `module.toml`, then `hugo mod get -u`. Other methods need no changes. Details: https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3
|
||||
|
||||
## Configuration
|
||||
|
||||
All config lives in the site's `config/_default/` (reference: https://blowfish.page/docs/configuration/):
|
||||
|
||||
- `hugo.toml` — core Hugo settings, theme/module import, taxonomies, related-content config.
|
||||
- `params.toml` — theme behavior. Key areas: `colorScheme`; `defaultAppearance`/`autoSwitchAppearance` (dark mode); `defaultBackgroundImage` + `backgroundCanvas` (site-wide fixed backdrop); `[header] layout` (`basic`, `fixed`, `fixed-fill`, `fixed-gradient`, `fixed-fill-blur`, `floating`) and `mobileMenuStyle` (`fullscreen`/`dropdown`); `[homepage] layout` (`page`, `profile`, `hero`, `card`, `background`, `landing`, `custom`) + `layoutSwitcher`; `[article]`, `[list]`, `[taxonomy]`, `[term]` display flags (hero styles, TOC, reading time/progress, breadcrumbs, `cardView`, `featureImageHover`, …); `[footer]`; search; analytics; comments; Firebase (views/likes).
|
||||
- `languages.<code>.toml` — site title, author profile (name, image, headline, bio, `links` social icons). One file per language for multilingual sites.
|
||||
- `menus.<code>.toml` — `[[main]]`, `[[subnavigation]]`, and `[[footer]]` entries (`name`, `pageRef`/`url`, `weight`, optional `pre` icon).
|
||||
- `markup.toml` — Goldmark config; keep `unsafe = true` (the theme relies on HTML in Markdown).
|
||||
|
||||
Front matter overrides most section params per page. Reference table: https://blowfish.page/docs/front-matter/
|
||||
|
||||
## Feature → docs map
|
||||
|
||||
Point users (and yourself) at the specific page:
|
||||
|
||||
- Getting started & colour schemes: https://blowfish.page/docs/getting-started/
|
||||
- Homepage layouts (incl. `landing` hero with `heroCaption`/`heroLead`/`heroButtons`/`heroImage` front matter): https://blowfish.page/docs/homepage-layout/
|
||||
- Front matter reference: https://blowfish.page/docs/front-matter/
|
||||
- All 40+ shortcodes with examples: https://blowfish.page/docs/shortcodes/
|
||||
- Content examples (article features in action): https://blowfish.page/docs/content-examples/
|
||||
- Series of articles: https://blowfish.page/docs/series/
|
||||
- Multi-author setup (`data/authors/*.json` + `authors` taxonomy): https://blowfish.page/docs/multi-author/
|
||||
- Thumbnails & feature images: https://blowfish.page/docs/thumbnails/
|
||||
- Partials (analytics, comments, extend-head/extend-footer hooks): https://blowfish.page/docs/partials/
|
||||
- Advanced customisation (fonts, custom schemes, overrides, npm build): https://blowfish.page/docs/advanced-customisation/
|
||||
- Firebase views/likes: https://blowfish.page/docs/firebase-views/
|
||||
- Hosting & deployment (Netlify, Vercel, GitHub Pages, …): https://blowfish.page/docs/hosting-deployment/
|
||||
|
||||
## Architecture (how to find things)
|
||||
|
||||
Understanding the theme's structure makes searching much faster:
|
||||
|
||||
- **Template resolution:** Hugo prefers site files over theme files at the same path. `layouts/_default/baseof.html` is the page skeleton (skip link, `<header>` with the configured header layout, `<main>`, footer, search modal, background canvas). `single.html` = articles, `list.html` = section listings, `terms.html` = taxonomy index (e.g. `/tags/`), `term.html` = one term's articles. All taxonomies share the same two templates.
|
||||
- **Partial naming convention:** `layouts/partials/<area>/<variant>.html`. Header layouts live in `partials/header/` (all variants delegate the actual menu bar to `header/basic.html`; components like `desktop-menu`, `mobile-menu`, `translations` are in `partials/header/components/`). Hero styles in `partials/hero/` (`basic`, `big`, `background`, `thumbAndBackground`). Homepage layouts in `partials/home/`. Article listing cards in `partials/article-link/` (`card`, `simple`, `card-related`); taxonomy term links in `partials/term-link/`. `partials/icon.html` inlines SVGs from `assets/icons/` by name.
|
||||
- **Param resolution pattern:** templates resolve display flags as front matter → section params → default, e.g. `.Params.showX | default (site.Params.article.showX | default false)`. Page scope is tracked via `.Scratch.Set "scope"` (`single`/`list`/`terms`/`term`) — some partials branch on it.
|
||||
- **Styling:** Tailwind source is `assets/css/main.css` (plus `assets/css/components/*`), compiled to `assets/css/compiled/main.css` which is **committed** — after changing templates that use new utility classes, run `npm run build` and commit the compiled file. Colour schemes are CSS custom-property files in `assets/css/schemes/<name>.css` defining `--color-neutral/primary/secondary-{50..900}` as RGB triplets; Tailwind maps them via `tailwind.config.js`. Note: the palette has **no 950 shades** — `*-neutral-950` etc. silently compile to nothing.
|
||||
- **JavaScript:** small feature scripts in `assets/js/` (appearance/dark-mode toggle, search, zen-mode, reading-progress, hero-scroll-fade, background-blur, …). Most are bundled into `main.bundle.js` in `partials/head.html`; page-conditional ones get their own fingerprinted `<script>` tag. Vendored libraries (mermaid, katex, chart.js, fuse, zoom, …) are copied from `node_modules` into `assets/lib/` by `vendor-copy` (config in `package.json` under `devVendorCopy`) — they are committed; heavy ones load only on pages that use them.
|
||||
- **i18n:** every user-facing string goes through `i18n/<lang>.yaml` lookups (`{{ i18n "key" }}`) — never hardcode text in templates. English is the fallback.
|
||||
- **Demo/testbed:** `exampleSite/` is both the docs site (blowfish.page) and the test environment. `npm run example` serves it locally at :1313 with the theme mounted via `--themesDir ../..`. Docs content lives in `exampleSite/content/docs/` with one `index.<lang>.md` per language.
|
||||
- **Icons:** `assets/icons/*.svg` (FontAwesome-derived, `fill="currentColor"`). An icon's filename is its name everywhere: social `links`, menu `pre`, the `icon`/`badge`/`button` shortcodes.
|
||||
|
||||
## Working on the theme itself
|
||||
|
||||
- `npm install` then `npm run example` — live demo at `http://localhost:1313`.
|
||||
- `npm run build` — recompile Tailwind into `assets/css/compiled/main.css` (commit it).
|
||||
- `npm run build-hugo` — production build of the docs site.
|
||||
- Conventions: 2-space indent, spaces inside template tags (`{{ $x }}`), extract repeated logic into partials, Gitmoji commit prefixes, no breaking changes (never rename partials or remove config options). See `CLAUDE.md` and `CONTRIBUTING.md`.
|
||||
- When adding/renaming config options, shortcodes, or layouts: update the docs in `exampleSite/content/docs/` (all languages) **and this skill**.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- Blank styling / missing classes → Hugo isn't the extended edition, or `themesDir`/module import is misconfigured.
|
||||
- New config not applying → the file must be in the **site's** `config/_default/`, not inside the theme.
|
||||
- Version warnings → keep Hugo within the `[module.hugoVersion]` range in the theme's `config.toml`.
|
||||
- A Tailwind class "not working" in a custom override → the compiled CSS is generated from the theme's sources; site-level classes need the site's own CSS (e.g. `assets/css/custom.css`, loaded automatically) or the class must already exist in the theme's compiled output.
|
||||
- Images not appearing as thumbnails → the image must be a page-bundle resource matching `*feature*`, `*cover*`, or `*thumbnail*`, or set `featureimage` in front matter.
|
||||
@@ -5,7 +5,7 @@ version: 2
|
||||
updates:
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/"
|
||||
target-branch: "dev"
|
||||
target-branch: "main"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "wednesday"
|
||||
@@ -15,7 +15,7 @@ updates:
|
||||
- "dependencies"
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
target-branch: "dev"
|
||||
target-branch: "main"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "wednesday"
|
||||
|
||||
@@ -8,11 +8,11 @@ jobs:
|
||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
ref: "${{ github.head_ref }}"
|
||||
- name: Install dependencies and Build Theme
|
||||
uses: actions/setup-node@v6
|
||||
uses: actions/setup-node@v7
|
||||
- run: npm install
|
||||
- run: npm run assets
|
||||
- name: Commit and push Chart.js changes
|
||||
|
||||
@@ -8,14 +8,14 @@ jobs:
|
||||
zip:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
- run: zip -r config-default.zip config/_default
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: config-default
|
||||
path: config-default.zip
|
||||
- name: Upload to release
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
files: config-default.zip
|
||||
tag_name: ${{ github.event.release.tag_name }}
|
||||
@@ -11,9 +11,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
ref: dev
|
||||
ref: main
|
||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
|
||||
@@ -34,7 +34,13 @@ jobs:
|
||||
if: steps.git-check.outputs.modified == 'true'
|
||||
run: |
|
||||
cat release-versions/hugo-latest.txt | \
|
||||
while read version; do sed -i'' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${version#v}\2/g" config.toml; done
|
||||
while read version; do \
|
||||
v="${version#v}"; \
|
||||
minor="$(echo "$v" | cut -d. -f2)"; \
|
||||
min_minor="$((minor - 3))"; \
|
||||
sed -i'' -E "s/(max = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\1${v}\2/g" config.toml; \
|
||||
sed -i'' -E "s/(min = \")[0-9]+\.[0-9]+\.[0-9]+(\")/\10.${min_minor}.0\2/g" config.toml; \
|
||||
done
|
||||
|
||||
- name: Create Pull Request
|
||||
if: steps.git-check.outputs.modified == 'true'
|
||||
@@ -51,4 +57,4 @@ jobs:
|
||||
[2]: https://github.com/peter-evans/create-pull-request
|
||||
labels: dependencies, automated pr
|
||||
branch: hugo-new-version
|
||||
base: dev
|
||||
base: main
|
||||
@@ -30,19 +30,19 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HUGO_VERSION: 0.102.3
|
||||
HUGO_VERSION: 0.165.0
|
||||
steps:
|
||||
- name: Install Hugo CLI
|
||||
run: |
|
||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb \
|
||||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v5
|
||||
uses: actions/configure-pages@v6
|
||||
- name: Build with Hugo
|
||||
env:
|
||||
# For maximum backward compatibility with Hugo modules
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
run: |
|
||||
hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v4
|
||||
uses: actions/upload-pages-artifact@v5
|
||||
with:
|
||||
path: ./docs
|
||||
|
||||
@@ -65,4 +65,4 @@ jobs:
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
uses: actions/deploy-pages@v5
|
||||
@@ -18,18 +18,28 @@ jobs:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v10
|
||||
- uses: actions/stale@v11
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message:
|
||||
"This issue will be closed since it has been stale for 60 days."
|
||||
"This issue has had no activity for 60 days, so it has been marked
|
||||
as stale. If it is still relevant, just leave a comment and the
|
||||
label will be removed — otherwise it will close in 14 days. Closed
|
||||
issues can always be reopened. Thanks for helping keep the tracker
|
||||
healthy!"
|
||||
stale-pr-message:
|
||||
"This pull request will be closed since it has been stale for 60
|
||||
days."
|
||||
"This pull request has had no activity for 60 days, so it has been
|
||||
marked as stale. If you are still working on it, just leave a
|
||||
comment and the label will be removed — otherwise it will close in
|
||||
14 days. Closed pull requests can always be reopened."
|
||||
close-issue-message:
|
||||
"Closing due to inactivity. This is housekeeping, not a judgement
|
||||
on the issue — if it is still relevant, please reopen or leave a
|
||||
comment and it will get another look."
|
||||
stale-issue-label: "no-issue-activity"
|
||||
stale-pr-label: "no-pr-activity"
|
||||
days-before-stale: 60
|
||||
days-before-close: 0
|
||||
days-before-close: 14
|
||||
remove-stale-when-updated: true
|
||||
operations-per-run: 100
|
||||
exempt-issue-labels: 'keep,security'
|
||||
exempt-issue-labels: 'keep,security,bug,confirmed'
|
||||
@@ -10,13 +10,13 @@ jobs:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3.0.0
|
||||
uses: peaceiris/actions-hugo@v3.2.1
|
||||
with:
|
||||
hugo-version: "latest"
|
||||
|
||||
|
||||
@@ -40,4 +40,5 @@ ga-pageviews.csv
|
||||
.Trashes
|
||||
.idea
|
||||
.Ulysses-Group.plist
|
||||
.Ulysses-Settings.plist
|
||||
.Ulysses-Settings.plist
|
||||
.watchfire/
|
||||
@@ -79,7 +79,14 @@
|
||||
"{{< /chart >}}"
|
||||
],
|
||||
"description": "Use the Chart.js library to embed charts into articles using simple structured data. Blowfish chart Shortcode. Documentation: https://blowfish.page/docs/shortcodes/#chart ",
|
||||
},
|
||||
},
|
||||
"email": {
|
||||
"prefix": ["BFS-email", "HSC-email", "email"],
|
||||
"body": [
|
||||
"{{< email email=\"mailto:${1:hello@test.com}\" text=\"${2:text}\" subject=\"${3:Reply to awesome article}\" >}}$0",
|
||||
],
|
||||
"description": "Creates an obfuscated mailto link. Documentation: https://blowfish.page/docs/shortcodes/#email ",
|
||||
},
|
||||
"figure": {
|
||||
"prefix": ["BFS-figure", "HSC-figure", "figure"],
|
||||
"body": [
|
||||
@@ -255,4 +262,4 @@
|
||||
"description": "Typewriter-Like text. Blowfish typeit Shortcode. Documentation: https://blowfish.page/docs/shortcodes/#typeit https://www.typeitjs.com/docs/vanilla/usage/ ",
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
version: 1
|
||||
project_id: fafe4c77-495a-44fc-9eaf-8e38596cdc04
|
||||
name: blowfish
|
||||
status: active
|
||||
color: '#8b5cf6'
|
||||
default_agent: claude-code
|
||||
sandbox: auto
|
||||
auto_merge: true
|
||||
auto_delete_branch: true
|
||||
auto_start_tasks: true
|
||||
notifications:
|
||||
muted: false
|
||||
definition: |
|
||||
Blowfish is a powerful, lightweight Hugo theme built with Tailwind CSS.
|
||||
Repo: https://github.com/nunocoracao/blowfish · Demo & docs: https://blowfish.page/
|
||||
|
||||
Stack & layout:
|
||||
- Hugo theme (min Hugo 0.141.0). Templates in `layouts/`, partials in `layouts/partials/`, shortcodes in `layouts/shortcodes/`.
|
||||
- Tailwind CSS 4 via `@tailwindcss/cli` — source in `assets/css/main.css`, output in `assets/css/compiled/main.css`.
|
||||
- JS vendored from `node_modules/` into `assets/lib/` via `vendor-copy` (configured in `package.json` under `devVendorCopy`).
|
||||
- Localisation strings live in `i18n/`. All static text MUST go through `i18n` lookups, never hardcoded.
|
||||
- `exampleSite/` is the testbed. Run `npm run example` (or `:core` / `:production`) to preview locally.
|
||||
- `config/` holds default theme config; users override in their own site.
|
||||
|
||||
Coding conventions (from CONTRIBUTING.md):
|
||||
- 2-space indent. Spaces inside Go template tags: `{{< alert >}}` not `{{<alert>}}`.
|
||||
- Extract repeated template logic into partials.
|
||||
- Relative asset paths without leading slash; trailing slash for folders (e.g. `static/img/`).
|
||||
- Prettier config is included; respect it.
|
||||
|
||||
PR & commit rules (strict — enforced):
|
||||
- Single-purpose PRs only. Do NOT bundle unrelated changes (e.g. bug fix + version bump + new user entry). Mixed PRs get closed.
|
||||
- NO breaking changes unless strictly required by a dependency. Renaming partials, removing config options, or changing template signatures will be rejected — they silently break user customisations.
|
||||
- Commits: Gitmoji prefix, imperative mood ("Fix bug", not "Fixed"), ≤72-char summary, no trailing period. Reference issue numbers when relevant.
|
||||
- Commit incrementally rather than one giant commit.
|
||||
|
||||
Before marking a task done:
|
||||
- If templates/CSS/JS changed, run `npm run example` and verify in the browser. Type-checks alone don't validate Hugo theme behavior.
|
||||
- Check that any new user-facing string is wired through `i18n/` for all supported languages (or at least English with a clear note).
|
||||
- Don't bump `package.json` version or touch `release-versions/` as part of a feature/fix PR — those are released separately.
|
||||
created_at: 2026-05-04T23:12:29.75161Z
|
||||
updated_at: 2026-05-04T23:12:30.276795Z
|
||||
next_task_number: 1
|
||||
@@ -0,0 +1,33 @@
|
||||
# Secrets & Setup Instructions
|
||||
|
||||
Use this file to tell agents how to access external services and credentials
|
||||
for this project. Agents will read these instructions before starting work.
|
||||
|
||||
## Examples
|
||||
|
||||
### CLI Tools (already authenticated)
|
||||
```
|
||||
# Firebase — I'm already logged in via `firebase login`
|
||||
# Use `firebase use <project-id>` to switch projects
|
||||
|
||||
# AWS — credentials configured in default profile
|
||||
# Use `aws sts get-caller-identity` to verify access
|
||||
|
||||
# gcloud — authenticated via `gcloud auth login`
|
||||
```
|
||||
|
||||
### Environment Variables
|
||||
```
|
||||
# Set these before running the app:
|
||||
# export DATABASE_URL=<value>
|
||||
# export API_KEY=<value>
|
||||
```
|
||||
|
||||
### API Keys & Tokens
|
||||
```
|
||||
# Stripe test key: use the key in .env.local
|
||||
# OpenAI: use the org key from 1Password CLI (`op read ...`)
|
||||
```
|
||||
|
||||
---
|
||||
Delete this sample content and replace with your own instructions.
|
||||
@@ -0,0 +1,15 @@
|
||||
# Blowfish
|
||||
|
||||
Hugo theme built with Tailwind CSS. Templates in `layouts/`, Tailwind source in `assets/css/main.css` compiled to `assets/css/compiled/main.css` (committed), demo/testbed in `exampleSite/`, localization in `i18n/`.
|
||||
|
||||
## Working on the theme
|
||||
|
||||
- `npm install`, then `npm run example` to preview the demo site; `npm run build` to recompile Tailwind (commit the compiled CSS with template changes that use new classes).
|
||||
- All user-facing static text goes through `i18n/` lookups — never hardcode strings in templates.
|
||||
- 2-space indent; spaces inside Go template tags (`{{ $x }}`); extract repeated template logic into partials; follow the included Prettier config.
|
||||
- No breaking changes: don't rename partials, remove config options, or change template signatures — users' sites silently depend on them.
|
||||
- Single-purpose commits/PRs with Gitmoji prefixes and imperative mood (≤72-char summary).
|
||||
|
||||
## Agent skill — keep it in sync
|
||||
|
||||
`.claude/skills/blowfish/SKILL.md` teaches coding agents how to install, configure, and use Blowfish. **Any PR that adds/renames/removes a config option, shortcode, homepage/hero/header layout, or installation step must update the skill in the same PR.** Treat it like documentation: if `exampleSite/content/docs/` needs updating, the skill probably does too.
|
||||
@@ -1,6 +1,6 @@
|
||||
## How to contribute to Blowfish
|
||||
|
||||
All development occurs on the `dev` branch and new PRs should be forked from here.
|
||||
All development occurs on the `main` branch and new PRs should be forked from here.
|
||||
|
||||
### Bugs & other issues
|
||||
|
||||
@@ -31,6 +31,17 @@ All development occurs on the `dev` branch and new PRs should be forked from her
|
||||
- If you have a general question, these should be asked using [GitHub Discussions](https://github.com/nunocoracao/blowfish/discussions). Feel free to open a [new discussion](https://github.com/nunocoracao/blowfish/discussions/new) to ask your question using the "Q&A" category.
|
||||
- Be sure to check if your question has already been answered by searching [existing Q&A discussions](https://github.com/nunocoracao/blowfish/discussions/categories/q-a).
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- We do not accept breaking changes unless they are strictly required to keep supporting the project (e.g. a dependency deprecating a feature we rely on).
|
||||
- Changes that would cause existing user customizations to silently stop working (such as renaming partial paths, removing config options, or changing template signatures) will be rejected.
|
||||
- If you're unsure whether your change is breaking, open a discussion first.
|
||||
|
||||
### Pull request guidelines
|
||||
|
||||
- Keep PRs focused on a single change. Do not bundle unrelated modifications (e.g. bug fix + version bump + new user entry) into the same PR.
|
||||
- PRs that mix multiple unrelated changes will be closed and the author will be asked to split them.
|
||||
|
||||
### Coding conventions
|
||||
|
||||
- Indent using 2 spaces (soft tabs).
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[English](https://github.com/nunocoracao/blowfish/blob/main/README.md) | [Français](https://github.com/nunocoracao/blowfish/blob/main/README.fr.md) | Deutsch | [Português (PT)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-pt.md) | [Português (BR)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-br.md) | [Español](https://github.com/nunocoracao/blowfish/blob/main/README.es.md) | [日本語](https://github.com/nunocoracao/blowfish/blob/main/README.ja.md) | [简体中文](https://github.com/nunocoracao/blowfish/blob/main/README.zh-cn.md) | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfish ist ein leistungsstarkes, schlankes Theme für [Hugo](https://gohugo.io
|
||||
|
||||
🌏 [Demo-Website](https://blowfish.page/)
|
||||
📑 [Theme-Dokumentation](https://blowfish.page/docs/)
|
||||
💎 [Merchandise-Shop](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Fehlerberichte & Issues](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [Fragen & Feature-Anfragen](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## Funktionen
|
||||
|
||||
- Vollständig responsives Layout mit Tailwind CSS 3.0
|
||||
- Vollständig responsives Layout mit Tailwind CSS 4
|
||||
- Mehrere Farbschemata (oder vollständig anpassbar)
|
||||
- Dark Mode (erzwungen ein/aus oder automatisch mit Benutzerumschaltung)
|
||||
- Mehrere Homepage-Layouts einschließlich einer produktartigen Landingpage mit Hero-Bild, Statistiken und Feature-Rastern
|
||||
- Schwebender Header im Glas-Look mit ⌘K / Ctrl+K Suchkürzel
|
||||
- Globale Hintergrund-Leinwand mit Hero-Bereichen, die sich beim Scrollen darin auflösen
|
||||
- Lesefortschrittsbalken für Artikel
|
||||
- Interaktiver Homepage-Layout-Umschalter für Live-Vorschauen
|
||||
- Agent-Skill, mit dem KI-Coding-Agenten (wie Claude Code) das Theme für Sie installieren und konfigurieren können
|
||||
- Druckfreundliche Seiten mit dedizierten Druckstilen
|
||||
- Hochgradig anpassbare Konfiguration
|
||||
- Firebase-Integration zur Unterstützung dynamischer Daten
|
||||
- Ansichtszähler & Like-Mechanismus
|
||||
- Verwandte Artikel
|
||||
- Mehrere Homepage-Layouts
|
||||
- Mehrere Autoren
|
||||
- Artikelserien
|
||||
- Datums- und gewichtsbasierte Artikelsortierung
|
||||
@@ -44,7 +46,7 @@ Blowfish ist ein leistungsstarkes, schlankes Theme für [Hugo](https://gohugo.io
|
||||
- Scrollbares Inhaltsverzeichnis
|
||||
- Mehrsprachige Inhaltsunterstützung einschließlich RTL-Sprachen
|
||||
- Möglichkeit, auf Beiträge auf Websites von Drittanbietern zu verlinken
|
||||
- Unterstützung für mehrere Shortcodes wie Gallery, Timeline, GitHub-Karten und Carousels
|
||||
- Über 40 Shortcodes einschließlich Gallery, Timeline, GitHub-Karten, Carousels, Stats, Feature-Rastern, Steps und CTA-Buttons
|
||||
- GitHub Alerts-Syntax, 15 Typen, zusammenklappbar
|
||||
- Buymeacoffee-Integration
|
||||
- Clientseitige Website-Suche mit Fuse.js
|
||||
@@ -80,11 +82,22 @@ Blowfish unterstützt mehrere Installationsmethoden - als git submodule, als Hug
|
||||
|
||||
Detaillierte Anweisungen für jede Methode finden Sie in der [Installations-Dokumentation](https://blowfish.page/docs/installation). Für die einfachste Einrichtung sollten Sie die Dokumentation konsultieren. Im Folgenden finden Sie eine Schnellstartanleitung mit Submodulen, wenn Sie git verwenden, oder Hugo Modules, wenn Sie bereits Erfahrung mit der Installation von Hugo-Themes haben.
|
||||
|
||||
### Schnellstart mit einem KI-Agenten
|
||||
|
||||
Blowfish enthält einen [Agent-Skill](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish), der KI-Coding-Agenten — wie Claude Code — beibringt, das Theme zu installieren, zu konfigurieren und Websites damit zu erstellen. Installieren Sie ihn über den Blowfish-Plugin-Marketplace in Claude Code:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
Oder kopieren Sie einfach den Skill-Ordner in Ihr Website-Repository unter `.claude/skills/blowfish/` — Agenten erkennen Projekt-Skills automatisch. Bitten Sie dann Ihren Agenten, Blowfish für Sie einzurichten.
|
||||
|
||||
### Schnellstart mit Blowfish Tools
|
||||
|
||||
> **Hinweis:** Stellen Sie sicher, dass Sie **Node.js**, **Git** und **Hugo** installiert haben und dass Sie ein neues Hugo-Projekt erstellt haben, bevor Sie fortfahren.
|
||||
|
||||
Wir haben gerade ein neues CLI-Tool gestartet, das Ihnen beim Einstieg in Blowfish hilft. Es erstellt ein neues Hugo-Projekt, installiert das Theme und richtet die Theme-Konfigurationsdateien für Sie ein. Es befindet sich noch in der Beta-Phase, also [melden Sie bitte alle Probleme, die Sie finden](https://github.com/nunocoracao/blowfish-tools).
|
||||
Blowfish Tools ist ein CLI-Tool, das Ihnen beim Einstieg in Blowfish hilft. Es erstellt ein neues Hugo-Projekt, installiert das Theme und richtet die Theme-Konfigurationsdateien für Sie ein. Bitte [melden Sie alle Probleme, die Sie finden](https://github.com/nunocoracao/blowfish-tools).
|
||||
|
||||
Installieren Sie das CLI-Tool global mit npm (oder einem anderen Paketmanager):
|
||||
```shell
|
||||
@@ -137,7 +150,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. Starten Sie Ihren Server mit `hugo server` und das Theme wird automatisch heruntergeladen.
|
||||
@@ -156,6 +169,10 @@ Wenn neue Versionen veröffentlicht werden, können Sie das Theme mit Hugo aktua
|
||||
|
||||
Detaillierte [Update-Anweisungen](https://blowfish.page/docs/installation/#installing-updates) sind in der Dokumentation verfügbar.
|
||||
|
||||
### Upgrade von v2 auf v3
|
||||
|
||||
Blowfish v3 ist vollständig abwärtskompatibel: Jede neue Funktion ist optional und es wurden keine Konfigurationsoptionen oder Templates entfernt. Git-submodule- und manuelle Installationen werden wie gewohnt ohne Änderungen aktualisiert; Hugo-Module-Nutzer ändern lediglich den Importpfad in `config/_default/module.toml` von `github.com/nunocoracao/blowfish/v2` zu `github.com/nunocoracao/blowfish/v3` und führen `hugo mod get -u` aus. Details finden Sie in den [Upgrade-Anweisungen](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3).
|
||||
|
||||
---
|
||||
|
||||
## Mitwirken
|
||||
@@ -172,8 +189,4 @@ Wenn Sie in der Lage sind, einen Fehler zu beheben oder eine neue Funktion zu im
|
||||
|
||||
---
|
||||
|
||||
## Stargazers im Zeitverlauf
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -1,7 +1,7 @@
|
||||
[English](https://github.com/nunocoracao/blowfish/blob/main/README.md) | [Français](https://github.com/nunocoracao/blowfish/blob/main/README.fr.md) | [Deutsch](https://github.com/nunocoracao/blowfish/blob/main/README.de.md) | [Português (PT)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-pt.md) | [Português (BR)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-br.md) | Español | [日本語](https://github.com/nunocoracao/blowfish/blob/main/README.ja.md) | [简体中文](https://github.com/nunocoracao/blowfish/blob/main/README.zh-cn.md) | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfish está diseñado para ser un tema potente y ligero para [Hugo](https://g
|
||||
|
||||
🌏 [Sitio de demostración](https://blowfish.page/)
|
||||
📑 [Documentación del tema](https://blowfish.page/docs/)
|
||||
💎 [Tienda de merchandising](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Reportes de errores y problemas](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [Preguntas y solicitudes de funcionalidades](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## Características
|
||||
|
||||
- Diseño totalmente responsive construido con Tailwind CSS 3.0
|
||||
- Diseño totalmente responsive construido con Tailwind CSS 4
|
||||
- Múltiples esquemas de color (o personaliza completamente el tuyo propio)
|
||||
- Modo oscuro (forzado activado/desactivado o cambio automático con opción de usuario)
|
||||
- Múltiples diseños de página de inicio, incluyendo una landing page estilo producto con imagen hero, estadísticas y cuadrículas de características
|
||||
- Encabezado flotante con efecto cristal y atajo de búsqueda ⌘K / Ctrl+K
|
||||
- Lienzo de fondo global con secciones hero que se disuelven en él al hacer scroll
|
||||
- Barra de progreso de lectura para artículos
|
||||
- Selector interactivo de diseños de página de inicio para previsualizaciones en vivo
|
||||
- Skill de agente para que los agentes de programación con IA (como Claude Code) instalen y configuren el tema por ti
|
||||
- Páginas aptas para impresión con estilos de impresión dedicados
|
||||
- Configuración altamente personalizable
|
||||
- Integración con Firebase para soportar datos dinámicos
|
||||
- Contador de vistas y mecanismo de likes
|
||||
- Artículos relacionados
|
||||
- Múltiples diseños de página de inicio
|
||||
- Múltiples autores
|
||||
- Series de artículos
|
||||
- Ordenación de artículos basada en fecha y peso
|
||||
@@ -44,7 +46,7 @@ Blowfish está diseñado para ser un tema potente y ligero para [Hugo](https://g
|
||||
- Tabla de contenidos con desplazamiento
|
||||
- Soporte de contenido multilingüe incluyendo idiomas RTL
|
||||
- Capacidad de enlazar a publicaciones en sitios web de terceros
|
||||
- Soporte para varios shortcodes como Gallery, Timeline, GitHub cards y Carousels
|
||||
- Más de 40 shortcodes incluyendo Gallery, Timeline, GitHub cards, Carousels, Stats, cuadrículas de características, Steps y botones CTA
|
||||
- Sintaxis de GitHub Alerts, 15 tipos, soporte plegable
|
||||
- Integración con Buymeacoffee
|
||||
- Búsqueda en el sitio del lado del cliente impulsada por Fuse.js
|
||||
@@ -80,11 +82,22 @@ Blowfish soporta varios métodos de instalación - como submódulo de git, módu
|
||||
|
||||
Las instrucciones detalladas para cada método se pueden encontrar en la documentación de [Instalación](https://blowfish.page/docs/installation). Deberías consultar la documentación para obtener la experiencia de configuración más simple. A continuación se presenta una guía de inicio rápido usando submódulos si estás usando git, o módulos de Hugo si ya tienes confianza instalando temas de Hugo.
|
||||
|
||||
### Inicio rápido con un agente de IA
|
||||
|
||||
Blowfish incluye un [agent skill](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) que enseña a los agentes de programación con IA — como Claude Code — a instalar, configurar y construir sitios con el tema. Instálalo desde el marketplace de plugins de Blowfish en Claude Code:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
O simplemente copia la carpeta del skill en el repositorio de tu sitio en `.claude/skills/blowfish/` — los agentes detectan los skills de proyecto automáticamente. Después pídele a tu agente que configure Blowfish por ti.
|
||||
|
||||
### Inicio rápido usando Blowfish Tools
|
||||
|
||||
> **Nota:** Asegúrate de tener **Node.js**, **Git** y **Hugo** instalados, y de haber creado un nuevo proyecto Hugo antes de continuar.
|
||||
|
||||
Acabamos de lanzar una nueva herramienta CLI para ayudarte a comenzar con Blowfish. Creará un nuevo proyecto Hugo, instalará el tema y configurará los archivos de configuración del tema por ti. Todavía está en beta, así que por favor [reporta cualquier problema que encuentres](https://github.com/nunocoracao/blowfish-tools).
|
||||
Blowfish Tools es una herramienta CLI que te ayuda a comenzar con Blowfish. Creará un nuevo proyecto Hugo, instalará el tema y configurará los archivos de configuración del tema por ti. Por favor [reporta cualquier problema que encuentres](https://github.com/nunocoracao/blowfish-tools).
|
||||
|
||||
Instala la herramienta CLI globalmente usando npm (u otro gestor de paquetes):
|
||||
```shell
|
||||
@@ -137,7 +150,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. Inicia tu servidor usando `hugo server` y el tema se descargará automáticamente.
|
||||
@@ -156,6 +169,10 @@ A medida que se publiquen nuevas versiones, puedes actualizar el tema usando Hug
|
||||
|
||||
Las [instrucciones de actualización](https://blowfish.page/docs/installation/#installing-updates) detalladas están disponibles en la documentación.
|
||||
|
||||
### Actualización de v2 a v3
|
||||
|
||||
Blowfish v3 es totalmente retrocompatible: cada nueva característica es opcional y no se ha eliminado ninguna opción de configuración ni plantilla. Las instalaciones con submódulo de git y manuales se actualizan como de costumbre sin cambios; los usuarios de módulos de Hugo solo tienen que cambiar la ruta de importación en `config/_default/module.toml` de `github.com/nunocoracao/blowfish/v2` a `github.com/nunocoracao/blowfish/v3` y ejecutar `hugo mod get -u`. Consulta las [instrucciones de actualización](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3) para más detalles.
|
||||
|
||||
---
|
||||
|
||||
## Contribuciones
|
||||
@@ -172,8 +189,4 @@ Si puedes corregir un error o implementar una nueva característica, acepto PRs
|
||||
|
||||
---
|
||||
|
||||
## Stargazers a lo largo del tiempo
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -1,7 +1,7 @@
|
||||
[English](https://github.com/nunocoracao/blowfish/blob/main/README.md) | Français | [Deutsch](https://github.com/nunocoracao/blowfish/blob/main/README.de.md) | [Português (PT)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-pt.md) | [Português (BR)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-br.md) | [Español](https://github.com/nunocoracao/blowfish/blob/main/README.es.md) | [日本語](https://github.com/nunocoracao/blowfish/blob/main/README.ja.md) | [简体中文](https://github.com/nunocoracao/blowfish/blob/main/README.zh-cn.md) | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfish est conçu pour être un thème puissant et léger pour [Hugo](https://
|
||||
|
||||
🌏 [Site de démonstration](https://blowfish.page/)
|
||||
📑 [Documentation du thème](https://blowfish.page/docs/)
|
||||
💎 [Boutique de produits dérivés](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Rapports de bugs et problèmes](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [Questions et demandes de fonctionnalités](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## Fonctionnalités
|
||||
|
||||
- Disposition entièrement responsive construite avec Tailwind CSS 3.0
|
||||
- Disposition entièrement responsive construite avec Tailwind CSS 4
|
||||
- Plusieurs palettes de couleurs (ou personnalisez entièrement la vôtre)
|
||||
- Mode sombre (forcé activé/désactivé ou basculement automatique avec commutateur utilisateur)
|
||||
- Plusieurs mises en page pour la page d'accueil, y compris une page d'atterrissage de style produit avec image hero, statistiques et grilles de fonctionnalités
|
||||
- En-tête flottant effet verre avec raccourci de recherche ⌘K / Ctrl+K
|
||||
- Canevas d'arrière-plan global avec des sections hero qui s'y dissolvent au défilement
|
||||
- Barre de progression de lecture pour les articles
|
||||
- Sélecteur interactif de mise en page de la page d'accueil pour des aperçus en direct
|
||||
- Skill d'agent permettant aux agents de codage IA (comme Claude Code) d'installer et de configurer le thème pour vous
|
||||
- Pages adaptées à l'impression avec des styles d'impression dédiés
|
||||
- Configuration hautement personnalisable
|
||||
- Intégration Firebase pour prendre en charge les données dynamiques
|
||||
- Compteur de vues et mécanisme de likes
|
||||
- Articles connexes
|
||||
- Plusieurs mises en page pour la page d'accueil
|
||||
- Plusieurs auteurs
|
||||
- Séries d'articles
|
||||
- Tri des articles basé sur la date et le poids
|
||||
@@ -44,7 +46,7 @@ Blowfish est conçu pour être un thème puissant et léger pour [Hugo](https://
|
||||
- Table des matières défilable
|
||||
- Support du contenu multilingue incluant la prise en charge des langues RTL
|
||||
- Possibilité de lier des articles sur des sites web tiers
|
||||
- Prise en charge de plusieurs shortcodes comme Gallery, Timeline, GitHub cards et Carousels
|
||||
- Plus de 40 shortcodes incluant Gallery, Timeline, GitHub cards, Carousels, Stats, grilles de fonctionnalités, Steps et boutons CTA
|
||||
- Syntaxe GitHub Alerts, 15 types, support pliable
|
||||
- Intégration Buymeacoffee
|
||||
- Recherche côté client alimentée par Fuse.js
|
||||
@@ -80,11 +82,22 @@ Blowfish prend en charge plusieurs méthodes d'installation - en tant que sous-m
|
||||
|
||||
Des instructions détaillées pour chaque méthode se trouvent dans la documentation [Installation](https://blowfish.page/docs/installation). Vous devriez consulter la documentation pour l'expérience de configuration la plus simple. Ci-dessous se trouve un guide de démarrage rapide utilisant les sous-modules si vous utilisez git, ou les modules Hugo si vous êtes déjà à l'aise avec l'installation de thèmes Hugo.
|
||||
|
||||
### Démarrage rapide avec un agent IA
|
||||
|
||||
Blowfish inclut un [agent skill](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) qui apprend aux agents de codage IA — comme Claude Code — à installer, configurer et construire des sites avec le thème. Installez-le depuis la marketplace de plugins Blowfish dans Claude Code :
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
Ou copiez simplement le dossier du skill dans le dépôt de votre site à l'emplacement `.claude/skills/blowfish/` — les agents détectent automatiquement les skills de projet. Demandez ensuite à votre agent de configurer Blowfish pour vous.
|
||||
|
||||
### Démarrage rapide avec Blowfish Tools
|
||||
|
||||
> **Note :** Assurez-vous d'avoir **Node.js**, **Git** et **Hugo** installés, et d'avoir créé un nouveau projet Hugo avant de continuer.
|
||||
|
||||
Nous venons de lancer un nouvel outil CLI pour vous aider à démarrer avec Blowfish. Il créera un nouveau projet Hugo, installera le thème et configurera les fichiers de configuration du thème pour vous. Il est encore en version bêta, veuillez donc [signaler tout problème que vous rencontrez](https://github.com/nunocoracao/blowfish-tools).
|
||||
Blowfish Tools est un outil CLI qui vous aide à démarrer avec Blowfish. Il créera un nouveau projet Hugo, installera le thème et configurera les fichiers de configuration du thème pour vous. Veuillez [signaler tout problème que vous rencontrez](https://github.com/nunocoracao/blowfish-tools).
|
||||
|
||||
Installez l'outil CLI globalement en utilisant npm (ou un autre gestionnaire de paquets) :
|
||||
```shell
|
||||
@@ -137,7 +150,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. Démarrez votre serveur en utilisant `hugo server` et le thème sera téléchargé automatiquement.
|
||||
@@ -156,6 +169,10 @@ Au fur et à mesure que de nouvelles versions sont publiées, vous pouvez mettre
|
||||
|
||||
Des [instructions de mise à jour](https://blowfish.page/docs/installation/#installing-updates) détaillées sont disponibles dans la documentation.
|
||||
|
||||
### Mise à niveau de v2 vers v3
|
||||
|
||||
Blowfish v3 est entièrement rétrocompatible : chaque nouvelle fonctionnalité est optionnelle et aucune option de configuration ni aucun template n'a été supprimé. Les installations par sous-module git et manuelles se mettent à niveau comme d'habitude, sans aucun changement ; les utilisateurs de modules Hugo doivent simplement changer le chemin d'import dans `config/_default/module.toml` de `github.com/nunocoracao/blowfish/v2` à `github.com/nunocoracao/blowfish/v3` puis exécuter `hugo mod get -u`. Consultez les [instructions de mise à niveau](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3) pour plus de détails.
|
||||
|
||||
---
|
||||
|
||||
## Contribuer
|
||||
@@ -172,8 +189,4 @@ Si vous êtes en mesure de corriger un bug ou de mettre en œuvre une nouvelle f
|
||||
|
||||
---
|
||||
|
||||
## Évolution des stargazers
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,23 +13,27 @@ Blowfish dirancang sebagai tema yang kuat dan ringan untuk [Hugo](https://gohugo
|
||||
|
||||
🌏 [Situs demo](https://blowfish.page/)
|
||||
📑 [Dokumentasi tema](https://blowfish.page/docs/)
|
||||
💎 [Toko Merch](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Laporan bug & masalah](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [Pertanyaan & permintaan fitur](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Belikan Saya Kopi" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Toko Merch &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
## Fitur
|
||||
|
||||
- Tata letak responsif sepenuhnya dengan Tailwind CSS 3.0
|
||||
- Tata letak responsif sepenuhnya dengan Tailwind CSS 4
|
||||
- Beragam skema warna (atau sesuaikan sendiri)
|
||||
- Mode gelap (paksa aktif/nonaktif atau otomatis dengan pengaturan pengguna)
|
||||
- Beragam tata letak halaman utama, termasuk landing page bergaya produk dengan gambar hero, statistik, dan grid fitur
|
||||
- Header kaca mengambang dengan pintasan pencarian ⌘K / Ctrl+K
|
||||
- Kanvas latar belakang global dengan bagian hero yang melebur ke dalamnya saat digulir
|
||||
- Bilah kemajuan membaca untuk artikel
|
||||
- Pengalih tata letak halaman utama interaktif untuk pratinjau langsung
|
||||
- Agent skill agar agen pemrograman AI (seperti Claude Code) dapat menginstal dan mengonfigurasi tema untuk Anda
|
||||
- Halaman ramah cetak dengan gaya cetak khusus
|
||||
- Konfigurasi yang sangat dapat disesuaikan
|
||||
- Integrasi Firebase untuk mendukung data dinamis
|
||||
- Penghitung tampilan & mekanisme suka
|
||||
- Artikel terkait
|
||||
- Beragam tata letak halaman utama
|
||||
- Dukungan untuk banyak penulis
|
||||
- Seri artikel
|
||||
- Penyortiran artikel berdasarkan tanggal dan bobot
|
||||
@@ -40,7 +44,7 @@ Blowfish dirancang sebagai tema yang kuat dan ringan untuk [Hugo](https://gohugo
|
||||
- Daftar isi yang dapat digulir
|
||||
- Dukungan untuk konten multibahasa termasuk bahasa RTL
|
||||
- Kemampuan untuk menautkan ke artikel di situs web pihak ketiga
|
||||
- Dukungan untuk beberapa shortcode seperti Galeri, Timeline, Kartu GitHub, dan Carousel
|
||||
- Lebih dari 40 shortcode termasuk Galeri, Timeline, Kartu GitHub, Carousel, Statistik, Grid fitur, Langkah, dan tombol CTA
|
||||
- Sintaks GitHub Alerts, 15 jenis, dukungan lipat
|
||||
- Integrasi BuyMeACoffee
|
||||
- Pencarian situs berbasis klien dengan Fuse.js
|
||||
@@ -74,13 +78,24 @@ Blowfish memiliki [dokumentasi lengkap](https://blowfish.page/docs/) yang mencak
|
||||
|
||||
Blowfish mendukung beberapa metode instalasi - sebagai submodul git, Modul Hugo, atau instalasi manual sepenuhnya.
|
||||
|
||||
Instruksi terperinci untuk setiap metode dapat ditemukan dalam [dokumentasi instalasi](https://blowfish.page/docs/installation).
|
||||
Instruksi terperinci untuk setiap metode dapat ditemukan dalam [dokumentasi instalasi](https://blowfish.page/docs/installation). Anda sebaiknya membaca dokumentasi untuk pengalaman penyiapan yang paling sederhana. Berikut ini adalah panduan memulai cepat menggunakan submodul jika Anda menggunakan git, atau modul Hugo jika Anda sudah terbiasa menginstal tema Hugo.
|
||||
|
||||
### Instalasi Cepat Menggunakan Agen AI
|
||||
|
||||
Blowfish menyertakan sebuah [agent skill](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) yang mengajarkan agen pemrograman AI — seperti Claude Code — cara menginstal, mengonfigurasi, dan membangun situs dengan tema ini. Instal dari marketplace plugin Blowfish di Claude Code:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
Atau cukup salin folder skill ke repositori situs Anda di `.claude/skills/blowfish/` — agen akan mengenali skill proyek secara otomatis. Kemudian minta agen Anda untuk menyiapkan Blowfish untuk Anda.
|
||||
|
||||
### Instalasi Cepat Menggunakan Blowfish Tools
|
||||
|
||||
> **Catatan:** Pastikan Anda sudah menginstal **Node.js**, **Git**, dan **Hugo**, serta telah membuat proyek Hugo sebelum melanjutkan.
|
||||
|
||||
Kami baru saja meluncurkan alat CLI baru untuk membantu Anda memulai dengan Blowfish. Ini akan membuat proyek Hugo baru, menginstal tema, dan mengatur file konfigurasi tema untuk Anda.
|
||||
Blowfish Tools adalah alat CLI yang membantu Anda memulai dengan Blowfish. Alat ini akan membuat proyek Hugo baru, menginstal tema, dan mengatur file konfigurasi tema untuk Anda. Silakan [laporkan masalah apa pun yang Anda temukan](https://github.com/nunocoracao/blowfish-tools).
|
||||
|
||||
Instal alat CLI secara global menggunakan npm (atau manajer paket lainnya):
|
||||
```shell
|
||||
@@ -113,17 +128,45 @@ blowfish-tools new mynewsite
|
||||
|
||||
3. Hapus file `hugo.toml` di root proyek dan salin file `*.toml` dari tema ke dalam folder `config/_default/`.
|
||||
|
||||
Anda akan menemukan file konfigurasi tema ini di direktori cache Hugo, atau [unduh salinannya](https://github.com/nunocoracao/blowfish/releases/latest/download/config-default.zip) dari GitHub.
|
||||
|
||||
4. Ikuti petunjuk [Memulai](https://blowfish.page/docs/getting-started/) untuk mengonfigurasi situs web Anda.
|
||||
|
||||
### Memperbarui Tema
|
||||
### Instalasi Cepat Menggunakan Hugo
|
||||
|
||||
Untuk memperbarui tema ke rilis terbaru, cukup jalankan perintah berikut di direktori proyek Anda:
|
||||
```shell
|
||||
hugo mod get -u
|
||||
```
|
||||
> **Catatan:** Pastikan Anda sudah menginstal **Go** dan **Hugo**, serta telah membuat proyek Hugo baru sebelum melanjutkan.
|
||||
|
||||
1. Dari direktori proyek Anda, inisialisasi Hugo Modules:
|
||||
```shell
|
||||
hugo mod init github.com/<username>/<repo-name>
|
||||
```
|
||||
|
||||
2. Buat `config/_default/module.toml` dan tambahkan berikut ini:
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. Jalankan server Anda menggunakan `hugo server` dan tema akan diunduh secara otomatis.
|
||||
|
||||
4. Di folder root situs web Anda, hapus file `hugo.toml` yang dibuat oleh Hugo. Salin file konfigurasi `*.toml` dari tema ke folder `config/_default/` Anda.
|
||||
|
||||
> **Catatan:** Jangan menimpa file `module.toml` yang Anda buat di atas!
|
||||
|
||||
Anda akan menemukan file konfigurasi tema ini di direktori cache Hugo, atau [unduh salinannya](https://github.com/nunocoracao/blowfish/releases/latest/download/config-default.zip) dari GitHub.
|
||||
|
||||
5. Ikuti petunjuk [Memulai](https://blowfish.page/docs/getting-started/) untuk mengonfigurasi situs web Anda.
|
||||
|
||||
### Menginstal Pembaruan Tema
|
||||
|
||||
Saat rilis baru diterbitkan, Anda dapat memperbarui tema menggunakan Hugo. Cukup jalankan `hugo mod get -u` dari direktori proyek Anda dan tema akan diperbarui secara otomatis ke rilis terbaru.
|
||||
|
||||
Instruksi pembaruan selengkapnya tersedia dalam [dokumentasi instalasi](https://blowfish.page/docs/installation/#installing-updates).
|
||||
|
||||
### Peningkatan dari v2 ke v3
|
||||
|
||||
Blowfish v3 sepenuhnya kompatibel dengan versi sebelumnya: setiap fitur baru bersifat opsional dan tidak ada opsi konfigurasi atau templat yang dihapus. Instalasi submodul git dan manual diperbarui seperti biasa tanpa perubahan apa pun; pengguna modul Hugo cukup mengubah jalur impor di `config/_default/module.toml` dari `github.com/nunocoracao/blowfish/v2` menjadi `github.com/nunocoracao/blowfish/v3` lalu menjalankan `hugo mod get -u`. Lihat [instruksi peningkatan](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3) untuk detailnya.
|
||||
|
||||
---
|
||||
|
||||
## Kontribusi
|
||||
@@ -138,8 +181,6 @@ Jika Anda bisa memperbaiki bug atau menambahkan fitur baru, kontribusi dalam ben
|
||||
|
||||
---
|
||||
|
||||
## Grafik Stargazers
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -1,7 +1,7 @@
|
||||
[English](https://github.com/nunocoracao/blowfish/blob/main/README.md) | [Français](https://github.com/nunocoracao/blowfish/blob/main/README.fr.md) | [Deutsch](https://github.com/nunocoracao/blowfish/blob/main/README.de.md) | [Português (PT)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-pt.md) | [Português (BR)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-br.md) | [Español](https://github.com/nunocoracao/blowfish/blob/main/README.es.md) | 日本語 | [简体中文](https://github.com/nunocoracao/blowfish/blob/main/README.zh-cn.md) | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfishは[Hugo](https://gohugo.io)のために設計された強力で軽量
|
||||
|
||||
🌏 [デモサイト](https://blowfish.page/)
|
||||
📑 [ドキュメント](https://blowfish.page/docs/)
|
||||
💎 [グッズストア](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [バグ報告と問題点](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [質問と機能リクエスト](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## 機能
|
||||
|
||||
- Tailwind CSS 3.0 で構築された、完璧なレスポンシブデザイン
|
||||
- Tailwind CSS 4 で構築された、完璧なレスポンシブデザイン
|
||||
- 複数の配色 (または、自分で完全にカスタマイズ可能)
|
||||
- ダークモード (強制オン/オフ か 自動選択・ユーザー切り替え)
|
||||
- ヒーロー画像・統計・機能グリッドを備えたプロダクト風ランディングページを含む、複数のホームページレイアウト
|
||||
- ⌘K / Ctrl+K 検索ショートカット付きのフローティング グラスヘッダー
|
||||
- スクロールに合わせてヒーローが溶け込むグローバル背景キャンバス
|
||||
- 記事の読了プログレスバー
|
||||
- ライブプレビューできるインタラクティブなホームページレイアウト切り替え機能
|
||||
- AI コーディングエージェント (Claude Code など) がテーマのインストールと設定を代行できるエージェントスキル
|
||||
- 専用の印刷スタイルによる印刷に適したページ
|
||||
- 高度なカスタマイズが可能な設定
|
||||
- Firebase 連携で動的データをサポート
|
||||
- 閲覧数といいね機能
|
||||
- 関連記事
|
||||
- 複数のホームページレイアウト
|
||||
- 複数人の著者
|
||||
- シリーズ記事
|
||||
- 日付と価値付けによる記事の並べ替え
|
||||
@@ -44,7 +46,7 @@ Blowfishは[Hugo](https://gohugo.io)のために設計された強力で軽量
|
||||
- スクロール可能な目次
|
||||
- RTL 言語を含む多言語コンテンツのサポート
|
||||
- サードパーティー ウェブサイトの投稿へのリンク
|
||||
- ギャラリー、タイムライン、GitHub カード、カルーセルなど、複数のショートコードに対応
|
||||
- ギャラリー、タイムライン、GitHub カード、カルーセル、統計、機能グリッド、ステップ、CTA ボタンなど、40 種類以上のショートコード
|
||||
- GitHub Alerts 構文、15 種類、折りたたみ対応
|
||||
- Buy Me a Coffee 連携
|
||||
- Fuse.js を利用したクライアントサイドのサイト内検索
|
||||
@@ -80,11 +82,22 @@ Blowfish は、git サブモジュール、Hugo モジュール、または完
|
||||
|
||||
各方法の詳細な手順は、[インストール](https://blowfish.page/docs/installation)ドキュメントに記載されています。最も簡単なセットアップ方法については、ドキュメントを参照してください。以下にクイックスタートガイドを示します。git を使用している場合はサブモジュール、Hugo テーマのインストールに慣れている場合は Hugo モジュールを使用するのがおすすめです。
|
||||
|
||||
### AI エージェントを使ったクイックスタート
|
||||
|
||||
Blowfish には、AI コーディングエージェント (Claude Code など) にテーマのインストール、設定、サイト構築の方法を教える[エージェントスキル](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish)が同梱されています。Claude Code で Blowfish プラグインマーケットプレイスからインストールしてください:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
または、スキルフォルダをサイトのリポジトリの `.claude/skills/blowfish/` にコピーするだけでも構いません。エージェントはプロジェクトスキルを自動的に認識します。あとはエージェントに Blowfish のセットアップを依頼してください。
|
||||
|
||||
### Blowfish Tools を使ったクイックスタート
|
||||
|
||||
> **注意:** **Node.js**、**Git**、**Hugo** がインストールされていること、そして先に進む前に新しい Hugo プロジェクトが作成されていることを確認してください。
|
||||
|
||||
Blowfish を使い始めるのに役立つ新しい CLI ツールをリリースしました。このツールは、新しい Hugo プロジェクトを作成し、テーマをインストールし、テーマ設定ファイルをセットアップします。まだベータ版なので、[問題を見つけたら報告してください](https://github.com/nunocoracao/blowfish-tools)。
|
||||
Blowfish Tools は、Blowfish を使い始めるのに役立つ CLI ツールです。このツールは、新しい Hugo プロジェクトを作成し、テーマをインストールし、テーマ設定ファイルをセットアップします。[問題を見つけたら報告してください](https://github.com/nunocoracao/blowfish-tools)。
|
||||
|
||||
npm(または他のパッケージマネージャー)を使って CLI ツールをグローバルにインストールします:
|
||||
```shell
|
||||
@@ -137,7 +150,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. `hugo server` を使用してサーバーを起動すると、テーマが自動的にダウンロードされます。
|
||||
@@ -156,6 +169,10 @@ blowfish-tools new mynewsite
|
||||
|
||||
詳細な[アップデート手順](https://blowfish.page/docs/installation/#installing-updates)はドキュメントに記載されています。
|
||||
|
||||
### v2 から v3 へのアップグレード
|
||||
|
||||
Blowfish v3 は完全な後方互換性を備えています。新機能はすべてオプトインで、設定オプションやテンプレートの削除は一切ありません。git サブモジュールや手動インストールの場合は、変更なしで通常どおりアップグレードできます。Hugo モジュールを使用している場合は、`config/_default/module.toml` のインポートパスを `github.com/nunocoracao/blowfish/v2` から `github.com/nunocoracao/blowfish/v3` に変更して `hugo mod get -u` を実行するだけです。詳細は[アップグレード手順](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3)を参照してください。
|
||||
|
||||
---
|
||||
|
||||
## 貢献
|
||||
@@ -172,8 +189,4 @@ Blowfish は時間とともに進化していく予定です。必要に応じ
|
||||
|
||||
---
|
||||
|
||||
## スター数の推移
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -1,7 +1,7 @@
|
||||
English | [Français](https://github.com/nunocoracao/blowfish/blob/main/README.fr.md) | [Deutsch](https://github.com/nunocoracao/blowfish/blob/main/README.de.md) | [Português (PT)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-pt.md) | [Português (BR)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-br.md) | [Español](https://github.com/nunocoracao/blowfish/blob/main/README.es.md) | [日本語](https://github.com/nunocoracao/blowfish/blob/main/README.ja.md) | [简体中文](https://github.com/nunocoracao/blowfish/blob/main/README.zh-cn.md) | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfish is designed to be a powerful, lightweight theme for [Hugo](https://gohu
|
||||
|
||||
🌏 [Demo site](https://blowfish.page/)
|
||||
📑 [Theme documentation](https://blowfish.page/docs/)
|
||||
💎 [Merch Store](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Bug reports & issues](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [Questions & feature requests](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
- Fully responsive layout built with Tailwind CSS 3.0
|
||||
- Fully responsive layout built with Tailwind CSS 4
|
||||
- Multiple colour schemes (or fully customise your own)
|
||||
- Dark mode (forced on/off or auto-switching with user toggle)
|
||||
- Multiple homepage layouts including a product-style landing page with hero image, stats, and feature grids
|
||||
- Floating glass header with ⌘K / Ctrl+K search shortcut
|
||||
- Global background canvas with heroes that dissolve into it on scroll
|
||||
- Reading progress bar for articles
|
||||
- Interactive homepage layout switcher for live previews
|
||||
- Agent skill so AI coding agents (like Claude Code) can install and configure the theme for you
|
||||
- Print-friendly pages with dedicated print styles
|
||||
- Highly customisable configuration
|
||||
- Firebase integration to support dynamic data
|
||||
- Views count & like mechanism
|
||||
- Related articles
|
||||
- Multiple homepage layouts
|
||||
- Multiple authors
|
||||
- Series of articles
|
||||
- Date and weight based article sorting
|
||||
@@ -44,7 +46,7 @@ Blowfish is designed to be a powerful, lightweight theme for [Hugo](https://gohu
|
||||
- Scrollable table of contents
|
||||
- Multilingual content support including support for RTL languages
|
||||
- Ability to link to posts on third-party websites
|
||||
- Support for several shortcodes like Gallery, Timeline, GitHub cards, and Carousels
|
||||
- 40+ shortcodes including Gallery, Timeline, GitHub cards, Carousels, Stats, Feature grids, Steps, and CTA buttons
|
||||
- GitHub Alerts syntax, 15 types, collapsible support
|
||||
- Buymeacoffee integration
|
||||
- Client-side site search powered by Fuse.js
|
||||
@@ -80,11 +82,22 @@ Blowfish supports several installation methods - as a git submodule, a Hugo Modu
|
||||
|
||||
Detailed instructions for each method can be found in the [Installation](https://blowfish.page/docs/installation) docs. You should consult the documentation for the simplest setup experience. Below is a quick start guide using submodules if you are using git, or Hugo modules if you're already confident installing Hugo themes.
|
||||
|
||||
### Quick start with an AI agent
|
||||
|
||||
Blowfish ships an [agent skill](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) that teaches AI coding agents — like Claude Code — how to install, configure, and build sites with the theme. Install it from the Blowfish plugin marketplace in Claude Code:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
Or simply copy the skill folder into your site repository at `.claude/skills/blowfish/` — agents pick up project skills automatically. Then ask your agent to set up Blowfish for you.
|
||||
|
||||
### Quick start using Blowfish Tools
|
||||
|
||||
> **Note:** Ensure you have **Node.js**, **Git** and **Hugo** installed, and that you have created a new Hugo project before proceeding.
|
||||
|
||||
We just launched a new CLI tool to help you get started with Blowfish. It will create a new Hugo project, install the theme and set up the theme configuration files for you. It's still in beta so please [report any issues you find](https://github.com/nunocoracao/blowfish-tools).
|
||||
Blowfish Tools is a CLI that helps you get started with Blowfish. It will create a new Hugo project, install the theme and set up the theme configuration files for you. Please [report any issues you find](https://github.com/nunocoracao/blowfish-tools).
|
||||
|
||||
Install the CLI tool globally using npm (or other package manager):
|
||||
```shell
|
||||
@@ -137,7 +150,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. Start your server using `hugo server` and the theme will be downloaded automatically.
|
||||
@@ -156,6 +169,10 @@ As new releases are posted, you can update the theme using Hugo. Simply run `hug
|
||||
|
||||
Detailed [update instructions](https://blowfish.page/docs/installation/#installing-updates) are available in the docs.
|
||||
|
||||
### Upgrading from v2 to v3
|
||||
|
||||
Blowfish v3 is fully backwards compatible: every new feature is opt-in and no configuration options or templates were removed. Git submodule and manual installs upgrade as usual with no changes; Hugo module users just change the import path in `config/_default/module.toml` from `github.com/nunocoracao/blowfish/v2` to `github.com/nunocoracao/blowfish/v3` and run `hugo mod get -u`. See the [upgrade instructions](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3) for details.
|
||||
|
||||
---
|
||||
|
||||
## Contributing
|
||||
@@ -172,8 +189,4 @@ If you're able to fix a bug or implement a new feature, I welcome PRs for this p
|
||||
|
||||
---
|
||||
|
||||
## Stargazers over time
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -1,7 +1,7 @@
|
||||
[English](https://github.com/nunocoracao/blowfish/blob/main/README.md) | [Français](https://github.com/nunocoracao/blowfish/blob/main/README.fr.md) | [Deutsch](https://github.com/nunocoracao/blowfish/blob/main/README.de.md) | [Português (PT)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-pt.md) | Português (BR) | [Español](https://github.com/nunocoracao/blowfish/blob/main/README.es.md) | [日本語](https://github.com/nunocoracao/blowfish/blob/main/README.ja.md) | [简体中文](https://github.com/nunocoracao/blowfish/blob/main/README.zh-cn.md) | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfish foi projetado para ser um tema poderoso e leve para [Hugo](https://gohu
|
||||
|
||||
🌏 [Site de demonstração](https://blowfish.page/)
|
||||
📑 [Documentação do tema](https://blowfish.page/docs/)
|
||||
💎 [Loja de produtos](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Relatórios de bugs e problemas](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [Perguntas e solicitações de recursos](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## Recursos
|
||||
|
||||
- Layout totalmente responsivo construído com Tailwind CSS 3.0
|
||||
- Layout totalmente responsivo construído com Tailwind CSS 4
|
||||
- Múltiplos esquemas de cores (ou personalize completamente o seu próprio)
|
||||
- Modo escuro (forçado ligado/desligado ou alternância automática com botão do usuário)
|
||||
- Múltiplos layouts de página inicial, incluindo uma landing page estilo produto com imagem hero, estatísticas e grades de recursos
|
||||
- Cabeçalho flutuante com efeito de vidro e atalho de busca ⌘K / Ctrl+K
|
||||
- Tela de fundo global com seções hero que se dissolvem nela ao rolar a página
|
||||
- Barra de progresso de leitura para artigos
|
||||
- Seletor interativo de layouts da página inicial para pré-visualizações ao vivo
|
||||
- Skill de agente para que agentes de programação com IA (como o Claude Code) instalem e configurem o tema para você
|
||||
- Páginas adequadas para impressão com estilos de impressão dedicados
|
||||
- Configuração altamente personalizável
|
||||
- Integração com Firebase para suportar dados dinâmicos
|
||||
- Contagem de visualizações e mecanismo de curtidas
|
||||
- Artigos relacionados
|
||||
- Múltiplos layouts de página inicial
|
||||
- Múltiplos autores
|
||||
- Séries de artigos
|
||||
- Ordenação de artigos baseada em data e peso
|
||||
@@ -44,7 +46,7 @@ Blowfish foi projetado para ser um tema poderoso e leve para [Hugo](https://gohu
|
||||
- Índice com rolagem
|
||||
- Suporte a conteúdo multilíngue incluindo suporte para idiomas RTL
|
||||
- Capacidade de linkar para posts em sites de terceiros
|
||||
- Suporte para vários shortcodes como Gallery, Timeline, GitHub cards e Carousels
|
||||
- Mais de 40 shortcodes incluindo Gallery, Timeline, GitHub cards, Carousels, Stats, grades de recursos, Steps e botões CTA
|
||||
- Sintaxe de alertas do GitHub, 15 tipos, suporte recolhível
|
||||
- Integração com Buymeacoffee
|
||||
- Busca no site do lado do cliente alimentada por Fuse.js
|
||||
@@ -80,11 +82,22 @@ Blowfish suporta vários métodos de instalação - como submódulo git, Hugo Mo
|
||||
|
||||
Instruções detalhadas para cada método podem ser encontradas na documentação de [Instalação](https://blowfish.page/docs/installation). Você deve consultar a documentação para a experiência de configuração mais simples. Abaixo está um guia de início rápido usando submódulos se você estiver usando git, ou Hugo modules se você já estiver confiante em instalar temas Hugo.
|
||||
|
||||
### Início rápido com um agente de IA
|
||||
|
||||
Blowfish inclui um [agent skill](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) que ensina agentes de programação com IA — como o Claude Code — a instalar, configurar e construir sites com o tema. Instale-o a partir do marketplace de plugins do Blowfish no Claude Code:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
Ou simplesmente copie a pasta do skill para o repositório do seu site em `.claude/skills/blowfish/` — os agentes detectam skills de projeto automaticamente. Depois peça ao seu agente para configurar o Blowfish para você.
|
||||
|
||||
### Início rápido usando Blowfish Tools
|
||||
|
||||
> **Nota:** Certifique-se de ter **Node.js**, **Git** e **Hugo** instalados, e que você criou um novo projeto Hugo antes de prosseguir.
|
||||
|
||||
Acabamos de lançar uma nova ferramenta CLI para ajudá-lo a começar com Blowfish. Ela criará um novo projeto Hugo, instalará o tema e configurará os arquivos de configuração do tema para você. Ainda está em beta, então por favor [reporte quaisquer problemas que encontrar](https://github.com/nunocoracao/blowfish-tools).
|
||||
Blowfish Tools é uma ferramenta CLI que ajuda você a começar com Blowfish. Ela criará um novo projeto Hugo, instalará o tema e configurará os arquivos de configuração do tema para você. Por favor [reporte quaisquer problemas que encontrar](https://github.com/nunocoracao/blowfish-tools).
|
||||
|
||||
Instale a ferramenta CLI globalmente usando npm (ou outro gerenciador de pacotes):
|
||||
```shell
|
||||
@@ -137,7 +150,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. Inicie seu servidor usando `hugo server` e o tema será baixado automaticamente.
|
||||
@@ -156,6 +169,10 @@ blowfish-tools new mynewsite
|
||||
|
||||
[Instruções detalhadas de atualização](https://blowfish.page/docs/installation/#installing-updates) estão disponíveis na documentação.
|
||||
|
||||
### Atualizando da v2 para a v3
|
||||
|
||||
Blowfish v3 é totalmente retrocompatível: todos os novos recursos são opcionais e nenhuma opção de configuração ou template foi removida. As instalações por submódulo git e manuais são atualizadas normalmente, sem alterações; usuários de módulos Hugo só precisam alterar o caminho de importação em `config/_default/module.toml` de `github.com/nunocoracao/blowfish/v2` para `github.com/nunocoracao/blowfish/v3` e executar `hugo mod get -u`. Consulte as [instruções de atualização](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3) para mais detalhes.
|
||||
|
||||
---
|
||||
|
||||
## Contribuindo
|
||||
@@ -172,8 +189,4 @@ Se você for capaz de corrigir um bug ou implementar um novo recurso, dou as boa
|
||||
|
||||
---
|
||||
|
||||
## Stargazers ao longo do tempo
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -1,7 +1,7 @@
|
||||
[English](https://github.com/nunocoracao/blowfish/blob/main/README.md) | [Français](https://github.com/nunocoracao/blowfish/blob/main/README.fr.md) | [Deutsch](https://github.com/nunocoracao/blowfish/blob/main/README.de.md) | Português (PT) | [Português (BR)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-br.md) | [Español](https://github.com/nunocoracao/blowfish/blob/main/README.es.md) | [日本語](https://github.com/nunocoracao/blowfish/blob/main/README.ja.md) | [简体中文](https://github.com/nunocoracao/blowfish/blob/main/README.zh-cn.md) | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfish foi desenhado para ser um tema poderoso e leve para [Hugo](https://gohu
|
||||
|
||||
🌏 [Site de demonstração](https://blowfish.page/)
|
||||
📑 [Documentação do tema](https://blowfish.page/docs/)
|
||||
💎 [Loja de merchandising](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Relatórios de erros & problemas](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [Questões & pedidos de funcionalidades](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## Funcionalidades
|
||||
|
||||
- Layout totalmente responsivo construído com Tailwind CSS 3.0
|
||||
- Layout totalmente responsivo construído com Tailwind CSS 4
|
||||
- Múltiplos esquemas de cores (ou personalize completamente o seu próprio)
|
||||
- Modo escuro (forçado ligado/desligado ou alternância automática com seletor do utilizador)
|
||||
- Múltiplos layouts de página inicial, incluindo uma landing page de estilo produto com imagem hero, estatísticas e grelhas de funcionalidades
|
||||
- Cabeçalho flutuante com efeito de vidro e atalho de pesquisa ⌘K / Ctrl+K
|
||||
- Tela de fundo global com secções hero que se dissolvem nela ao fazer scroll
|
||||
- Barra de progresso de leitura para artigos
|
||||
- Seletor interativo de layouts da página inicial para pré-visualizações em direto
|
||||
- Skill de agente para que agentes de programação com IA (como o Claude Code) instalem e configurem o tema por si
|
||||
- Páginas adequadas para impressão com estilos de impressão dedicados
|
||||
- Configuração altamente personalizável
|
||||
- Integração com Firebase para suportar dados dinâmicos
|
||||
- Contagem de visualizações & mecanismo de gostos
|
||||
- Artigos relacionados
|
||||
- Múltiplos layouts de página inicial
|
||||
- Múltiplos autores
|
||||
- Séries de artigos
|
||||
- Ordenação de artigos baseada em data e peso
|
||||
@@ -44,7 +46,7 @@ Blowfish foi desenhado para ser um tema poderoso e leve para [Hugo](https://gohu
|
||||
- Índice de conteúdos com scroll
|
||||
- Suporte para conteúdo multilingue incluindo suporte para línguas RTL
|
||||
- Capacidade de criar links para publicações em sites de terceiros
|
||||
- Suporte para vários shortcodes como Gallery, Timeline, GitHub cards e Carousels
|
||||
- Mais de 40 shortcodes incluindo Gallery, Timeline, GitHub cards, Carousels, Stats, grelhas de funcionalidades, Steps e botões CTA
|
||||
- Sintaxe GitHub Alerts, 15 tipos, suporte para elementos expansíveis
|
||||
- Integração Buymeacoffee
|
||||
- Pesquisa no site do lado do cliente alimentada por Fuse.js
|
||||
@@ -80,11 +82,22 @@ Blowfish suporta vários métodos de instalação - como um submódulo git, um M
|
||||
|
||||
Instruções detalhadas para cada método podem ser encontradas na documentação de [Instalação](https://blowfish.page/docs/installation). Deve consultar a documentação para a experiência de configuração mais simples. Abaixo está um guia de início rápido usando submódulos se estiver a usar git, ou módulos Hugo se já está confiante na instalação de temas Hugo.
|
||||
|
||||
### Início rápido com um agente de IA
|
||||
|
||||
Blowfish inclui um [agent skill](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) que ensina agentes de programação com IA — como o Claude Code — a instalar, configurar e construir sites com o tema. Instale-o a partir do marketplace de plugins do Blowfish no Claude Code:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
Ou simplesmente copie a pasta do skill para o repositório do seu site em `.claude/skills/blowfish/` — os agentes detetam skills de projeto automaticamente. Depois peça ao seu agente para configurar o Blowfish por si.
|
||||
|
||||
### Início rápido usando Blowfish Tools
|
||||
|
||||
> **Nota:** Certifique-se de que tem **Node.js**, **Git** e **Hugo** instalados, e que criou um novo projeto Hugo antes de continuar.
|
||||
|
||||
Acabámos de lançar uma nova ferramenta CLI para ajudá-lo a começar com Blowfish. Ela irá criar um novo projeto Hugo, instalar o tema e configurar os ficheiros de configuração do tema para si. Ainda está em beta por isso [reporte quaisquer problemas que encontrar](https://github.com/nunocoracao/blowfish-tools).
|
||||
Blowfish Tools é uma ferramenta CLI que o ajuda a começar com Blowfish. Ela irá criar um novo projeto Hugo, instalar o tema e configurar os ficheiros de configuração do tema para si. Por favor [reporte quaisquer problemas que encontrar](https://github.com/nunocoracao/blowfish-tools).
|
||||
|
||||
Instale a ferramenta CLI globalmente usando npm (ou outro gestor de pacotes):
|
||||
```shell
|
||||
@@ -137,7 +150,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. Inicie o seu servidor usando `hugo server` e o tema será descarregado automaticamente.
|
||||
@@ -156,6 +169,10 @@ blowfish-tools new mynewsite
|
||||
|
||||
[Instruções detalhadas de atualização](https://blowfish.page/docs/installation/#installing-updates) estão disponíveis na documentação.
|
||||
|
||||
### Atualização da v2 para a v3
|
||||
|
||||
Blowfish v3 é totalmente retrocompatível: todas as novas funcionalidades são opcionais e nenhuma opção de configuração ou template foi removida. As instalações por submódulo git e manuais atualizam-se como habitualmente, sem alterações; os utilizadores de módulos Hugo apenas precisam de alterar o caminho de importação em `config/_default/module.toml` de `github.com/nunocoracao/blowfish/v2` para `github.com/nunocoracao/blowfish/v3` e executar `hugo mod get -u`. Consulte as [instruções de atualização](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3) para mais detalhes.
|
||||
|
||||
---
|
||||
|
||||
## Contribuir
|
||||
@@ -172,8 +189,4 @@ Se conseguir corrigir um erro ou implementar uma nova funcionalidade, aceito PRs
|
||||
|
||||
---
|
||||
|
||||
## Stargazers ao longo do tempo
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -1,7 +1,7 @@
|
||||
[English](https://github.com/nunocoracao/blowfish/blob/main/README.md) | [Français](https://github.com/nunocoracao/blowfish/blob/main/README.fr.md) | [Deutsch](https://github.com/nunocoracao/blowfish/blob/main/README.de.md) | [Português (PT)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-pt.md) | [Português (BR)](https://github.com/nunocoracao/blowfish/blob/main/README.pt-br.md) | [Español](https://github.com/nunocoracao/blowfish/blob/main/README.es.md) | [日本語](https://github.com/nunocoracao/blowfish/blob/main/README.ja.md) | 简体中文 | [Indonesian](https://github.com/nunocoracao/blowfish/blob/main/README.id.md)
|
||||
# Blowfish
|
||||
[](https://app.netlify.com/sites/snazzy-dango-efb2ec/deploys)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.141.0)
|
||||
[](https://github.com/gohugoio/hugo/releases/tag/v0.162.0)
|
||||
[](https://github.com/nunocoracao/blowfish/blob/main/LICENSE)
|
||||
[](https://themes.gohugo.io/themes/blowfish/)
|
||||

|
||||
@@ -13,27 +13,29 @@ Blowfish 是一个轻量有力的 Hugo 主题。它使用 Tailwind CSS 构建,
|
||||
|
||||
🌏 [示例站点](https://blowfish.page/zh-cn/)
|
||||
📑 [主题文档](https://blowfish.page/zh-cn/docs/)
|
||||
💎 [周边商店](http://tee.pub/lic/qwSlWVBL5zc)
|
||||
🐛 [Bug 问题报告](https://github.com/nunocoracao/blowfish/issues)
|
||||
💡 [问答和功能需求](https://github.com/nunocoracao/blowfish/discussions)
|
||||
|
||||
|
||||
|
||||
<a href="https://www.buymeacoffee.com/nunocoracao" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
||||
<a target="_blank" href="http://tee.pub/lic/qwSlWVBL5zc"><img class="nozoom" src="https://img.buymeacoffee.com/button-api/?text=Merch Store &emoji=💎&slug=nunocoracao&button_colour=5F7FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00" /></a>
|
||||
|
||||
|
||||
|
||||
## 特性
|
||||
|
||||
- 使用 Tailwind CSS 3.0 构建全面响应式布局
|
||||
- 使用 Tailwind CSS 4 构建全面响应式布局
|
||||
- 多种配色方案,亦可完全由你定义
|
||||
- 夜间模式支持(手动开启/关闭或根据用户设备自动切换)
|
||||
- 多种主页布局,包括带有主视觉图、数据统计和功能网格的产品风格着陆页
|
||||
- 悬浮玻璃质感页眉,支持 ⌘K / Ctrl+K 搜索快捷键
|
||||
- 全局背景画布,主视觉区域随滚动溶入其中
|
||||
- 文章阅读进度条
|
||||
- 可实时预览的交互式主页布局切换器
|
||||
- 内置代理技能(agent skill),让 AI 编程代理(如 Claude Code)为你安装和配置主题
|
||||
- 配备专用打印样式的打印友好页面
|
||||
- 高度自主的配置方式
|
||||
- 集成 Firebase 以支持动态数据统计
|
||||
- 集成浏览次数统计和点赞机制
|
||||
- “相关文章”列表生成
|
||||
- 多种主页布局
|
||||
- 多作者模式支持
|
||||
- 可将文章整理成选集列表
|
||||
- 禅模式支持
|
||||
@@ -42,7 +44,7 @@ Blowfish 是一个轻量有力的 Hugo 主题。它使用 Tailwind CSS 构建,
|
||||
- 支持嵌套菜单和子导航菜单
|
||||
- 支持多语言内容,包括 RTL 语言
|
||||
- 可链接到第三方网站上的帖子
|
||||
- 支持多种简码,如图库、时间轴、GitHub 卡片和图片灯箱
|
||||
- 内置 40 多种简码,包括图库、时间轴、GitHub 卡片、轮播、数据统计、功能网格、步骤和 CTA 按钮
|
||||
- 支持 GitHub Alerts 语法、15 种类型和可折叠功能
|
||||
- 支持 Buymeacoffee
|
||||
- 拥有由 Fuse.js 支持的客户端一侧网站搜索功能
|
||||
@@ -77,11 +79,22 @@ Blowfish 支持多种安装方式,既能作为 git 子模块、Hugo 模块,
|
||||
|
||||
每种方法的详细说明都可以在 [安装](https://blowfish.page/zh-cn/docs/installation) 文档中找到。为了获得最简单的安装体验,请查阅文档。如果你使用的是 git,请阅读下面使用子模块的快速开始指南;如果你能安装 Hugo 主题,请阅读下面 Hugo 模块的快速开始指南。
|
||||
|
||||
### 使用 AI 代理快速开始
|
||||
|
||||
Blowfish 内置了一个[代理技能(agent skill)](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish),可以教 AI 编程代理(如 Claude Code)如何安装、配置主题并用它构建网站。在 Claude Code 中通过 Blowfish 插件市场安装:
|
||||
|
||||
```shell
|
||||
/plugin marketplace add nunocoracao/blowfish
|
||||
/plugin install blowfish@blowfish
|
||||
```
|
||||
|
||||
或者直接将技能文件夹复制到你网站仓库的 `.claude/skills/blowfish/` 目录中——代理会自动识别项目技能。然后让你的代理为你完成 Blowfish 的设置。
|
||||
|
||||
### 使用 Blowfish Tools 快速开始
|
||||
|
||||
> **注:** 请确保你已安装 **Node.js**、 **Git** 和 **Hugo** ,且已经创建了一个 Hugo 工程。
|
||||
|
||||
我们最新推出了一个新的 CLI 工具,帮助你开始使用 Blowfish。它将为你创建一个新的 Hugo 项目、安装主题并设置主题配置文件。它仍处于测试阶段,因此请 [报告你发现的任何问题](https://github.com/nunocoracao/blowfish-tools)。
|
||||
Blowfish Tools 是一个帮助你开始使用 Blowfish 的 CLI 工具。它将为你创建一个新的 Hugo 项目、安装主题并设置主题配置文件。请 [报告你发现的任何问题](https://github.com/nunocoracao/blowfish-tools)。
|
||||
|
||||
使用 npm(或其他软件包管理器)全局安装 CLI 工具:
|
||||
```shell
|
||||
@@ -134,7 +147,7 @@ blowfish-tools new mynewsite
|
||||
|
||||
```toml
|
||||
[[imports]]
|
||||
path = "github.com/nunocoracao/blowfish/v2"
|
||||
path = "github.com/nunocoracao/blowfish/v3"
|
||||
```
|
||||
|
||||
3. 运行 `hugo server` 启动你的本地服务器,本主题就会自动下载。
|
||||
@@ -153,6 +166,10 @@ blowfish-tools new mynewsite
|
||||
|
||||
详细的[更新指南](https://blowfish.page/zh-cn/docs/installation/#%E6%9B%B4%E6%96%B0%E4%B8%BB%E9%A2%98)在文档中。
|
||||
|
||||
### 从 v2 升级到 v3
|
||||
|
||||
Blowfish v3 完全向后兼容:所有新功能均为可选启用,没有删除任何配置选项或模板。git 子模块和手动安装的用户按常规方式升级即可,无需任何改动;Hugo 模块用户只需将 `config/_default/module.toml` 中的导入路径从 `github.com/nunocoracao/blowfish/v2` 改为 `github.com/nunocoracao/blowfish/v3`,然后运行 `hugo mod get -u`。详情请参阅[升级指南](https://blowfish.page/docs/installation/#upgrading-from-v2-to-v3)。
|
||||
|
||||
---
|
||||
|
||||
## 贡献
|
||||
@@ -169,8 +186,4 @@ Blowfish 将会持续进化。我打算不断增加功能,并按需进行修
|
||||
|
||||
---
|
||||
|
||||
## Star 数量统计
|
||||
|
||||
[](https://starchart.cc/nunocoracao/blowfish)
|
||||
|
||||
<a rel="me" href="https://masto.ai/@blowfish">Mastodon</a>
|
||||
@@ -23,6 +23,53 @@ body button {
|
||||
@apply transition-colors;
|
||||
}
|
||||
|
||||
/* Staggered entrance for the landing homepage hero. Removed entirely when a
|
||||
visitor requests reduced motion. */
|
||||
@keyframes landing-rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(0.9rem);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.landing-rise {
|
||||
animation: landing-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||
}
|
||||
|
||||
.landing-rise-1 {
|
||||
animation-delay: 90ms;
|
||||
}
|
||||
|
||||
.landing-rise-2 {
|
||||
animation-delay: 180ms;
|
||||
}
|
||||
|
||||
.landing-rise-3 {
|
||||
animation-delay: 270ms;
|
||||
}
|
||||
|
||||
.landing-rise-4 {
|
||||
animation-delay: 360ms;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
|
||||
.landing-rise,
|
||||
.landing-rise-1,
|
||||
.landing-rise-2,
|
||||
.landing-rise-3,
|
||||
.landing-rise-4 {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
button,
|
||||
[role="button"] {
|
||||
cursor: pointer;
|
||||
@@ -181,13 +228,109 @@ pre {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* ---- Print ---- */
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
|
||||
@media print {
|
||||
html {
|
||||
color-scheme: light only;
|
||||
}
|
||||
body {
|
||||
background: #fff !important;
|
||||
color: #111 !important;
|
||||
max-width: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
/* Site chrome that makes no sense on paper */
|
||||
body > header,
|
||||
#background-canvas,
|
||||
.single_hero_background,
|
||||
#scroll-to-top,
|
||||
#bmc-wbtn {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Flatten decoration; dark mode prints light */
|
||||
* {
|
||||
box-shadow: none !important;
|
||||
text-shadow: none !important;
|
||||
}
|
||||
main,
|
||||
article,
|
||||
.prose,
|
||||
.prose *:not(pre):not(pre *) {
|
||||
color: #111 !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
pre,
|
||||
pre * {
|
||||
background: #f4f4f5 !important;
|
||||
color: #111 !important;
|
||||
white-space: pre-wrap !important;
|
||||
}
|
||||
|
||||
/* Links stay useful on paper */
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.prose a[href^="http"]::after {
|
||||
content: " (" attr(href) ")";
|
||||
font-size: 0.85em;
|
||||
color: #555;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* Sensible page flow */
|
||||
pre,
|
||||
blockquote,
|
||||
table,
|
||||
figure,
|
||||
img {
|
||||
break-inside: avoid;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
break-after: avoid;
|
||||
}
|
||||
img {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Background hero: feature image dissolves into the global background */
|
||||
.hero-canvas-fade {
|
||||
-webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
|
||||
mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
|
||||
}
|
||||
|
||||
/* Shortcode grids: a lone trailing card stretches across the full row */
|
||||
@media (min-width: 640px) and (max-width: 1023.98px) {
|
||||
.grid-balance > :last-child:nth-child(odd) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.grid-balance-3 > :last-child:nth-child(3n + 1) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
.grid-balance-4 > :last-child:nth-child(4n + 1) {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
.thumbnail_card {
|
||||
min-width: 300px;
|
||||
height: 200px;
|
||||
aspect-ratio: var(--thumbnail-aspect-ratio, 1.5);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.thumbnail_card_related {
|
||||
height: 150px;
|
||||
aspect-ratio: var(--thumbnail-aspect-ratio, 1.5);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
@@ -266,12 +409,49 @@ pre {
|
||||
}
|
||||
|
||||
.bf-scrollbar {
|
||||
@apply scrollbar-thin scrollbar-track-neutral-200 scrollbar-thumb-neutral-400 dark:scrollbar-track-neutral-800 dark:scrollbar-thumb-neutral-600;
|
||||
&::-webkit-scrollbar-track {
|
||||
background-color: var(--scrollbar-track);
|
||||
border-radius: var(--scrollbar-track-radius);
|
||||
}
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background-color: var(--scrollbar-thumb);
|
||||
border-radius: var(--scrollbar-thumb-radius);
|
||||
}
|
||||
&::-webkit-scrollbar-corner {
|
||||
background-color: var(--scrollbar-corner);
|
||||
border-radius: var(--scrollbar-corner-radius);
|
||||
}
|
||||
@supports (-moz-appearance:none) {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--scrollbar-thumb, initial) var(--scrollbar-track, initial);
|
||||
}
|
||||
&::-webkit-scrollbar {
|
||||
display: block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
--scrollbar-thumb: oklch(70.8% 0 0);
|
||||
--scrollbar-track: oklch(92.2% 0 0);
|
||||
&:is(.dark *) {
|
||||
--scrollbar-thumb: oklch(43.9% 0 0);
|
||||
}
|
||||
&:is(.dark *) {
|
||||
--scrollbar-track: oklch(26.9% 0 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@supports (-moz-appearance:none) {
|
||||
scrollbar-color: initial;
|
||||
scrollbar-width: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Prevent body scroll when mobile menu is open */
|
||||
body:has(#mobile-menu-toggle:checked) {
|
||||
body:has(#mobile-menu-toggle:checked):not(:has(#mobile-menu-dialog.mobile-menu-style-dropdown)) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -294,7 +474,8 @@ body:has(#mobile-menu-toggle:checked) {
|
||||
.menuhide {
|
||||
position: absolute;
|
||||
z-index: 1000;
|
||||
white-space: nowrap;
|
||||
width: max-content;
|
||||
max-width: min(20rem, calc(100vw - 2rem));
|
||||
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
@@ -304,6 +485,12 @@ body:has(#mobile-menu-toggle:checked) {
|
||||
opacity 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
/* Dropdowns near the end of the bar open leftward so they stay on screen */
|
||||
.nested-menu:nth-last-child(-n + 3) .menuhide,
|
||||
.mobile-header-row .menuhide {
|
||||
inset-inline-end: 0;
|
||||
}
|
||||
|
||||
.nested-menu:hover .menuhide,
|
||||
.nested-menu:focus-within .menuhide {
|
||||
opacity: 1;
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Burufugu scheme — the mascot's own palette: sky-blue fish, coral glow, indigo night */
|
||||
:root {
|
||||
--color-neutral: 255, 255, 255;
|
||||
/* Indigo night */
|
||||
--color-neutral-50: 246, 247, 252;
|
||||
--color-neutral-100: 238, 240, 249;
|
||||
--color-neutral-200: 221, 224, 240;
|
||||
--color-neutral-300: 195, 200, 226;
|
||||
--color-neutral-400: 141, 148, 189;
|
||||
--color-neutral-500: 98, 106, 150;
|
||||
--color-neutral-600: 70, 78, 122;
|
||||
--color-neutral-700: 48, 55, 97;
|
||||
--color-neutral-800: 26, 33, 74;
|
||||
--color-neutral-900: 13, 18, 51;
|
||||
/* Sky blue (logo) */
|
||||
--color-primary-50: 240, 247, 254;
|
||||
--color-primary-100: 224, 239, 254;
|
||||
--color-primary-200: 186, 222, 253;
|
||||
--color-primary-300: 138, 197, 250;
|
||||
--color-primary-400: 96, 172, 246;
|
||||
--color-primary-500: 74, 158, 240;
|
||||
--color-primary-600: 47, 115, 205;
|
||||
--color-primary-700: 42, 98, 189;
|
||||
--color-primary-800: 38, 76, 152;
|
||||
--color-primary-900: 30, 58, 110;
|
||||
/* Coral */
|
||||
--color-secondary-50: 255, 246, 240;
|
||||
--color-secondary-100: 255, 234, 222;
|
||||
--color-secondary-200: 255, 211, 187;
|
||||
--color-secondary-300: 255, 180, 142;
|
||||
--color-secondary-400: 255, 138, 92;
|
||||
--color-secondary-500: 240, 112, 90;
|
||||
--color-secondary-600: 217, 87, 74;
|
||||
--color-secondary-700: 184, 64, 58;
|
||||
--color-secondary-800: 148, 50, 50;
|
||||
--color-secondary-900: 118, 40, 44;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg fill="currentColor" viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg"><path d="M10.617 11.473l4.686 3.695-3.102-7.662zM12 0C5.371 0 0 5.371 0 12s5.371 12 12 12 12-5.371 12-12S18.629 0 12 0zm5.797 17.305c-.011.471-.403.842-.875.83-.236 0-.416-.09-.664-.293l-6.19-5-2.079 5.203H6.191L11.438 5.44c.124-.314.427-.52.764-.506.326-.014.63.189.742.506l4.774 11.494c.045.111.08.234.08.348-.001.009-.001.009-.001.023z"/></svg>
|
||||
|
After Width: | Height: | Size: 478 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 512"><path fill="currentColor" d="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"/></svg>
|
||||
|
After Width: | Height: | Size: 901 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 98c26.5 0 49.4-10.5 61.8-30h55.7c8.5 0 16.6 3.3 22.6 9.4l77.3 77.2c12.5 12.5 12.5 32.8 0 45.3l-39.4 39.4c-11.8 11.8-30.8 12.6-43.5 1.7L376 228.6V416c0 26.5-21.5 48-48 48H184c-26.5 0-48-21.5-48-48V228.6L121.5 241c-12.7 10.9-31.7 10.1-43.5-1.7L38.6 199.9c-12.5-12.5-12.5-32.8 0-45.3l77.3-77.2c6-6.1 14.1-9.4 22.6-9.4h55.7c12.4 19.5 35.3 30 61.8 30z"/></svg>
|
||||
|
After Width: | Height: | Size: 452 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M158.4 0L7 292h89.2l62.2-116.1L220.1 292h88.5zm150.2 292l-43.9 88.2-44.6-88.2h-67.6l112.2 220 111.5-220z"/></svg>
|
||||
|
After Width: | Height: | Size: 205 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M401.3 49.9c-79.8 160.1-84.6 152.5-87.9 173.2l-5.2 32.8c-1.9 12-6.6 23.5-13.7 33.4L145.6 497.1c-7.6 10.6-20.4 16.2-33.4 14.6-40.3-5-77.8-32.2-95.3-68.5-5.7-11.8-4.5-25.8 3.1-36.4l148.9-207.9c7.1-9.9 16.4-18 27.2-23.7l29.3-15.5c18.5-9.8 9.7-11.9 135.6-138.9 1-4.8 1-7.3 3.6-8 3-.7 6.6-1 6.3-4.6l-.4-4.6c-.2-1.9 1.3-3.6 3.2-3.6 4.5-.1 13.2 1.2 25.6 10 12.3 8.9 16.4 16.8 17.7 21.1.6 1.8-.6 3.7-2.4 4.2l-4.5 1.1c-3.4.9-2.5 4.4-2.3 7.4.1 2.8-2.3 3.6-6.5 6.1zM230.1 36.4c3.4.9 2.5 4.4 2.3 7.4-.2 2.7 2.1 3.5 6.4 6 7.9 15.9 15.3 30.5 22.2 44 .7 1.3 2.3 1.5 3.3.5 11.2-12 24.6-26.2 40.5-42.6 1.3-1.4 1.4-3.5.1-4.9-8-8.2-16.5-16.9-25.6-26.1-1-4.7-1-7.3-3.6-8-3-.8-6.6-1-6.3-4.6.3-3.3 1.4-8.1-2.8-8.2-4.5-.1-13.2 1.1-25.6 10-12.3 8.9-16.4 16.8-17.7 21.1-1.4 4.2 3.6 4.6 6.8 5.4zM620 406.7L471.2 198.8c-13.2-18.5-26.6-23.4-56.4-39.1-11.2-5.9-14.2-10.9-30.5-28.9-1-1.1-2.9-.9-3.6.5-46.3 88.8-47.1 82.8-49 94.8-1.7 10.7-1.3 20 .3 29.8 1.9 12 6.6 23.5 13.7 33.4l148.9 207.9c7.6 10.6 20.2 16.2 33.1 14.7 40.3-4.9 78-32 95.7-68.6 5.4-11.9 4.3-25.9-3.4-36.6z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -54,12 +54,33 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
||||
const switcher = document.getElementById("appearance-switcher");
|
||||
const switcherMobile = document.getElementById("appearance-switcher-mobile");
|
||||
|
||||
// Load the i18n translations for the tooltips
|
||||
const darkLabel = {{ i18n "footer.dark_appearance" | jsonify }};
|
||||
const lightLabel = {{ i18n "footer.light_appearance" | jsonify }};
|
||||
|
||||
updateMeta();
|
||||
this.updateLogo?.(getTargetAppearance());
|
||||
|
||||
// Initialize mermaid theme on page load
|
||||
updateMermaidTheme();
|
||||
|
||||
// Helper to update the tooltip depending on the current mode
|
||||
const updateTooltip = (targetAppearance) => {
|
||||
// If target is dark, the next action will be switching to light
|
||||
const label = targetAppearance === "dark" ? lightLabel : darkLabel;
|
||||
if (switcher) {
|
||||
switcher.setAttribute("aria-label", label);
|
||||
switcher.setAttribute("title", label);
|
||||
}
|
||||
if (switcherMobile) {
|
||||
switcherMobile.setAttribute("aria-label", label);
|
||||
switcherMobile.setAttribute("title", label);
|
||||
}
|
||||
};
|
||||
|
||||
// Set initial tooltip on load
|
||||
updateTooltip(getTargetAppearance());
|
||||
|
||||
if (switcher) {
|
||||
switcher.addEventListener("click", () => {
|
||||
document.documentElement.classList.toggle("dark");
|
||||
@@ -70,6 +91,7 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
||||
);
|
||||
updateMeta();
|
||||
updateMermaidTheme();
|
||||
updateTooltip(targetAppearance);
|
||||
this.updateLogo?.(targetAppearance);
|
||||
});
|
||||
switcher.addEventListener("contextmenu", (event) => {
|
||||
@@ -87,6 +109,7 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
||||
);
|
||||
updateMeta();
|
||||
updateMermaidTheme();
|
||||
updateTooltip(targetAppearance);
|
||||
this.updateLogo?.(targetAppearance);
|
||||
});
|
||||
switcherMobile.addEventListener("contextmenu", (event) => {
|
||||
|
||||
@@ -23,9 +23,18 @@ function setBackgroundBlur(targetId, scrollDivisor = 300, disableBlur = false, i
|
||||
blurElement.style.opacity = scroll / scrollDivisor;
|
||||
}
|
||||
};
|
||||
let framePending = false;
|
||||
const requestBlurUpdate = () => {
|
||||
if (framePending) return;
|
||||
framePending = true;
|
||||
window.requestAnimationFrame(() => {
|
||||
framePending = false;
|
||||
updateBlur();
|
||||
});
|
||||
};
|
||||
blurElement.setAttribute("role", "presentation");
|
||||
blurElement.setAttribute("tabindex", "-1");
|
||||
window.addEventListener("scroll", updateBlur);
|
||||
window.addEventListener("scroll", requestBlurUpdate, { passive: true });
|
||||
updateBlur();
|
||||
}
|
||||
|
||||
@@ -33,7 +42,12 @@ document.querySelectorAll("script[data-blur-id]").forEach((script) => {
|
||||
const targetId = script.getAttribute("data-blur-id");
|
||||
const scrollDivisor = Number(script.getAttribute("data-scroll-divisor") || 300);
|
||||
const isMenuBlur = targetId === "menu-blur";
|
||||
const settings = JSON.parse(localStorage.getItem("a11ySettings") || "{}");
|
||||
let settings = {};
|
||||
try {
|
||||
settings = JSON.parse(localStorage.getItem("a11ySettings") || "{}");
|
||||
} catch (_) {
|
||||
settings = {};
|
||||
}
|
||||
const disableBlur = settings.disableBlur || false;
|
||||
setBackgroundBlur(targetId, scrollDivisor, disableBlur, isMenuBlur);
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
(function () {
|
||||
var script = document.currentScript;
|
||||
var target = document.getElementById(script.getAttribute("data-hero-id"));
|
||||
if (!target) return;
|
||||
var distance = parseInt(script.getAttribute("data-fade-distance"), 10) || 500;
|
||||
var ticking = false;
|
||||
function update() {
|
||||
ticking = false;
|
||||
var opacity = Math.max(0, 1 - window.scrollY / distance);
|
||||
target.style.opacity = opacity;
|
||||
target.style.visibility = opacity === 0 ? "hidden" : "visible";
|
||||
}
|
||||
window.addEventListener(
|
||||
"scroll",
|
||||
function () {
|
||||
if (!ticking) {
|
||||
ticking = true;
|
||||
requestAnimationFrame(update);
|
||||
}
|
||||
},
|
||||
{ passive: true }
|
||||
);
|
||||
update();
|
||||
})();
|
||||
@@ -0,0 +1,319 @@
|
||||
(function () {
|
||||
var config = window.BlowfishLanguageRedirectConfig;
|
||||
|
||||
if (!config || config.enabled !== true) {
|
||||
return;
|
||||
}
|
||||
|
||||
function getStorage() {
|
||||
if (!config.storageKey) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
return window.localStorage;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
var storage = getStorage();
|
||||
|
||||
function normalizeLanguageTag(value) {
|
||||
if (typeof value !== "string") {
|
||||
return "";
|
||||
}
|
||||
|
||||
return value.trim().toLowerCase().replace(/_/g, "-");
|
||||
}
|
||||
|
||||
function getBaseLanguage(value) {
|
||||
var languageTag = normalizeLanguageTag(value);
|
||||
|
||||
if (!languageTag) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return languageTag.split("-")[0];
|
||||
}
|
||||
|
||||
function getTranslationTags(translation) {
|
||||
if (!translation) {
|
||||
return [];
|
||||
}
|
||||
|
||||
var tags = [];
|
||||
var values = [translation.lang, translation.languageCode];
|
||||
|
||||
for (var i = 0; i < values.length; i += 1) {
|
||||
var languageTag = normalizeLanguageTag(values[i]);
|
||||
|
||||
if (languageTag && tags.indexOf(languageTag) === -1) {
|
||||
tags.push(languageTag);
|
||||
}
|
||||
}
|
||||
|
||||
return tags;
|
||||
}
|
||||
|
||||
function getCanonicalTranslationTag(translation) {
|
||||
var tags = getTranslationTags(translation);
|
||||
|
||||
if (!tags.length) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return tags.reduce(function (bestTag, languageTag) {
|
||||
if (languageTag.split("-").length > bestTag.split("-").length) {
|
||||
return languageTag;
|
||||
}
|
||||
|
||||
return bestTag;
|
||||
}, tags[0]);
|
||||
}
|
||||
|
||||
function translationHasTag(translation, languageTag) {
|
||||
var normalizedTag = normalizeLanguageTag(languageTag);
|
||||
|
||||
if (!normalizedTag) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return getTranslationTags(translation).indexOf(normalizedTag) !== -1;
|
||||
}
|
||||
|
||||
function getAvailableTranslations() {
|
||||
if (!Array.isArray(config.translations)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return config.translations.filter(function (translation) {
|
||||
return translation && translation.url && getTranslationTags(translation).length > 0;
|
||||
});
|
||||
}
|
||||
|
||||
var translations = getAvailableTranslations();
|
||||
|
||||
function findExactTranslation(languageTag) {
|
||||
var normalizedTag = normalizeLanguageTag(languageTag);
|
||||
|
||||
if (!normalizedTag) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (var i = 0; i < translations.length; i += 1) {
|
||||
if (translationHasTag(translations[i], normalizedTag)) {
|
||||
return translations[i];
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function findBaseTranslation(languageTag) {
|
||||
var baseLanguage = getBaseLanguage(languageTag);
|
||||
|
||||
if (!baseLanguage) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (var i = 0; i < translations.length; i += 1) {
|
||||
var tags = getTranslationTags(translations[i]);
|
||||
|
||||
for (var j = 0; j < tags.length; j += 1) {
|
||||
if (getBaseLanguage(tags[j]) === baseLanguage) {
|
||||
return translations[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function findBestTranslation(languageTag) {
|
||||
var normalizedTag = normalizeLanguageTag(languageTag);
|
||||
|
||||
if (!normalizedTag) {
|
||||
return null;
|
||||
}
|
||||
|
||||
while (normalizedTag) {
|
||||
var translation = findExactTranslation(normalizedTag);
|
||||
|
||||
if (translation) {
|
||||
return translation;
|
||||
}
|
||||
|
||||
var lastSubtagIndex = normalizedTag.lastIndexOf("-");
|
||||
|
||||
if (lastSubtagIndex === -1) {
|
||||
break;
|
||||
}
|
||||
|
||||
normalizedTag = normalizedTag.slice(0, lastSubtagIndex);
|
||||
}
|
||||
|
||||
return findBaseTranslation(languageTag);
|
||||
}
|
||||
|
||||
function getStoredLanguage() {
|
||||
if (!storage || config.storedLanguageRedirect !== true) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
return storage.getItem(config.storageKey);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function setStoredLanguage(language) {
|
||||
if (!storage) {
|
||||
return;
|
||||
}
|
||||
|
||||
var languageTag = normalizeLanguageTag(language);
|
||||
|
||||
if (!languageTag) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
storage.setItem(config.storageKey, languageTag);
|
||||
} catch (error) {
|
||||
// Ignore storage errors so the language link keeps its normal behavior.
|
||||
}
|
||||
}
|
||||
|
||||
function getBrowserTranslation() {
|
||||
var languages = [];
|
||||
|
||||
if (Array.isArray(navigator.languages)) {
|
||||
languages = languages.concat(navigator.languages);
|
||||
}
|
||||
|
||||
if (navigator.language) {
|
||||
languages.push(navigator.language);
|
||||
}
|
||||
|
||||
for (var i = 0; i < languages.length; i += 1) {
|
||||
var translation = findBestTranslation(languages[i]);
|
||||
|
||||
if (translation) {
|
||||
return translation;
|
||||
}
|
||||
}
|
||||
|
||||
if (config.fallbackLanguage) {
|
||||
return findBestTranslation(config.fallbackLanguage);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function normalizePath(pathname) {
|
||||
if (pathname.length > 1 && pathname.charAt(pathname.length - 1) === "/") {
|
||||
return pathname.slice(0, -1);
|
||||
}
|
||||
|
||||
return pathname;
|
||||
}
|
||||
|
||||
function getUrl(value) {
|
||||
try {
|
||||
return new URL(value, window.location.origin);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function redirectToTranslation(translation) {
|
||||
if (!translation || !translation.url) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var currentLanguage = getCanonicalTranslationTag({
|
||||
lang: config.currentLanguage,
|
||||
languageCode: config.currentLanguageCode
|
||||
});
|
||||
var targetLanguage = getCanonicalTranslationTag(translation);
|
||||
|
||||
if (currentLanguage && targetLanguage && currentLanguage === targetLanguage) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var targetUrl = getUrl(translation.url);
|
||||
|
||||
if (!targetUrl || normalizePath(targetUrl.pathname) === normalizePath(window.location.pathname)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
window.location.replace(targetUrl.href);
|
||||
return true;
|
||||
}
|
||||
|
||||
function redirectToLanguage(language) {
|
||||
return redirectToTranslation(findBestTranslation(language));
|
||||
}
|
||||
|
||||
function findTranslationByUrl(url) {
|
||||
var linkUrl = getUrl(url);
|
||||
|
||||
if (!linkUrl) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (var i = 0; i < translations.length; i += 1) {
|
||||
var translationUrl = getUrl(translations[i].url);
|
||||
|
||||
if (translationUrl && normalizePath(translationUrl.pathname) === normalizePath(linkUrl.pathname)) {
|
||||
return translations[i];
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function bindLanguageSwitcher() {
|
||||
document.addEventListener("click", function (event) {
|
||||
if (!event.target || !event.target.closest) {
|
||||
return;
|
||||
}
|
||||
|
||||
var link = event.target.closest(".translation a[href]");
|
||||
|
||||
if (!link) {
|
||||
return;
|
||||
}
|
||||
|
||||
var translation = findTranslationByUrl(link.href);
|
||||
|
||||
if (translation) {
|
||||
setStoredLanguage(getCanonicalTranslationTag(translation));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function maybeRedirect() {
|
||||
var storedLanguage = getStoredLanguage();
|
||||
|
||||
if (storedLanguage) {
|
||||
redirectToLanguage(storedLanguage);
|
||||
return;
|
||||
}
|
||||
|
||||
if (config.browserRedirectHomeOnly === true && config.isHome !== true) {
|
||||
return;
|
||||
}
|
||||
|
||||
var browserTranslation = getBrowserTranslation();
|
||||
|
||||
if (browserTranslation) {
|
||||
redirectToTranslation(browserTranslation);
|
||||
}
|
||||
}
|
||||
|
||||
bindLanguageSwitcher();
|
||||
maybeRedirect();
|
||||
})();
|
||||
@@ -0,0 +1,55 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
function initLayoutSwitcher() {
|
||||
document.querySelectorAll("[data-layout-switcher]").forEach(function (lab) {
|
||||
var buttons = Array.prototype.slice.call(lab.querySelectorAll("[data-layout-switcher-button]"));
|
||||
var panels = lab.querySelectorAll("[data-layout-switcher-panel]");
|
||||
|
||||
var activate = function (layout, focusTab) {
|
||||
buttons.forEach(function (button) {
|
||||
var active = button.dataset.layoutSwitcherButton === layout;
|
||||
button.setAttribute("aria-selected", String(active));
|
||||
button.setAttribute("tabindex", active ? "0" : "-1");
|
||||
button.classList.toggle("border-primary-600", active);
|
||||
button.classList.toggle("bg-primary-600", active);
|
||||
button.classList.toggle("text-white", active);
|
||||
button.classList.toggle("dark:border-primary-500", active);
|
||||
button.classList.toggle("dark:bg-primary-500", active);
|
||||
if (active && focusTab) button.focus();
|
||||
});
|
||||
panels.forEach(function (panel) {
|
||||
panel.hidden = panel.dataset.layoutSwitcherPanel !== layout;
|
||||
});
|
||||
};
|
||||
|
||||
buttons.forEach(function (button, index) {
|
||||
button.addEventListener("click", function () {
|
||||
activate(button.dataset.layoutSwitcherButton, false);
|
||||
});
|
||||
button.addEventListener("keydown", function (event) {
|
||||
var target = null;
|
||||
if (event.key === "ArrowRight") {
|
||||
target = buttons[(index + 1) % buttons.length];
|
||||
} else if (event.key === "ArrowLeft") {
|
||||
target = buttons[(index - 1 + buttons.length) % buttons.length];
|
||||
} else if (event.key === "Home") {
|
||||
target = buttons[0];
|
||||
} else if (event.key === "End") {
|
||||
target = buttons[buttons.length - 1];
|
||||
}
|
||||
if (target) {
|
||||
event.preventDefault();
|
||||
activate(target.dataset.layoutSwitcherButton, true);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", initLayoutSwitcher);
|
||||
} else {
|
||||
initLayoutSwitcher();
|
||||
}
|
||||
})();
|
||||
@@ -0,0 +1,5 @@
|
||||
mediumZoom(document.querySelectorAll("img:not(.nozoom)"), {
|
||||
margin: 24,
|
||||
background: "rgba(0,0,0,0.5)",
|
||||
scrollOffset: 0,
|
||||
});
|
||||
@@ -0,0 +1,103 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
function syncCheckboxLabels(checkbox) {
|
||||
var expanded = checkbox.checked ? "true" : "false";
|
||||
document.querySelectorAll('label[role="button"][for="' + checkbox.id + '"]').forEach(function (label) {
|
||||
label.setAttribute("aria-expanded", expanded);
|
||||
});
|
||||
}
|
||||
|
||||
function setupCheckboxLabels() {
|
||||
var seen = {};
|
||||
document.querySelectorAll('label[role="button"][for]').forEach(function (label) {
|
||||
var checkbox = document.getElementById(label.getAttribute("for"));
|
||||
if (!checkbox || checkbox.type !== "checkbox") return;
|
||||
|
||||
// Enter/Space activates the label like a real button
|
||||
label.addEventListener("keydown", function (event) {
|
||||
if (event.key === "Enter" || event.key === " " || event.key === "Spacebar") {
|
||||
event.preventDefault();
|
||||
label.click();
|
||||
}
|
||||
});
|
||||
|
||||
if (!seen[checkbox.id]) {
|
||||
seen[checkbox.id] = true;
|
||||
checkbox.addEventListener("change", function () {
|
||||
syncCheckboxLabels(checkbox);
|
||||
});
|
||||
syncCheckboxLabels(checkbox);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setupMobileMenuEscape() {
|
||||
var toggle = document.getElementById("mobile-menu-toggle");
|
||||
if (!toggle) return;
|
||||
document.addEventListener("keydown", function (event) {
|
||||
if (event.key === "Escape" && toggle.checked) {
|
||||
toggle.checked = false;
|
||||
syncCheckboxLabels(toggle);
|
||||
var opener = document.querySelector('label[role="button"][for="mobile-menu-toggle"]');
|
||||
if (opener) opener.focus();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setupMobileMenuOutsideClick() {
|
||||
var toggle = document.getElementById("mobile-menu-toggle");
|
||||
var dialog = document.getElementById("mobile-menu-dialog");
|
||||
if (!toggle || !dialog) return;
|
||||
document.addEventListener("click", function (event) {
|
||||
if (!toggle.checked || event.target === toggle) return;
|
||||
if (dialog.contains(event.target)) return;
|
||||
if (event.target.closest('label[for="mobile-menu-toggle"]')) return;
|
||||
toggle.checked = false;
|
||||
syncCheckboxLabels(toggle);
|
||||
});
|
||||
}
|
||||
|
||||
function setupDesktopDropdowns() {
|
||||
document.querySelectorAll(".nested-menu").forEach(function (menu) {
|
||||
var trigger = menu.querySelector("[aria-haspopup]");
|
||||
if (!trigger) return;
|
||||
var setExpanded = function (expanded) {
|
||||
trigger.setAttribute("aria-expanded", expanded ? "true" : "false");
|
||||
};
|
||||
menu.addEventListener("mouseenter", function () {
|
||||
setExpanded(true);
|
||||
});
|
||||
menu.addEventListener("mouseleave", function () {
|
||||
setExpanded(false);
|
||||
});
|
||||
menu.addEventListener("focusin", function () {
|
||||
setExpanded(true);
|
||||
});
|
||||
menu.addEventListener("focusout", function (event) {
|
||||
if (!menu.contains(event.relatedTarget)) setExpanded(false);
|
||||
});
|
||||
menu.addEventListener("keydown", function (event) {
|
||||
if (event.key === "Escape") {
|
||||
if (document.activeElement && menu.contains(document.activeElement)) {
|
||||
document.activeElement.blur();
|
||||
}
|
||||
setExpanded(false);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function init() {
|
||||
setupCheckboxLabels();
|
||||
setupMobileMenuEscape();
|
||||
setupMobileMenuOutsideClick();
|
||||
setupDesktopDropdowns();
|
||||
}
|
||||
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", init);
|
||||
} else {
|
||||
init();
|
||||
}
|
||||
})();
|
||||
@@ -0,0 +1,9 @@
|
||||
function readingProgress() {
|
||||
const bar = document.getElementById("reading-progress");
|
||||
if (!bar) return;
|
||||
const scrollable = document.documentElement.scrollHeight - window.innerHeight;
|
||||
bar.style.width = scrollable > 0 ? `${(window.scrollY / scrollable) * 100}%` : "0%";
|
||||
}
|
||||
|
||||
window.addEventListener("scroll", readingProgress, { passive: true });
|
||||
window.addEventListener("load", readingProgress);
|
||||
@@ -11,6 +11,7 @@ var last = output.lastChild;
|
||||
var searchVisible = false;
|
||||
var indexed = false;
|
||||
var hasResults = false;
|
||||
var previouslyFocused = null;
|
||||
|
||||
// Listen for events
|
||||
showButton ? showButton.addEventListener("click", displaySearch) : null;
|
||||
@@ -22,6 +23,11 @@ modal.addEventListener("click", function (event) {
|
||||
event.stopImmediatePropagation();
|
||||
return false;
|
||||
});
|
||||
const shortcutHint = document.getElementById("search-shortcut-hint");
|
||||
if (shortcutHint && !/Mac|iPhone|iPad/.test(navigator.platform)) {
|
||||
shortcutHint.textContent = "Ctrl K";
|
||||
}
|
||||
|
||||
document.addEventListener("keydown", function (event) {
|
||||
// Forward slash to open search wrapper
|
||||
if (event.key == "/") {
|
||||
@@ -35,11 +41,40 @@ document.addEventListener("keydown", function (event) {
|
||||
}
|
||||
}
|
||||
|
||||
// Cmd+K (macOS) / Ctrl+K to toggle search wrapper
|
||||
if (event.key && event.key.toLowerCase() == "k" && (event.metaKey || event.ctrlKey)) {
|
||||
event.preventDefault();
|
||||
if (searchVisible) {
|
||||
hideSearch();
|
||||
} else {
|
||||
displaySearch();
|
||||
}
|
||||
}
|
||||
|
||||
// Esc to close search wrapper
|
||||
if (event.key == "Escape") {
|
||||
hideSearch();
|
||||
}
|
||||
|
||||
// Trap Tab / Shift+Tab focus inside the modal while it is open
|
||||
if (event.key == "Tab" && searchVisible) {
|
||||
var focusable = modal.querySelectorAll('a[href], button, input, [tabindex="0"]');
|
||||
if (focusable.length > 0) {
|
||||
var firstFocusable = focusable[0];
|
||||
var lastFocusable = focusable[focusable.length - 1];
|
||||
if (!modal.contains(document.activeElement)) {
|
||||
event.preventDefault();
|
||||
firstFocusable.focus();
|
||||
} else if (event.shiftKey && document.activeElement == firstFocusable) {
|
||||
event.preventDefault();
|
||||
lastFocusable.focus();
|
||||
} else if (!event.shiftKey && document.activeElement == lastFocusable) {
|
||||
event.preventDefault();
|
||||
firstFocusable.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Down arrow to move down results list
|
||||
if (event.key == "ArrowDown") {
|
||||
if (searchVisible && hasResults) {
|
||||
@@ -91,6 +126,7 @@ function displaySearch() {
|
||||
buildIndex();
|
||||
}
|
||||
if (!searchVisible) {
|
||||
previouslyFocused = document.activeElement;
|
||||
document.body.style.overflow = "hidden";
|
||||
wrapper.style.visibility = "visible";
|
||||
input.focus();
|
||||
@@ -104,7 +140,12 @@ function hideSearch() {
|
||||
wrapper.style.visibility = "hidden";
|
||||
input.value = "";
|
||||
output.innerHTML = "";
|
||||
document.activeElement.blur();
|
||||
if (previouslyFocused && typeof previouslyFocused.focus === "function" && document.contains(previouslyFocused)) {
|
||||
previouslyFocused.focus();
|
||||
} else if (document.activeElement) {
|
||||
document.activeElement.blur();
|
||||
}
|
||||
previouslyFocused = null;
|
||||
searchVisible = false;
|
||||
}
|
||||
}
|
||||
@@ -151,6 +192,12 @@ function buildIndex() {
|
||||
}
|
||||
|
||||
function executeQuery(term) {
|
||||
if (!indexed) {
|
||||
buildIndex();
|
||||
}
|
||||
if (!fuse) {
|
||||
return;
|
||||
}
|
||||
let results = fuse.search(term);
|
||||
let resultsHTML = "";
|
||||
|
||||
@@ -193,7 +240,7 @@ function executeQuery(term) {
|
||||
}
|
||||
|
||||
output.innerHTML = resultsHTML;
|
||||
if (results.length > 0) {
|
||||
if (results.length > 0 && output.firstChild) {
|
||||
first = output.firstChild.firstElementChild;
|
||||
last = output.lastChild.firstElementChild;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Fuse.js v7.5.0 - Lightweight fuzzy-search (http://fusejs.io)
|
||||
*
|
||||
* Copyright (c) 2026 Kiro Risk (http://kiro.me)
|
||||
* All Rights Reserved. Apache Software License 2.0
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
function e(e){return Array.isArray?Array.isArray(e):u(e)===`[object Array]`}function t(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function n(e){return e==null?``:t(e)}function r(e){return typeof e==`string`}function i(e){return typeof e==`number`}function a(e){return e===!0||e===!1||s(e)&&u(e)==`[object Boolean]`}function o(e){return typeof e==`object`}function s(e){return o(e)&&e!==null}function c(e){return e!=null}function l(e){return!e.trim().length}function u(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}const d=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,f=e=>`Invalid value for key ${e}`,p=e=>`Pattern length exceeds max of ${e}.`,m=e=>`Missing ${e} property in key`,h=e=>`Property 'weight' in key '${e}' must be a positive integer`,g=Object.prototype.hasOwnProperty;var _=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=v(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function v(t){let n=null,i=null,a=null,o=1,s=null;if(r(t)||e(t))a=t,n=y(t),i=b(t);else{if(!g.call(t,`name`))throw Error(m(`name`));let e=t.name;if(a=e,g.call(t,`weight`)&&t.weight!==void 0&&(o=t.weight,o<=0))throw Error(h(b(e)));n=y(e),i=b(e),s=t.getFn??null}return{path:n,id:i,weight:o,src:a,getFn:s}}function y(t){return e(t)?t:t.split(`.`)}function b(t){return e(t)?t.join(`.`):t}function x(t,o){let s=[],l=!1,u=(t,o,d,f)=>{if(c(t))if(!o[d])s.push(f===void 0?t:{v:t,i:f});else{let p=t[o[d]];if(!c(p))return;if(d===o.length-1&&(r(p)||i(p)||a(p)||typeof p==`bigint`))s.push(f===void 0?n(p):{v:n(p),i:f});else if(e(p)){l=!0;for(let e=0,t=p.length;e<t;e+=1)u(p[e],o,d+1,e)}else o.length&&u(p,o,d+1,f)}};return u(t,r(o)?o.split(`.`):o,0),l?s:s[0]}const S={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},C={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},w={location:0,threshold:.6,distance:100},T={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:x,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},E=Object.freeze({...C,...S,...w,...T});function D(e){return e>=9&&e<=13||e===32||e===160}function O(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)D(t.charCodeAt(e))?a=!1:a||(i++,a=!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}var k=class{constructor({getFn:e=E.getFn,fieldNormWeight:t=E.fieldNormWeight}={}){this.norm=O(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(r(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(d);if(r(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(d);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!c(e)||l(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(t,i){let a={i,$:{}};for(let i=0,o=this.keys.length;i<o;i++){let o=this.keys[i],s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(c(s)){if(e(s)){let e=[];for(let t=0,i=s.length;t<i;t+=1){let i=s[t];if(c(i)){if(r(i)){if(!l(i)){let n={v:i,i:t,n:this.norm.get(i)};e.push(n)}}else if(c(i.v)){let t=r(i.v)?i.v:n(i.v);if(!l(t)){let n={v:t,i:i.i,n:this.norm.get(t)};e.push(n)}}}}a.$[i]=e}else if(r(s)&&!l(s)){let e={v:s,n:this.norm.get(s)};a.$[i]=e}}}return a}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function A(e,t,{getFn:n=E.getFn,fieldNormWeight:r=E.fieldNormWeight}={}){let i=new k({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(v)),i.seLine truncated
|
||||
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* Fuse.js v7.1.0 - Lightweight fuzzy-search (http://fusejs.io)
|
||||
*
|
||||
* Copyright (c) 2025 Kiro Risk (http://kiro.me)
|
||||
* All Rights Reserved. Apache Software License 2.0
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
var e,t;e=this,t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function u(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function g(e){return Array.isArray?Array.isArray(e):"[object Array]"===M(e)}var y=1/0;function p(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-y?"-0":t}(e)}function A(e){return"string"==typeof e}function m(e){return"number"==typeof e}function C(e){return!0===e||!1===e||function(e){return k(e)&&null!==e}(e)&&"[object Boolean]"==M(e)}function k(e){return"object"===n(e)}function E(e){return null!=e}function F(e){return!e.trim().length}function M(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var b=function(e){return"Missing ".concat(e," property in key")},D=function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")},B=Object.prototype.hasOwnProperty,x=function(){function e(t){var n=this;r(this,e),this._keys=[],this._keyMap={};var i=0;t.forEach((function(e){var t=w(e);n._keys.push(t),n._keyMap[t.id]=t,i+=t.weight})),this._keys.forEach((function(e){e.weight/=i}))}return u(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function w(e){var t=null,n=null,r=null,i=1,u=null;if(A(e)||g(e))r=e,t=S(e),n=L(e);else{if(!B.call(e,"name"))throw new ErLine truncated
|
||||
@@ -1 +1 @@
|
||||
@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(fonts/KaTeX_AMS-Regular.woff) format("woff"),url(fonts/KaTeX_AMS-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),url(fonts/KaTeX_Main-Bold.woff) format("woff"),url(fonts/KaTeX_Main-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),url(fonts/KaTeX_Main-Italic.woff) format("woff"),url(fonts/KaTeX_Main-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),url(fonts/KaTeX_Main-Regular.woff) format("woff"),url(fonts/KaTeX_Main-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),url(fonts/KaTeX_Math-Italic.woff) format("woff"),url(fonts/KaTeX_Math-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),url(fonts/KaTeX_Script-Regular.woff) format("woff"),url(fonts/KaTeX_Script-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size1-Regular.woff) format("woff"),url(fonts/KaTeX_Size1-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size2-Regular.woff) format("woff"),url(fonts/KaTeX_Size2-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size3-Regular.woff) format("woff"),url(fonts/KaTeX_Size3-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size4-Regular.woff) format("woff"),url(fonts/KaTeX_Size4-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(fonts/KaTeX_Typewriter-ReguLine truncated
|
||||
@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(fonts/KaTeX_AMS-Regular.woff) format("woff"),url(fonts/KaTeX_AMS-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),url(fonts/KaTeX_Main-Bold.woff) format("woff"),url(fonts/KaTeX_Main-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),url(fonts/KaTeX_Main-Italic.woff) format("woff"),url(fonts/KaTeX_Main-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),url(fonts/KaTeX_Main-Regular.woff) format("woff"),url(fonts/KaTeX_Main-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),url(fonts/KaTeX_Math-Italic.woff) format("woff"),url(fonts/KaTeX_Math-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),url(fonts/KaTeX_Script-Regular.woff) format("woff"),url(fonts/KaTeX_Script-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size1-Regular.woff) format("woff"),url(fonts/KaTeX_Size1-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size2-Regular.woff) format("woff"),url(fonts/KaTeX_Size2-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size3-Regular.woff) format("woff"),url(fonts/KaTeX_Size3-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size4-Regular.woff) format("woff"),url(fonts/KaTeX_Size4-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(fonts/KaTeX_Typewriter-ReguLine truncated
|
||||
@@ -1 +1 @@
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return so}});class r extends Error{constructor(e,t){let n,o,s="KaTeX parse error: "+e;const i=t&&t.loc;if(i&&i.start<=i.end){const e=i.lexer.input;n=i.start,o=i.end,n===e.length?s+=" at end of input: ":s+=" at position "+(n+1)+": ";const t=e.slice(n,o).replace(/[^]/g,"$&\u0332");let r,l;r=n>15?"\u2026"+e.slice(n-15,n):e.slice(0,n),l=o+15<e.length?e.slice(o,o+15)+"\u2026":e.slice(o),s+=r+t+l}super(s),this.name="ParseError",Object.setPrototypeOf(this,r.prototype),this.position=n,null!=n&&null!=o&&(this.length=o-n),this.rawMessage=e}}var n=r;const o=/([A-Z])/g,s=e=>e.replace(o,"-$1").toLowerCase(),i={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g,a=e=>String(e).replace(l,e=>i[e]),c=e=>"ordgroup"===e.type||"color"===e.type?1===e.body.length?c(e.body[0]):e:"font"===e.type?c(e.body):e,h=new Set(["mathord","textord","atom"]),m=e=>h.has(c(e).type),u={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function p(e){if("default"in e)return e.default;const t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class d{constructor(e){void 0===e&&(e={}),e=e||{};for(const t of Object.keys(u)){const r=u[t],n=e[t];this[t]=void 0!==n?r.processor?r.processor(n):n:p(r)}}reportNonstrict(e,t,r){let o=this.strict;if("function"==typeof o&&(o=o(e,t,r)),o&&"ignore"!==o){if(!0===o||"error"===o)throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===o?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r)Line truncated
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){return function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return uo}});class r extends Error{constructor(e,t){let n,o,s="KaTeX parse error: "+e;const i=t&&t.loc;if(i&&i.start<=i.end){const e=i.lexer.input;n=i.start,o=i.end,n===e.length?s+=" at end of input: ":s+=" at position "+(n+1)+": ";const t=e.slice(n,o).replace(/[^]/g,"$&\u0332");let r,a;r=n>15?"\u2026"+e.slice(n-15,n):e.slice(0,n),a=o+15<e.length?e.slice(o,o+15)+"\u2026":e.slice(o),s+=r+t+a}super(s),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,r.prototype),this.position=n,null!=n&&null!=o&&(this.length=o-n),this.rawMessage=e}}var n=r;const o=/([A-Z])/g,s=e=>e.replace(o,"-$1").toLowerCase(),i={"&":"&",">":">","<":"<",'"':""","'":"'"},a=/[&><"']/g,l=e=>String(e).replace(a,e=>i[e]),c=e=>"ordgroup"===e.type||"color"===e.type?1===e.body.length?c(e.body[0]):e:"font"===e.type?c(e.body):e,h=new Set(["mathord","textord","atom"]),m=e=>h.has(c(e).type),u={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function p(e){if(Object.prototype.hasOwnProperty.call(e,"default")&&void 0!==e.default)return e.default;return function(e){if("string"!=typeof e)return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}(Array.isArray(e.type)?e.type[0]:e.type)}function d(e,t,r,n){const o=Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0,s=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;e[t]=void 0!==o?s?s(o):o:p(n)}class g{constructor(e){void 0===e&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextCLine truncated
|
||||
@@ -1,5 +1,5 @@
|
||||
[module]
|
||||
[module.hugoVersion]
|
||||
extended = true
|
||||
min = "0.141.0"
|
||||
max = "0.157.0"
|
||||
min = "0.163.0"
|
||||
max = "0.166.0"
|
||||
@@ -1,6 +1,6 @@
|
||||
disabled = false
|
||||
languageCode = "en"
|
||||
languageName = "English"
|
||||
locale = "en"
|
||||
label = "English"
|
||||
weight = 1
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -36,6 +36,7 @@ title = "Blowfish"
|
||||
# { flickr = "https://www.flickr.com/photos/username/" },
|
||||
# { foursquare = "https://foursquare.com/username" },
|
||||
# { github = "https://github.com/username" },
|
||||
# { github_gist = "https://gist.github.com/username" },
|
||||
# { gitlab = "https://gitlab.com/username" },
|
||||
# { google = "https://www.google.com/" },
|
||||
# { hashnode = "https://username.hashnode.dev" },
|
||||
@@ -62,11 +63,13 @@ title = "Blowfish"
|
||||
# { spotify = "https://open.spotify.com/user/userid" },
|
||||
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
|
||||
# { steam = "https://steamcommunity.com/profiles/userid" },
|
||||
# { strava = "https://www.strava.com/athletes/username" },
|
||||
# { telegram = "https://t.me/username" },
|
||||
# { threads = "https://www.threads.net/@username" },
|
||||
# { tiktok = "https://tiktok.com/@username" },
|
||||
# { tumblr = "https://username.tumblr.com" },
|
||||
# { twitch = "https://twitch.tv/username" },
|
||||
# { untappd = "https://untappd.com/user/username" },
|
||||
# { twitter = "https://twitter.com/username" },
|
||||
# { x-twitter = "https://twitter.com/username" },
|
||||
# { whatsapp = "https://wa.me/phone-number" },
|
||||
|
||||
@@ -26,9 +26,12 @@ disableTextInHeader = false
|
||||
# backgroundImageWidth = 1200
|
||||
|
||||
# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images
|
||||
# backgroundCanvas = false # render defaultBackgroundImage as a fixed backdrop on every page
|
||||
# defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles
|
||||
# defaultSocialImage = "/android-chrome-512x512.png" # used as default for social media sharing (Open Graph and Twitter)
|
||||
hotlinkFeatureImage = false
|
||||
# Thumbnail aspect ratio as a number (e.g., "1.5", "1.0", "1.777")
|
||||
# thumbnailAspectRatio = "1.5"
|
||||
# imagePosition = "50% 50%"
|
||||
|
||||
# highlightCurrentMenuArea = true
|
||||
@@ -40,8 +43,19 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384",
|
||||
giteaDefaultServer = "https://git.fsfe.org"
|
||||
forgejoDefaultServer = "https://v11.next.forgejo.org"
|
||||
|
||||
[languageRedirect]
|
||||
enabled = false # Enable client-side language redirects for multilingual sites.
|
||||
storageKey = "blowfish_preferred_language" # localStorage key for manual language selections.
|
||||
# fallbackLanguage = "" # Language to use when no browser language matches. Defaults to Hugo's default content language.
|
||||
browserRedirectHomeOnly = true # Restrict browser-language redirects to home pages.
|
||||
storedLanguageRedirect = true # Redirect to the stored language when a matching translation exists.
|
||||
|
||||
[seo]
|
||||
# metaDescriptionOrder = ["summary", "description", "site"] # Controls the fallback order for the HTML meta description. Valid values are "summary", "description", and "site".
|
||||
|
||||
[header]
|
||||
layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
|
||||
layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur, floating
|
||||
# mobileMenuStyle = "fullscreen" # valid options: fullscreen, dropdown
|
||||
|
||||
[footer]
|
||||
showMenu = true
|
||||
@@ -51,7 +65,8 @@ forgejoDefaultServer = "https://v11.next.forgejo.org"
|
||||
showScrollToTop = true
|
||||
|
||||
[homepage]
|
||||
layout = "profile" # valid options: page, profile, hero, card, background, custom
|
||||
layout = "profile" # valid options: page, profile, hero, card, background, landing, custom
|
||||
# layoutSwitcher = false # opt-in interactive preview of the built-in layouts
|
||||
#homepageImage = "IMAGE.jpg" # used in: hero, and card
|
||||
showRecent = false
|
||||
showRecentItems = 5
|
||||
@@ -84,11 +99,14 @@ forgejoDefaultServer = "https://v11.next.forgejo.org"
|
||||
showPagination = true
|
||||
invertPagination = false
|
||||
showReadingTime = true
|
||||
showReadingProgress = false
|
||||
showTableOfContents = false
|
||||
# showRelatedContent = false
|
||||
# relatedContentLimit = 3
|
||||
showTaxonomies = false # use showTaxonomies OR showCategoryOnly, not both
|
||||
showCategoryOnly = false # use showTaxonomies OR showCategoryOnly, not both
|
||||
showTaxonomies = false # Enable the display of taxonomies for the related article.
|
||||
showCategories = true # These will show if showTaxonomies is true.
|
||||
showTags = true # These will show if showTaxonomies is true.
|
||||
showCategoriesInSecondaryColor = false # This will change the color of category badges, so the user can better distinguish between the two. Only if showTaxonomies is true.
|
||||
showAuthorsBadges = false
|
||||
showWordCount = true
|
||||
# sharingLinks = [ "linkedin", "twitter", "bluesky", "mastodon", "reddit", "pinterest", "facebook", "email", "whatsapp", "telegram", "line"]
|
||||
@@ -97,6 +115,7 @@ forgejoDefaultServer = "https://v11.next.forgejo.org"
|
||||
|
||||
[list]
|
||||
showHero = false
|
||||
# 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
|
||||
layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
|
||||
@@ -119,6 +138,8 @@ forgejoDefaultServer = "https://v11.next.forgejo.org"
|
||||
showTermCount = true
|
||||
showHero = false
|
||||
# heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
||||
layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground
|
||||
layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
|
||||
showBreadcrumbs = false
|
||||
showViews = false
|
||||
showLikes = false
|
||||
@@ -128,6 +149,8 @@ forgejoDefaultServer = "https://v11.next.forgejo.org"
|
||||
[term]
|
||||
showHero = false
|
||||
# heroStyle = "background" # valid options: basic, big, background, thumbAndBackground
|
||||
layoutBackgroundBlur = true # only used when heroStyle equals background or thumbAndBackground
|
||||
layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
|
||||
showBreadcrumbs = false
|
||||
showViews = false
|
||||
showLikes = false
|
||||
|
||||
@@ -1 +1 @@
|
||||
[{"avatar_url":"https://avatars.githubusercontent.com/u/928965?u=f5d781ca0eb5cb5c7ce9e5ee5d3b24dae3d6e987\u0026v=4\u0026s=128","profile_url":"https://github.com/nazar-pc","username":"nazar-pc"},{"avatar_url":"https://avatars.githubusercontent.com/u/17061177?v=4\u0026s=128","profile_url":"https://github.com/ytocquet","username":"ytocquet"},{"avatar_url":"https://avatars.githubusercontent.com/u/49299328?v=4\u0026s=128","profile_url":"https://github.com/LITUATUI","username":"LITUATUI"},{"avatar_url":"https://avatars.githubusercontent.com/u/63926014?u=210b17915c6546122cff4ee9abf0eb3d02bef236\u0026v=4\u0026s=128","profile_url":"https://github.com/ethanolivertroy","username":"ethanolivertroy"},{"avatar_url":"https://avatars.githubusercontent.com/u/147227691?v=4\u0026s=128","profile_url":"https://github.com/AtmosphericIgnition","username":"AtmosphericIgnition"}]
|
||||
[{"avatar_url":"https://avatars.githubusercontent.com/u/31580846?u=d5fa5e2ea2c6d7cff2e54410f9537e41e6a00dee\u0026v=4\u0026s=128","profile_url":"https://github.com/holysoles","username":"holysoles"},{"avatar_url":"https://avatars.githubusercontent.com/u/928965?u=f5d781ca0eb5cb5c7ce9e5ee5d3b24dae3d6e987\u0026v=4\u0026s=128","profile_url":"https://github.com/nazar-pc","username":"nazar-pc"},{"avatar_url":"https://avatars.githubusercontent.com/u/17061177?u=dfc0b44e86fa09e96605ec9c7775f4f98df90a20\u0026v=4\u0026s=128","profile_url":"https://github.com/ytocquet","username":"ytocquet"},{"avatar_url":"https://avatars.githubusercontent.com/u/147227691?v=4\u0026s=128","profile_url":"https://github.com/AtmosphericIgnition","username":"AtmosphericIgnition"}]
|
||||
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 1.7 MiB |
@@ -0,0 +1,34 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" preserveAspectRatio="xMidYMid slice">
|
||||
<defs>
|
||||
<radialGradient id="violet" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0" stop-color="#7c3aed" stop-opacity=".72"/>
|
||||
<stop offset="1" stop-color="#7c3aed" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="blue" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0" stop-color="#2563eb" stop-opacity=".68"/>
|
||||
<stop offset="1" stop-color="#2563eb" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<filter id="blur"><feGaussianBlur stdDeviation="34"/></filter>
|
||||
<filter id="grain"><feTurbulence type="fractalNoise" baseFrequency=".8" numOctaves="3" stitchTiles="stitch"/><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 .09 0"/></filter>
|
||||
<linearGradient id="line" x1="0" x2="1"><stop stop-color="#60a5fa" stop-opacity="0"/><stop offset=".5" stop-color="#c4b5fd" stop-opacity=".52"/><stop offset="1" stop-color="#fb7185" stop-opacity="0"/></linearGradient>
|
||||
</defs>
|
||||
<rect width="1600" height="900" fill="#061126"/>
|
||||
<g filter="url(#blur)">
|
||||
<circle cx="280" cy="160" r="290" fill="url(#violet)">
|
||||
<animate attributeName="cx" values="280;440;280" dur="22s" repeatCount="indefinite"/>
|
||||
<animate attributeName="cy" values="160;260;160" dur="18s" repeatCount="indefinite"/>
|
||||
</circle>
|
||||
<circle cx="1320" cy="690" r="350" fill="url(#blue)">
|
||||
<animate attributeName="cx" values="1320;1160;1320" dur="26s" repeatCount="indefinite"/>
|
||||
<animate attributeName="cy" values="690;580;690" dur="20s" repeatCount="indefinite"/>
|
||||
</circle>
|
||||
<circle cx="900" cy="250" r="190" fill="url(#blue)" opacity=".7">
|
||||
<animate attributeName="cy" values="250;390;250" dur="16s" repeatCount="indefinite"/>
|
||||
</circle>
|
||||
</g>
|
||||
<g fill="none" stroke="url(#line)" stroke-width="1.5" opacity=".75">
|
||||
<path d="M-80 670 C250 420 470 850 770 600 S1320 280 1680 490"><animate attributeName="d" dur="19s" repeatCount="indefinite" values="M-80 670 C250 420 470 850 770 600 S1320 280 1680 490;M-80 570 C250 720 470 410 770 640 S1320 390 1680 390;M-80 670 C250 420 470 850 770 600 S1320 280 1680 490"/></path>
|
||||
<path d="M-60 760 C230 520 500 780 810 690 S1340 420 1660 610" opacity=".65"><animate attributeName="d" dur="24s" repeatCount="indefinite" values="M-60 760 C230 520 500 780 810 690 S1340 420 1660 610;M-60 660 C230 750 500 510 810 730 S1340 330 1660 520;M-60 760 C230 520 500 780 810 690 S1340 420 1660 610"/></path>
|
||||
</g>
|
||||
<rect width="1600" height="900" filter="url(#grain)" opacity=".55"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 2.0 MiB |
@@ -1,5 +1,5 @@
|
||||
languageCode = "de"
|
||||
languageName = "Deutsch"
|
||||
locale = "de"
|
||||
label = "Deutsch"
|
||||
weight = 3
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -19,4 +19,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "en"
|
||||
languageName = "English"
|
||||
locale = "en"
|
||||
label = "English"
|
||||
weight = 1
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -20,4 +20,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "es"
|
||||
languageName = "Español"
|
||||
locale = "es"
|
||||
label = "Español"
|
||||
weight = 6
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -19,4 +19,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "fr"
|
||||
languageName = "Français"
|
||||
locale = "fr"
|
||||
label = "Français"
|
||||
weight = 2
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -19,4 +19,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "it"
|
||||
languageName = "Italiano"
|
||||
locale = "it"
|
||||
label = "Italiano"
|
||||
weight = 4
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -19,4 +19,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "ja"
|
||||
languageName = "日本語"
|
||||
locale = "ja"
|
||||
label = "日本語"
|
||||
weight = 8
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -20,4 +20,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "pt-br"
|
||||
languageName = "Português (Brasil)"
|
||||
locale = "pt-br"
|
||||
label = "Português (Brasil)"
|
||||
weight = 6
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -19,4 +19,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "pt-pt"
|
||||
languageName = "Português (Portugal)"
|
||||
locale = "pt-pt"
|
||||
label = "Português (Portugal)"
|
||||
weight = 5
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -19,4 +19,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
languageCode = "zh-cn"
|
||||
languageName = "简体中文"
|
||||
locale = "zh-cn"
|
||||
label = "简体中文"
|
||||
weight = 9
|
||||
title = "Blowfish"
|
||||
|
||||
@@ -19,4 +19,5 @@ title = "Blowfish"
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
{ github = "https://github.com/nunocoracao/blowfish" },
|
||||
{ bluesky = "https://bsky.app/profile/burufugu.bsky.social" },
|
||||
]
|
||||
@@ -39,7 +39,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "Merch"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -49,6 +50,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "Merch"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -63,6 +64,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
#[[main]]
|
||||
# identifier = "mastodon"
|
||||
# pre = "mastodon"
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "Merch"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -49,6 +50,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "Merch"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -49,6 +50,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "Merch"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -63,6 +64,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
#[[main]]
|
||||
# identifier = "mastodon"
|
||||
# pre = "mastodon"
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "グッズ"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -63,6 +64,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
#[[main]]
|
||||
# identifier = "mastodon"
|
||||
# pre = "mastodon"
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "Merch"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -49,6 +50,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "Merch"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -49,6 +50,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
weight = 90
|
||||
|
||||
[[main]]
|
||||
name = "周边"
|
||||
identifier = "merch"
|
||||
pre = "shirt"
|
||||
url = "https://www.teepublic.com/user/blowfish-store/t-shirts"
|
||||
weight = 100
|
||||
|
||||
@@ -63,6 +64,12 @@
|
||||
url = "https://twitter.com/burufugu"
|
||||
weight = 200
|
||||
|
||||
[[main]]
|
||||
identifier = "bluesky"
|
||||
pre = "bluesky"
|
||||
url = "https://bsky.app/profile/burufugu.bsky.social"
|
||||
weight = 250
|
||||
|
||||
#[[main]]
|
||||
# identifier = "mastodon"
|
||||
# pre = "mastodon"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Refer to the theme docs for more details about each of these parameters.
|
||||
# https://blowfish.page/docs/configuration/#theme-parameters
|
||||
|
||||
colorScheme = "blowfish"
|
||||
colorScheme = "burufugu"
|
||||
defaultAppearance = "dark" # valid options: light or dark
|
||||
autoSwitchAppearance = true
|
||||
|
||||
@@ -24,7 +24,8 @@ disableImageOptimizationMD = false
|
||||
disableTextInHeader = false
|
||||
# backgroundImageWidth = 1200
|
||||
|
||||
defaultBackgroundImage = "/img/background.svg"
|
||||
defaultBackgroundImage = "images/v3/site-background.svg"
|
||||
backgroundCanvas = true # render defaultBackgroundImage as a fixed backdrop on every page
|
||||
defaultFeaturedImage = "/img/featured.svg"
|
||||
defaultSocialImage = "/img/blowfish_banner.png"
|
||||
hotlinkFeatureImage = false
|
||||
@@ -40,7 +41,8 @@ smartTOCHideUnfocusedChildren = false
|
||||
fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384", "sha256"
|
||||
|
||||
[header]
|
||||
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
|
||||
layout = "floating" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur, floating
|
||||
mobileMenuStyle = "dropdown" # valid options: fullscreen, dropdown
|
||||
|
||||
[footer]
|
||||
showMenu = true
|
||||
@@ -50,9 +52,10 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384",
|
||||
showScrollToTop = true
|
||||
|
||||
[homepage]
|
||||
layout = "custom" # valid options: page, profile, hero, card, background, custom
|
||||
layout = "landing" # valid options: page, profile, hero, card, background, landing, custom
|
||||
layoutSwitcher = true # opt-in interactive preview of the built-in layouts
|
||||
# homepageImage = "/img/iceland.jpg" # used in: hero, and card
|
||||
showRecent = false
|
||||
showRecent = true
|
||||
showRecentItems = 12
|
||||
showMoreLink = true
|
||||
showMoreLinkDest = "docs"
|
||||
@@ -83,6 +86,7 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384",
|
||||
showPagination = true
|
||||
invertPagination = false
|
||||
showReadingTime = true
|
||||
showReadingProgress = true
|
||||
showTableOfContents = true
|
||||
showRelatedContent = true
|
||||
relatedContentLimit = 9
|
||||
@@ -108,6 +112,7 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384",
|
||||
cardView = true
|
||||
cardViewScreenWidth = false
|
||||
constrainItemsWidth = false
|
||||
featureImageHover = false
|
||||
|
||||
[sitemap]
|
||||
excludedKinds = []
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
# https://gohugo.io/quick-reference/glossary/#environment
|
||||
|
||||
# Exclude folders containing large numbers of images
|
||||
ignoreFiles = ['content/guides', 'content/users']
|
||||
ignoreFiles = ['content/users']
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "Willkommen bei Blowfish! :tada:"
|
||||
description: "Diese Seite wurde mit dem Blowfish-Theme für Hugo erstellt."
|
||||
title: "Baue eine Website, die unverwechselbar deine ist."
|
||||
description: "Ein modernes, flexibles Hugo-Theme für Blogs, Dokumentation, Portfolios und mehr."
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "Blowfish bietet ausdrucksstarke Layouts, durchdachte Voreinstellungen und praktische Bausteine für deine Inhalte — damit du dich auf das konzentrieren kannst, was du sagen möchtest."
|
||||
heroButtons:
|
||||
- label: "Loslegen"
|
||||
url: "/de/docs/installation/"
|
||||
- label: "Dokumentation entdecken"
|
||||
url: "/de/docs/"
|
||||
style: "outline"
|
||||
- label: "Star auf GitHub"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="Homepage-Layouts" >}}Wähle die Struktur, die zu deiner Website passt.{{< /stat >}}
|
||||
{{< stat value="40+" label="Shortcodes" >}}Gestalte ausdrucksstarke Inhalte, ohne eigene Templates zu pflegen.{{< /stat >}}
|
||||
{{< stat value="100%" label="Deine Inhalte" >}}Portables Markdown, vertraute Hugo-Konfiguration, kein Lock-in.{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">Dies ist eine Demo des <code id="layout">background</code> Layouts.</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
Layout wechseln ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Blowfish-tools Demo" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="Mach es zu deinem" url="/de/docs/configuration/" >}}
|
||||
Ein stimmiges System aus Layouts, Farben, Typografie und Inhaltssteuerung.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="Schneller gestalten" url="/de/docs/shortcodes/" label="Shortcodes durchstöbern" >}}
|
||||
Nützliche Komponenten für reichere Geschichten, klarere Dokumentation und weniger Eigenbau.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="Offen entwickelt" url="/de/users/" >}}
|
||||
Entdecke echte Websites, Community-Beiträge und Patterns, die sich in der Praxis bewähren.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="Gemacht für KI-Agents" url="/de/docs/installation/#agent-skill" label="Skill installieren" >}}
|
||||
Blowfish enthält einen Agent-Skill, der Claude Code und anderen Coding-Agents beibringt, das Theme zu installieren, zu konfigurieren und damit zu arbeiten.
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**Blowfish v3.5 ist verfügbar.** Starte eine neue Website mit `npx blowfish-tools new <site>` oder [aktualisiere eine bestehende Website]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}}).
|
||||
|
||||
**Du arbeitest mit einem Coding-Agent?** Führe in Claude Code `/plugin marketplace add nunocoracao/blowfish` und anschließend `/plugin install blowfish@blowfish` aus. Bei einem anderen Agent, der Projekt-Skills liest, kopiere den [`blowfish`-Skill-Ordner](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) in deine Website nach `.claude/skills/blowfish/`.
|
||||
{{< /alert >}}
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "¡Bienvenido a Blowfish! :tada:"
|
||||
description: "Esta página fue creada usando el tema Blowfish para Hugo."
|
||||
title: "Crea un sitio que sea inconfundiblemente tuyo."
|
||||
description: "Un tema de Hugo moderno y flexible para blogs, documentación, portafolios y más."
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "Blowfish te ofrece layouts expresivos, valores predeterminados bien pensados y bloques de contenido prácticos, para que te concentres en lo que quieres contar."
|
||||
heroButtons:
|
||||
- label: "Empezar"
|
||||
url: "/es/docs/installation/"
|
||||
- label: "Explorar la documentación"
|
||||
url: "/es/docs/"
|
||||
style: "outline"
|
||||
- label: "Dale una estrella en GitHub"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="Layouts de portada" >}}Elige la estructura que mejor se adapta al sitio que estás creando.{{< /stat >}}
|
||||
{{< stat value="40+" label="Shortcodes" >}}Compón contenido expresivo sin mantener plantillas a medida.{{< /stat >}}
|
||||
{{< stat value="100%" label="Tu contenido" >}}Markdown portable, configuración familiar de Hugo y sin ataduras.{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">Esta es una demostración del layout <code id="layout">background</code>.</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
Cambiar layout ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Demo de Blowfish-tools" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="Hazlo tuyo" url="/es/docs/configuration/" >}}
|
||||
Un sistema coherente de layouts, colores, tipografía y controles de contenido.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="Compón más rápido" url="/es/docs/shortcodes/" label="Ver shortcodes" >}}
|
||||
Componentes útiles para historias más ricas, documentación más clara y menos código a medida.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="Hecho en abierto" url="/es/users/" >}}
|
||||
Explora sitios reales, contribuciones de la comunidad y patrones que funcionan en producción.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="Pensado para agentes de IA" url="/es/docs/installation/#skill-para-agentes" label="Instalar el skill" >}}
|
||||
Blowfish incluye un skill que enseña a Claude Code y otros agentes de programación a instalar, configurar y trabajar con el tema.
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**Blowfish v3.5 ya está disponible.** Crea un sitio nuevo con `npx blowfish-tools new <site>` o [actualiza un sitio existente]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}}).
|
||||
|
||||
**¿Trabajas con un agente de programación?** En Claude Code, ejecuta `/plugin marketplace add nunocoracao/blowfish` y después `/plugin install blowfish@blowfish`. Para otro agente que lea skills del proyecto, copia la [carpeta del skill `blowfish`](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) a `.claude/skills/blowfish/` en tu sitio.
|
||||
{{< /alert >}}
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "Bienvenue sur Blowfish ! :tada:"
|
||||
description: "Cette page a été créée avec le thème Blowfish pour Hugo."
|
||||
title: "Créez un site qui vous ressemble vraiment."
|
||||
description: "Un thème Hugo moderne et flexible pour les blogs, la documentation, les portfolios et plus encore."
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "Blowfish vous offre des layouts expressifs, des réglages par défaut bien pensés et des blocs de contenu pratiques, pour vous concentrer sur ce que vous voulez dire."
|
||||
heroButtons:
|
||||
- label: "Commencer"
|
||||
url: "/fr/docs/installation/"
|
||||
- label: "Explorer la documentation"
|
||||
url: "/fr/docs/"
|
||||
style: "outline"
|
||||
- label: "Star sur GitHub"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="Layouts d'accueil" >}}Choisissez la structure qui convient au site que vous créez.{{< /stat >}}
|
||||
{{< stat value="40+" label="Shortcodes" >}}Composez un contenu expressif sans maintenir de templates sur mesure.{{< /stat >}}
|
||||
{{< stat value="100%" label="Votre contenu" >}}Markdown portable, configuration Hugo familière et aucune dépendance.{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">Ceci est une démo du layout <code id="layout">background</code>.</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
Changer de layout ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Démo de Blowfish-tools" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="Faites-le vôtre" url="/fr/docs/configuration/" >}}
|
||||
Un système cohérent de layouts, couleurs, typographie et contrôles de contenu.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="Composez plus vite" url="/fr/docs/shortcodes/" label="Parcourir les shortcodes" >}}
|
||||
Des composants utiles pour des histoires plus riches, une documentation plus claire et moins de code sur mesure.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="Développé au grand jour" url="/fr/users/" >}}
|
||||
Découvrez des sites réels, des contributions de la communauté et des patterns éprouvés en production.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="Conçu pour les agents IA" url="/fr/docs/installation/#skill-pour-agents" label="Installer le skill" >}}
|
||||
Blowfish inclut un skill qui apprend à Claude Code et à d'autres agents de codage à installer, configurer et utiliser le thème.
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**Blowfish v3.5 est disponible.** Créez un nouveau site avec `npx blowfish-tools new <site>` ou [mettez à niveau un site existant]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}}).
|
||||
|
||||
**Vous travaillez avec un agent de codage ?** Dans Claude Code, exécutez `/plugin marketplace add nunocoracao/blowfish`, puis `/plugin install blowfish@blowfish`. Pour un autre agent qui lit les skills du projet, copiez le [dossier du skill `blowfish`](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) dans `.claude/skills/blowfish/` de votre site.
|
||||
{{< /alert >}}
|
||||
@@ -1,25 +1,44 @@
|
||||
---
|
||||
title: "Benvenuti a Blowfish!"
|
||||
description: "Questa pagina è stata creata utilizzando il tema Blowfish per Hugo."
|
||||
title: "Crea un sito che sia inconfondibilmente tuo."
|
||||
description: "Un tema Hugo moderno e flessibile per blog, documentazione, portfolio e altro."
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "Blowfish ti offre layout espressivi, impostazioni predefinite ben pensate e blocchi di contenuto pratici, così puoi concentrarti su ciò che vuoi raccontare."
|
||||
heroButtons:
|
||||
- label: "Inizia"
|
||||
url: "/it/docs/installation/"
|
||||
- label: "Esplora la documentazione"
|
||||
url: "/it/docs/"
|
||||
style: "outline"
|
||||
- label: "Metti una stella su GitHub"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">Questa è una demo del layout <code id="layout">background</code>.</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
Cambia layout ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="Layout della homepage" >}}Scegli la struttura più adatta al sito che stai creando.{{< /stat >}}
|
||||
{{< stat value="40+" label="Shortcode" >}}Componi contenuti espressivi senza mantenere template su misura.{{< /stat >}}
|
||||
{{< stat value="100%" label="I tuoi contenuti" >}}Markdown portabile, configurazione Hugo familiare e nessun lock-in.{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="Rendilo tuo" url="/it/docs/configuration/" >}}
|
||||
Un sistema coerente di layout, colori, tipografia e controlli dei contenuti.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="Componi più velocemente" url="/it/docs/shortcodes/" label="Sfoglia gli shortcode" >}}
|
||||
Componenti utili per storie più ricche, documentazione più chiara e meno codice su misura.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="Sviluppato in aperto" url="/it/users/" >}}
|
||||
Esplora siti reali, contributi della community e pattern che reggono in produzione.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="Pensato per gli agenti IA" url="/it/docs/installation/#skill-per-agenti" label="Installa la skill" >}}
|
||||
Blowfish include una skill che insegna a Claude Code e ad altri agenti di programmazione a installare, configurare e usare il tema.
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Demo degli strumenti Blowfish" >}}
|
||||
{{< alert >}}
|
||||
**Blowfish v3.5 è disponibile.** Crea un nuovo sito con `npx blowfish-tools new <site>` oppure [aggiorna un sito esistente]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}}).
|
||||
|
||||
**Lavori con un agente di programmazione?** In Claude Code esegui `/plugin marketplace add nunocoracao/blowfish`, poi `/plugin install blowfish@blowfish`. Per un altro agente che legge le skill del progetto, copia la [cartella della skill `blowfish`](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) in `.claude/skills/blowfish/` del tuo sito.
|
||||
{{< /alert >}}
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "Blowfish へようこそ! :tada:"
|
||||
description: "このページは Hugo の Blowfish テーマを利用して構築されています。"
|
||||
title: "まぎれもなく自分らしいサイトを。"
|
||||
description: "ブログ、ドキュメント、ポートフォリオなどに使える、モダンで柔軟な Hugo テーマ。"
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "Blowfish は表現力豊かなレイアウト、行き届いたデフォルト設定、実用的なコンテンツ部品を提供します。あなたは伝えたいことに集中するだけです。"
|
||||
heroButtons:
|
||||
- label: "はじめる"
|
||||
url: "/ja/docs/installation/"
|
||||
- label: "ドキュメントを見る"
|
||||
url: "/ja/docs/"
|
||||
style: "outline"
|
||||
- label: "GitHub でスターする"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="ホームページレイアウト" >}}作りたいサイトに合った構成を選べます。{{< /stat >}}
|
||||
{{< stat value="40+" label="ショートコード" >}}独自テンプレートを管理せずに、表現力豊かなコンテンツを作成できます。{{< /stat >}}
|
||||
{{< stat value="100%" label="あなたのコンテンツ" >}}ポータブルな Markdown、おなじみの Hugo 設定、ロックインなし。{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">こちらは <code id="layout">background</code> レイアウトのデモです。</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
レイアウトを変更する↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Blowfish-tools demo" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="自分好みに" url="/ja/docs/configuration/" >}}
|
||||
レイアウト、配色、タイポグラフィ、コンテンツ制御の一貫したシステム。
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="より速く作る" url="/ja/docs/shortcodes/" label="ショートコードを見る" >}}
|
||||
豊かなストーリーと明快なドキュメントのための便利なコンポーネント。
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="オープンに開発" url="/ja/users/" >}}
|
||||
実際のサイト、コミュニティの貢献、実運用に耐えるパターンを探索できます。
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="AI エージェント対応" url="/ja/docs/installation/#エージェントスキル" label="スキルをインストール" >}}
|
||||
Blowfish には、Claude Code などのコーディングエージェントにテーマのインストール・設定・活用方法を教えるエージェントスキルが付属しています。
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**Blowfish v3.5 が利用可能になりました。** `npx blowfish-tools new <site>` で新しいサイトを始めるか、[既存サイトをアップグレード]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}})してください。
|
||||
|
||||
**コーディングエージェントを使っていますか?** Claude Code では `/plugin marketplace add nunocoracao/blowfish` を実行し、次に `/plugin install blowfish@blowfish` を実行します。プロジェクトスキルを読み取る別のエージェントでは、[`blowfish` スキルフォルダ](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish)をサイトの `.claude/skills/blowfish/` にコピーしてください。
|
||||
{{< /alert >}}
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "Welcome to Blowfish! :tada:"
|
||||
description: "This page was built using the Blowfish theme for Hugo."
|
||||
title: "Build a site that feels unmistakably yours."
|
||||
description: "A modern, flexible Hugo theme for blogs, documentation, portfolios, and more."
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "Blowfish gives you expressive layouts, thoughtful defaults, and practical content building blocks, so you can focus on the thing you want to say."
|
||||
heroButtons:
|
||||
- label: "Get started"
|
||||
url: "/docs/installation/"
|
||||
- label: "Explore the docs"
|
||||
url: "/docs/"
|
||||
style: "outline"
|
||||
- label: "Star on GitHub"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="Homepage layouts" >}}Choose the structure that suits the site you are making.{{< /stat >}}
|
||||
{{< stat value="40+" label="Shortcodes" >}}Compose expressive content without maintaining one-off templates.{{< /stat >}}
|
||||
{{< stat value="100%" label="Your content" >}}Portable Markdown, familiar Hugo configuration, and no lock-in.{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">This is a demo of the <code id="layout">background</code> layout.</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
Switch layout ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Blowfish-tools demo" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="Make it yours" url="/docs/configuration/" >}}
|
||||
A coherent system of layouts, colours, typography, and content controls.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="Compose faster" url="/docs/shortcodes/" label="Browse shortcodes" >}}
|
||||
Useful components for richer stories, clearer documentation, and less custom glue.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="Made in the open" url="/users/" >}}
|
||||
Explore real sites, community contributions, and patterns that hold up in production.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="Built for AI agents" url="/docs/installation/#agent-skill" label="Install the skill" >}}
|
||||
Blowfish ships an agent skill that teaches Claude Code and other coding agents how to install, configure, and build with the theme.
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**Blowfish v3.5 is available.** Start a new site with `npx blowfish-tools new <site>` or [upgrade an existing site]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}}).
|
||||
|
||||
**Working with a coding agent?** In Claude Code, run `/plugin marketplace add nunocoracao/blowfish`, then `/plugin install blowfish@blowfish`. For another agent that reads project skills, copy the [`blowfish` skill folder](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) into your site at `.claude/skills/blowfish/`.
|
||||
{{< /alert >}}
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "Bem-vindo ao Blowfish! :tada:"
|
||||
description: "Esta página foi criada usando o tema Blowfish para Hugo."
|
||||
title: "Crie um site que seja inconfundivelmente seu."
|
||||
description: "Um tema Hugo moderno e flexível para blogs, documentação, portfólios e muito mais."
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "O Blowfish oferece layouts expressivos, padrões bem pensados e blocos de conteúdo práticos, para que você se concentre no que quer dizer."
|
||||
heroButtons:
|
||||
- label: "Começar"
|
||||
url: "/pt-br/docs/installation/"
|
||||
- label: "Explorar a documentação"
|
||||
url: "/pt-br/docs/"
|
||||
style: "outline"
|
||||
- label: "Dê uma estrela no GitHub"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="Layouts de página inicial" >}}Escolha a estrutura ideal para o site que você está criando.{{< /stat >}}
|
||||
{{< stat value="40+" label="Shortcodes" >}}Componha conteúdo expressivo sem manter templates sob medida.{{< /stat >}}
|
||||
{{< stat value="100%" label="Seu conteúdo" >}}Markdown portátil, configuração familiar do Hugo e sem lock-in.{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">Esta é uma demonstração do layout <code id="layout">background</code>.</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
Mudar layout ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Demo do Blowfish-tools" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="Deixe com a sua cara" url="/pt-br/docs/configuration/" >}}
|
||||
Um sistema coerente de layouts, cores, tipografia e controles de conteúdo.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="Componha mais rápido" url="/pt-br/docs/shortcodes/" label="Ver shortcodes" >}}
|
||||
Componentes úteis para histórias mais ricas, documentação mais clara e menos código sob medida.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="Feito abertamente" url="/pt-br/users/" >}}
|
||||
Explore sites reais, contribuições da comunidade e padrões que funcionam em produção.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="Feito para agentes de IA" url="/pt-br/docs/installation/#skill-para-agentes" label="Instalar a skill" >}}
|
||||
O Blowfish inclui uma skill que ensina o Claude Code e outros agentes de programação a instalar, configurar e trabalhar com o tema.
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**O Blowfish v3.5 está disponível.** Crie um novo site com `npx blowfish-tools new <site>` ou [atualize um site existente]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}}).
|
||||
|
||||
**Trabalha com um agente de programação?** No Claude Code, execute `/plugin marketplace add nunocoracao/blowfish` e depois `/plugin install blowfish@blowfish`. Para outro agente que leia skills do projeto, copie a [pasta da skill `blowfish`](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) para `.claude/skills/blowfish/` no seu site.
|
||||
{{< /alert >}}
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "Bem-vindo ao Blowfish! :tada:"
|
||||
description: "Esta página foi criada utilizando o tema Blowfish para Hugo."
|
||||
title: "Crie um site que seja inconfundivelmente seu."
|
||||
description: "Um tema Hugo moderno e flexível para blogs, documentação, portefólios e muito mais."
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "O Blowfish oferece layouts expressivos, predefinições bem pensadas e blocos de conteúdo práticos, para que se concentre no que quer dizer."
|
||||
heroButtons:
|
||||
- label: "Começar"
|
||||
url: "/pt-pt/docs/installation/"
|
||||
- label: "Explorar a documentação"
|
||||
url: "/pt-pt/docs/"
|
||||
style: "outline"
|
||||
- label: "Dê uma estrela no GitHub"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="Layouts de página inicial" >}}Escolha a estrutura ideal para o site que está a criar.{{< /stat >}}
|
||||
{{< stat value="40+" label="Shortcodes" >}}Componha conteúdo expressivo sem manter templates à medida.{{< /stat >}}
|
||||
{{< stat value="100%" label="O seu conteúdo" >}}Markdown portátil, configuração familiar do Hugo e sem dependências.{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert">Esta é uma demonstração do layout <code id="layout">background</code>.</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
Mudar layout ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Demo do Blowfish-tools" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="Torne-o seu" url="/pt-pt/docs/configuration/" >}}
|
||||
Um sistema coerente de layouts, cores, tipografia e controlos de conteúdo.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="Componha mais depressa" url="/pt-pt/docs/shortcodes/" label="Ver shortcodes" >}}
|
||||
Componentes úteis para histórias mais ricas, documentação mais clara e menos código à medida.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="Feito abertamente" url="/pt-pt/users/" >}}
|
||||
Explore sites reais, contribuições da comunidade e padrões que resistem em produção.
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="Feito para agentes de IA" url="/pt-pt/docs/installation/#skill-para-agentes" label="Instalar a skill" >}}
|
||||
O Blowfish inclui uma skill que ensina o Claude Code e outros agentes de programação a instalar, configurar e trabalhar com o tema.
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**O Blowfish v3.5 está disponível.** Crie um novo site com `npx blowfish-tools new <site>` ou [atualize um site existente]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}}).
|
||||
|
||||
**Trabalha com um agente de programação?** No Claude Code, execute `/plugin marketplace add nunocoracao/blowfish` e depois `/plugin install blowfish@blowfish`. Para outro agente que leia skills do projeto, copie a [pasta da skill `blowfish`](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish) para `.claude/skills/blowfish/` no seu site.
|
||||
{{< /alert >}}
|
||||
@@ -1,29 +1,44 @@
|
||||
---
|
||||
title: "欢迎来到 Blowfish! :tada:"
|
||||
description: "此页面是使用 Hugo 的 Blowfish 主题搭建的"
|
||||
title: "打造一个独一无二、真正属于你的网站。"
|
||||
description: "一款现代、灵活的 Hugo 主题,适用于博客、文档、作品集等。"
|
||||
lastmod: 2026-08-30
|
||||
heroLead: "Blowfish 提供富有表现力的布局、贴心的默认配置和实用的内容组件,让你专注于想要表达的内容。"
|
||||
heroButtons:
|
||||
- label: "快速开始"
|
||||
url: "/zh-cn/docs/installation/"
|
||||
- label: "浏览文档"
|
||||
url: "/zh-cn/docs/"
|
||||
style: "outline"
|
||||
- label: "在 GitHub 上加星标"
|
||||
url: "https://github.com/nunocoracao/blowfish"
|
||||
style: "outline"
|
||||
github: "nunocoracao/blowfish"
|
||||
heroImage: "images/v3/welcome.png"
|
||||
---
|
||||
|
||||
{{< stats >}}
|
||||
{{< stat value="5" label="首页布局" >}}选择最适合你网站的结构。{{< /stat >}}
|
||||
{{< stat value="40+" label="短代码" >}}无需维护一次性模板,即可创作富有表现力的内容。{{< /stat >}}
|
||||
{{< stat value="100%" label="内容完全属于你" >}}可移植的 Markdown、熟悉的 Hugo 配置、没有锁定。{{< /stat >}}
|
||||
{{< /stats >}}
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center pe-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
</span>
|
||||
<span class="flex items-center justify-between grow dark:text-neutral-300">
|
||||
<span class="prose dark:prose-invert"> 这是 <code id="layout">background</code> 的样式示例。</span>
|
||||
<button
|
||||
id="switch-layout-button"
|
||||
class="px-4 mx-[3px] !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
|
||||
>
|
||||
切换 layout ↻
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Blowfish-tools demo" >}}
|
||||
{{< feature-grid >}}
|
||||
{{< feature icon="list-check" title="打造你的风格" url="/zh-cn/docs/configuration/" >}}
|
||||
布局、配色、排版与内容控制浑然一体。
|
||||
{{< /feature >}}
|
||||
{{< feature icon="code" title="更快地创作" url="/zh-cn/docs/shortcodes/" label="浏览短代码" >}}
|
||||
实用组件,让故事更丰富、文档更清晰、无需自制胶水代码。
|
||||
{{< /feature >}}
|
||||
{{< feature icon="heart" title="开放共建" url="/zh-cn/users/" >}}
|
||||
探索真实网站、社区贡献以及经受住生产考验的模式。
|
||||
{{< /feature >}}
|
||||
{{< feature icon="wand-magic-sparkles" title="为 AI 智能体而生" url="/zh-cn/docs/installation/#智能体技能" label="安装技能" >}}
|
||||
Blowfish 附带一个智能体技能,教 Claude Code 等编程智能体安装、配置和使用本主题。
|
||||
{{< /feature >}}
|
||||
{{< /feature-grid >}}
|
||||
|
||||
{{< alert >}}
|
||||
**Blowfish v3.5 已发布。** 使用 `npx blowfish-tools new <site>` 创建新网站,或[升级现有网站]({{< ref "guides/202608-upgrade-to-blowfish-v3" >}})。
|
||||
|
||||
**正在使用编程智能体?** 在 Claude Code 中运行 `/plugin marketplace add nunocoracao/blowfish`,然后运行 `/plugin install blowfish@blowfish`。对于会读取项目技能的其他智能体,将 [`blowfish` 技能文件夹](https://github.com/nunocoracao/blowfish/tree/main/.claude/skills/blowfish)复制到网站中的 `.claude/skills/blowfish/`。
|
||||
{{< /alert >}}
|
||||