diff --git a/assets/css/schemes/github.css b/assets/css/schemes/github.css new file mode 100644 index 00000000..c1c5975f --- /dev/null +++ b/assets/css/schemes/github.css @@ -0,0 +1,35 @@ +:root { + --color-neutral: 255, 255, 255; + --color-neutral-50: 248, 250, 252; + --color-neutral-100: 241, 245, 249; + --color-neutral-200: 226, 232, 240; + --color-neutral-300: 203, 213, 225; + --color-neutral-400: 148, 163, 184; + --color-neutral-500: 100, 116, 139; + --color-neutral-600: 71, 85, 105; + --color-neutral-700: 51, 57, 65; + --color-neutral-800: 20, 25, 31; + --color-neutral-900: 15, 23, 42; + + --color-primary-50: 226, 242, 255; + --color-primary-100: 186, 221, 255; + --color-primary-200: 141, 201, 255; + --color-primary-300: 91, 179, 255; + --color-primary-400: 50, 162, 255; + --color-primary-500: 0, 146, 255; + --color-primary-600: 23, 131, 255; + --color-primary-700: 31, 113, 235; + --color-primary-800: 35, 95, 216; + --color-primary-900: 38, 61, 185; + + --color-secondary-50: 255, 236, 241; + --color-secondary-100: 255, 208, 218; + --color-secondary-200: 253, 157, 166; + --color-secondary-300: 249, 117, 130; + --color-secondary-400: 255, 79, 98; + --color-secondary-500: 255, 57, 73; + --color-secondary-600: 255, 48, 72; + --color-secondary-700: 237, 36, 65; + --color-secondary-800: 224, 27, 58; + --color-secondary-900: 209, 4, 45; +} diff --git a/exampleSite/content/docs/getting-started/index.it.md b/exampleSite/content/docs/getting-started/index.it.md index c876893b..98ebffb7 100644 --- a/exampleSite/content/docs/getting-started/index.it.md +++ b/exampleSite/content/docs/getting-started/index.it.md @@ -21,7 +21,6 @@ npx blowfish-tools ``` {{< /alert >}} - I file di configurazione forniti con Blowfish contengono tutte le possibili impostazioni riconosciute dal tema. Per impostazione predefinita, molti di questi sono commentati ma puoi semplicemente decommentarli per attivare o modificare una funzionalità specifica. ## Configurazione di base @@ -60,63 +59,82 @@ links = [ { twitter = "https://twitter.com/username" } ] ``` + La configurazione `[params.author]` determina il modo in cui le informazioni sull'autore vengono visualizzate sul sito web. L'immagine deve essere posizionata nella cartella `assets/`. I link verranno visualizzati nell'ordine in cui sono elencati. Se hai bisogno di ulteriori dettagli, ulteriori informazioni su ciascuna di queste opzioni di configurazione sono trattate nella sezione [Configurazione]({{< ref "configuration" >}}). ## Schemi di colori -Blowfish viene fornito con una serie di schemi di colori già pronti. Per cambiare lo schema, è sufficiente impostare il parametro del tema `colorScheme`. Le opzioni valide sono `blowfish` (default), `avocado`, `fire`, `ocean`, `forest`, `princess`, `neon`, `bloody`, `terminal`, `marvel`, `noir`, `autumn`, `congo`, and`slate`. +Blowfish viene fornito con una serie di schemi di colori già pronti. Per cambiare lo schema, è sufficiente impostare il parametro del tema `colorScheme`. Le opzioni valide sono `blowfish` (default), `avocado`, `fire`, `ocean`, `forest`, `princess`, `neon`, `bloody`, `terminal`, `marvel`, `noir`, `autumn`, `congo`, `slate` and `github`. ```toml # config/_default/params.toml colorScheme = "blowfish" ``` + Blowfish definisce una palette di tre colori che viene utilizzata in tutto il tema. Ogni colore principale contiene dieci sfumature basate sui colori inclusi in [Tailwind](https://tailwindcss.com/docs/customizing-colors#color-palette-reference). I tre colori principali sono utilizzati per l'intestazione, il piè di pagina e i colori d'accento. Ecco i colori per ogni schema: -#### Blowfish (default) +### Blowfish (default) + {{< swatches "#64748b" "#3b82f6" "#06b6d4" >}} -#### Avocado +### Avocado + {{< swatches "#78716c" "#84cc16" "#10b981" >}} -#### Fire +### Fire + {{< swatches "#78716c" "#f97316" "#f43f5e" >}} -#### Ocean +### Ocean + {{< swatches "#64748b" "#3b82f6" "#06b6d4" >}} -#### Forest +### Forest + {{< swatches "#658c86" "#3bf5df" "#06d45c" >}} -#### Princess +### Princess + {{< swatches "#8c658c" "#f53bf2" "#7706d4" >}} -#### Neon +### Neon + {{< swatches "#8338ec" "#ff006e" "#3a86ff" >}} -#### Bloody +### Bloody + {{< swatches "#d90429" "#8d99ae" "#457b9d" >}} -#### Terminal +### Terminal + {{< swatches "#004b23" "#38b000" "#1a759f" >}} -#### Marvel +### Marvel + {{< swatches "#2541b2" "#d81159" "#ffbc42" >}} -#### Noir +### Noir + {{< swatches "#5c6b73" "#9db4c0" "#00a5cf" >}} -#### Autumn +### Autumn + {{< swatches "#0a9396" "#ee9b00" "#bb3e03" >}} -#### Congo +### Congo + {{< swatches "#71717a" "#8b5cf6" "#d946ef" >}} -#### Slate +### Slate + {{< swatches "#6B7280" "#64748b" "#6B7280" >}} +### Github + +{{< swatches "#64748b" "#0092ff" "#f54728" >}} Sebbene questi siano gli schemi predefiniti, è possibile crearne di propri. Per maggiori informazioni, consultare la sezione [Personalizzazione avanzata]({{< ref "advanced-customisation#colour-schemes" >}}). @@ -145,8 +163,8 @@ Ecco una rapida panoramica di un progetto base di Blowfish. Tutti i contenuti so └── themes └── blowfish ``` -È importante avere una conoscenza approfondita di come Hugo si aspetta che il contenuto sia organizzato, poiché il tema è progettato per sfruttare appieno i pacchetti di pagine di Hugo. Si consiglia di leggere i [documentazione ufficiale di Hugo](https://gohugo.io/content-management/organization/) per maggiori informazioni. +È importante avere una conoscenza approfondita di come Hugo si aspetta che il contenuto sia organizzato, poiché il tema è progettato per sfruttare appieno i pacchetti di pagine di Hugo. Si consiglia di leggere i [documentazione ufficiale di Hugo](https://gohugo.io/content-management/organization/) per maggiori informazioni. Blowfish è flessibile anche per quanto riguarda le tassonomie. Alcuni preferiscono usare _tags_ e _categories_ per raggruppare i loro contenuti, altri preferiscono usare _topics_. @@ -168,7 +186,6 @@ Blowfish dispone di due menu che possono essere personalizzati per adattarsi al Entrambi i menu sono configurati nel file `menus.en.toml`. Simile al file di configurazione delle lingue, se desideri utilizzare un'altra lingua, rinomina questo file e sostituisci `en` con il codice della lingua che si vuole utilizzare. - ```toml # config/_default/menus.toml @@ -213,7 +230,6 @@ Entrambi i menu sono completamente opzionali e possono essere commentati se non Il tema supporta anche i menu nidificati. Per usarli devi solo definire una voce genitore in `menu.toml` e i suoi sottomenu utilizzando il parametro `parent` per fare riferimento al genitore. Tutte le proprietà possono essere utilizzate per i sottomenu. `pageRef` e `url` possono essere utilizzati anche nella voce principale. I menu nidificati sono disponibili solo nel menu principale e non nel footer. - ```toml # config/_default/menus.toml diff --git a/exampleSite/content/docs/getting-started/index.ja.md b/exampleSite/content/docs/getting-started/index.ja.md index 632a5bc9..57578a0a 100644 --- a/exampleSite/content/docs/getting-started/index.ja.md +++ b/exampleSite/content/docs/getting-started/index.ja.md @@ -63,7 +63,7 @@ links = [ ## カラースキーム -Blowfish には、すぐに使用できる多くのカラースキームが付属しています。スキームを変更するには、`colorScheme` テーマパラメータを設定するだけです。有効なオプションは、`blowfish` (デフォルト)、`avocado`、`fire`、`ocean`、`forest`、`princess`、`neon`、`bloody`、`terminal`、`marvel`、`noir`、`autumn`、`congo`、`slate` です。 +Blowfish には、すぐに使用できる多くのカラースキームが付属しています。スキームを変更するには、`colorScheme` テーマパラメータを設定するだけです。有効なオプションは、`blowfish` (デフォルト)、`avocado`、`fire`、`ocean`、`forest`、`princess`、`neon`、`bloody`、`terminal`、`marvel`、`noir`、`autumn`、`congo`、`slate`、`github` です。 ```toml # config/_default/params.toml @@ -73,48 +73,66 @@ colorScheme = "blowfish" Blowfish は、テーマ全体で使用される3色のパレットを定義しています。各メインカラーには、[Tailwind](https://tailwindcss.com/docs/customizing-colors#color-palette-reference) に含まれる色に基づいた10の色合いが含まれています。3つのメインカラーは、ヘッダー、フッター、およびアクセントカラーに使用されます。各スキームの色は次のとおりです。 -#### Blowfish (デフォルト) +### Blowfish (デフォルト) + {{< swatches "#64748b" "#3b82f6" "#06b6d4" >}} -#### Avocado +### Avocado + {{< swatches "#78716c" "#84cc16" "#10b981" >}} -#### Fire +### Fire + {{< swatches "#78716c" "#f97316" "#f43f5e" >}} -#### Ocean +### Ocean + {{< swatches "#64748b" "#3b82f6" "#06b6d4" >}} -#### Forest +### Forest + {{< swatches "#658c86" "#3bf5df" "#06d45c" >}} -#### Princess +### Princess + {{< swatches "#8c658c" "#f53bf2" "#7706d4" >}} -#### Neon +### Neon + {{< swatches "#8338ec" "#ff006e" "#3a86ff" >}} -#### Bloody +### Bloody + {{< swatches "#d90429" "#8d99ae" "#457b9d" >}} -#### Terminal +### Terminal + {{< swatches "#004b23" "#38b000" "#1a759f" >}} -#### Marvel +### Marvel + {{< swatches "#2541b2" "#d81159" "#ffbc42" >}} -#### Noir +### Noir + {{< swatches "#5c6b73" "#9db4c0" "#00a5cf" >}} -#### Autumn +### Autumn + {{< swatches "#0a9396" "#ee9b00" "#bb3e03" >}} -#### Congo +### Congo + {{< swatches "#71717a" "#8b5cf6" "#d946ef" >}} -#### Slate +### Slate + {{< swatches "#6B7280" "#64748b" "#6B7280" >}} +### Github + +{{< swatches "#64748b" "#0092ff" "#f54728" >}} + これらはデフォルトのスキームですが、独自のスキームを作成することもできます。詳細については、[高度なカスタマイズ]({{< ref "advanced-customisation#colour-schemes" >}})セクションを参照してください。 ## コンテンツの整理 diff --git a/exampleSite/content/docs/getting-started/index.md b/exampleSite/content/docs/getting-started/index.md index 98aed5d1..89cb63cc 100644 --- a/exampleSite/content/docs/getting-started/index.md +++ b/exampleSite/content/docs/getting-started/index.md @@ -63,7 +63,7 @@ If you need extra detail, further information about each of these configuration ## Colour schemes -Blowfish ships with a number of colour schemes out of the box. To change the scheme, simply set the `colorScheme` theme parameter. Valid options are `blowfish` (default), `avocado`, `fire`, `ocean`, `forest`, `princess`, `neon`, `bloody`, `terminal`, `marvel`, `noir`, `autumn`, `congo`, and`slate`. +Blowfish ships with a number of colour schemes out of the box. To change the scheme, simply set the `colorScheme` theme parameter. Valid options are `blowfish` (default), `avocado`, `fire`, `ocean`, `forest`, `princess`, `neon`, `bloody`, `terminal`, `marvel`, `noir`, `autumn`, `congo`, `slate` and `github`. ```toml # config/_default/params.toml @@ -129,6 +129,10 @@ Blowfish defines a three-colour palette that is used throughout the theme. Each {{< swatches "#6B7280" "#64748b" "#6B7280" >}} +### Github + +{{< swatches "#64748b" "#0092ff" "#f54728" >}} + Although these are the default schemes, you can also create your own. Refer to the [Advanced Customisation]({{< ref "advanced-customisation#colour-schemes" >}}) section for details. ## Organising content diff --git a/exampleSite/content/docs/getting-started/index.zh-cn.md b/exampleSite/content/docs/getting-started/index.zh-cn.md index 2f5047b1..9d4df149 100644 --- a/exampleSite/content/docs/getting-started/index.zh-cn.md +++ b/exampleSite/content/docs/getting-started/index.zh-cn.md @@ -21,7 +21,6 @@ npx blowfish-tools ``` {{< /alert >}} - Blowfish 中的配置文件中包含了主题需要的所有可能的设置选项。但默认情况下大多数设置都是被注释的,你只需要取消注释就可以激活或者修改设定选项。 ## 基础设置 @@ -64,7 +63,7 @@ links = [ ## 颜色方案 -Blowfish 主题中包含了数个颜色方案,这些方案可以快速使用。如果需要修改方案,只需要简单的设置 `colorScheme` 参数即可。`colorScheme` 可选的值有`blowfish` (默认)、`avocado`、`fire`、`ocean`、`forest`、`princess`、`neon`、`bloody`、`terminal`、`marvel`、`noir`、`autumn`、`congo`和`slate`。 +Blowfish 主题中包含了数个颜色方案,这些方案可以快速使用。如果需要修改方案,只需要简单的设置 `colorScheme` 参数即可。`colorScheme` 可选的值有`blowfish` (默认)、`avocado`、`fire`、`ocean`、`forest`、`princess`、`neon`、`bloody`、`terminal`、`marvel`、`noir`、`autumn`、`congo` 、 `slate` 和 `github`。 ```toml # config/_default/params.toml @@ -74,48 +73,66 @@ colorScheme = "blowfish" Blowfish 定义了一种由三种主色调构成的配色方案,每种主色调包含了10种子色调,10个色调是借鉴 [Tailwind](https://tailwindcss.com/docs/customizing-colors#color-palette-reference) 中的定义。Blowfish 中定义了多个预置的三色主题,以便在整个主题中使用。 -#### Blowfish(默认) +### Blowfish(默认) + {{< swatches "#64748b" "#3b82f6" "#06b6d4" >}} -#### Avocado +### Avocado + {{< swatches "#78716c" "#84cc16" "#10b981" >}} -#### Fire +### Fire + {{< swatches "#78716c" "#f97316" "#f43f5e" >}} -#### Ocean +### Ocean + {{< swatches "#64748b" "#3b82f6" "#06b6d4" >}} -#### Forest +### Forest + {{< swatches "#658c86" "#3bf5df" "#06d45c" >}} -#### Princess +### Princess + {{< swatches "#8c658c" "#f53bf2" "#7706d4" >}} -#### Neon +### Neon + {{< swatches "#8338ec" "#ff006e" "#3a86ff" >}} -#### Bloody +### Bloody + {{< swatches "#d90429" "#8d99ae" "#457b9d" >}} -#### Terminal +### Terminal + {{< swatches "#004b23" "#38b000" "#1a759f" >}} -#### Marvel +### Marvel + {{< swatches "#2541b2" "#d81159" "#ffbc42" >}} -#### Noir +### Noir + {{< swatches "#5c6b73" "#9db4c0" "#00a5cf" >}} -#### Autumn +### Autumn + {{< swatches "#0a9396" "#ee9b00" "#bb3e03" >}} -#### Congo +### Congo + {{< swatches "#71717a" "#8b5cf6" "#d946ef" >}} -#### Slate +### Slate + {{< swatches "#6B7280" "#64748b" "#6B7280" >}} +### Github + +{{< swatches "#64748b" "#0092ff" "#f54728" >}} + 这些是内置的配色方案,你也可以去自定义这一部分,请参阅 [高级自定义]({{< ref "advanced-customisation#colour-schemes" >}}) 。 ## 整理内容 @@ -269,4 +286,3 @@ Blowfish 还支持在文章和列表中使用背景图。为了使与缩略图 ## 详细配置 上面的步骤介绍了最基本的配置。如果你现在运行 `hugo server`,你将会看到一个空白的 Blowfish 网站。更加详细的内容在[配置]({{< ref "configuration" >}})中介绍。 -