Compare commits

..

56 Commits
dev ... v2.8.2

Author SHA1 Message Date
James Panther 5c8ab32b5b
🔖 Release v2.8.2 2024-04-17 10:41:44 +10:00
James Panther 237aa857e6
🔖 Release v2.8.1 2024-03-09 15:37:17 +11:00
James Panther c89d4ac5b0
🔖 Release v2.8.0 2024-01-22 09:22:34 +11:00
James Panther 110bc3414f
🔖 Release v2.7.6 2023-11-26 15:41:07 +11:00
James Panther ae99b370bb
🔖 Release v2.7.5 2023-11-25 15:25:45 +11:00
James Panther f966f13eb7
🔖 Release v2.7.4 2023-11-05 10:14:25 +11:00
James Panther 414ad4aa44
🔖 Release v2.7.3 2023-10-31 09:51:36 +11:00
James Panther f4697046bb
🔖 Release v2.7.2 2023-10-26 13:57:35 +11:00
James Panther 7f141e7a35
🔖 Release v2.7.1 2023-10-24 11:31:30 +11:00
James Panther edbb9c0b74
🔖 Release v2.7.0 2023-10-23 10:23:18 +11:00
James Panther c114943009
🔖 Release v2.6.1 2023-06-04 10:38:20 +10:00
James Panther 3dd7fe455d
🔖 Release v2.6.0 2023-05-25 14:37:49 +10:00
James Panther c3cf869ab2
🔖 Release v2.5.4 2023-03-20 12:10:41 +11:00
James Panther 7c77e75bb3
🔖 Release v2.5.3 2023-03-05 09:20:03 +11:00
James Panther a178678bc7
🔖 Release v2.5.2 2023-01-24 08:50:21 +11:00
James Panther 73353fa74f
🔖 Release v2.5.1 2023-01-20 10:20:19 +11:00
James Panther 5a22faacac
🔖 Release v2.5.0 2023-01-17 13:00:14 +11:00
James Panther 572885c526
🔖 Release v2.4.2 2022-11-22 11:06:34 +11:00
James Panther 6c14222b57
🔖 Release v2.4.1 2022-11-14 15:00:48 +11:00
James Panther b168c4d39e
🔖 Release v2.4.0 2022-11-10 13:13:02 +11:00
James Panther a74a40190a
🔖 Release v2.3.1 2022-07-30 16:31:03 +10:00
James Panther 38996db9b8
🔖 Release v2.3.0 2022-06-27 13:18:20 +10:00
James Panther a754630551
🔖 Release v2.2.3 2022-06-22 16:28:12 +10:00
James Panther 782850dbd9
🔖 Release v2.2.2 2022-06-16 11:27:22 +10:00
James Panther 1416c7253e
🔖 Release v2.2.1 2022-05-25 14:26:21 +10:00
James Panther 9569c24d6b
🔖 Release v2.2.0 2022-05-09 09:01:46 +10:00
James Panther fb32b72988
🔖 Release v2.1.3 2022-04-12 09:41:41 +10:00
James Panther 799ac6ee2e
🔖 Release v2.1.2 2022-04-08 10:43:13 +10:00
James Panther 265e0eee15
🔖 Release v2.1.1 2022-04-03 15:32:36 +10:00
James Panther 56fc286336
🔖 Release v2.1.0 2022-03-14 10:46:37 +11:00
James Panther 480492a976
🔖 Release v2.0.5 2022-02-20 14:42:07 +11:00
James Panther 3930c5bc4f
🔖 Release v2.0.4 2022-02-09 10:22:10 +11:00
James Panther 56ec1bf578
🔖 Release v2.0.3 2022-02-07 09:12:16 +11:00
James Panther 5380e024ec
🔖 Release v2.0.2 2022-02-05 19:42:27 +11:00
James Panther b13dea3b68
🔖 Release v2.0.1 2022-02-03 16:03:38 +11:00
James Panther 2b330b2abd
🔖 Release v2.0.0 2022-02-03 11:51:31 +11:00
James Panther d4bbc01d83
🔖 Release v1.6.4 2022-01-24 11:53:30 +11:00
James Panther c49a1b18d6
🔖 Release v1.6.3 2022-01-19 13:44:22 +11:00
James Panther 47d6183396
🔖 Release v1.6.2 2022-01-07 14:53:14 +11:00
James Panther 72b49172f5
🔖 Release v1.6.1 2021-12-31 09:09:48 +11:00
James Panther 13aad07d91
🔖 Release v1.6.0 2021-12-21 13:27:13 +11:00
James Panther 3b2075419c
🔖 Release v1.5.3 2021-11-18 09:49:18 +11:00
James Panther bd24897a01
🔖 Release v1.5.2 2021-11-10 12:56:42 +11:00
James Panther 4f38df9c23
🔖 Release v1.5.1 2021-11-04 14:22:24 +11:00
James Panther 42d42c7831
🔖 Release v1.5.0 2021-11-04 11:06:30 +11:00
James Panther 8267f8aec6
🔖 Release v1.4.0 2021-10-20 14:56:49 +11:00
James Panther 34d10e04a5
🔖 Release v1.3.0 2021-09-29 10:56:25 +10:00
James Panther 9087f7d9eb
🔖 Release v1.2.1 2021-08-26 10:18:40 +10:00
James Panther 095459ff3b
🔖 Release v1.2.0 2021-08-22 17:24:19 +10:00
James Panther d31e593574
🔖 Release v1.1.1 2021-08-19 13:01:22 +10:00
James Panther 7b4efa3fff
🔀 Merge branch 'dev' into stable 2021-08-19 12:53:38 +10:00
James Panther 42b17544b4
🔀 Merge branch 'dev' into stable 2021-08-19 12:50:12 +10:00
James Panther e0d4e2cc64
🔀 Merge branch 'dev' into stable 2021-08-18 19:05:53 +10:00
James Panther 668805d3d5
🔖 Release v1.1.0 2021-08-18 18:04:53 +10:00
James Panther d993ca047c
🔀 Merge branch 'dev' into stable 2021-08-16 17:44:03 +10:00
James Panther e004dffcc9
🔀 Merge branch 'dev' into stable 2021-08-16 17:29:26 +10:00
16 changed files with 3 additions and 52 deletions

View File

@ -6,12 +6,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
### Added
- Umami Analytics support ([#832](https://github.com/jpanther/congo/pull/832))
- Theme parameter to set a default HTML theme colour ([#849](https://github.com/jpanther/congo/pull/849))
- New icon for `bluesky` ([#851](https://github.com/jpanther/congo/pull/851))
## [2.8.2] - 2024-04-17
### Added

View File

@ -28,7 +28,7 @@ Congo is designed to be a powerful, lightweight theme for [Hugo](https://gohugo.
- Heading anchors, Tables of Contents, Code copy, Buttons, Badges and more
- HTML and Emoji support in articles 🎉
- SEO friendly with links for sharing to social media
- Fathom Analytics, Plausible Analytics, Umami Analytics and Google Analytics support
- Fathom Analytics and Google Analytics support
- RSS feeds, Favicons and comments support
- Advanced customisation using simple Tailwind colour definitions and styles
- Optimised for performance and accessibility with perfect Lighthouse scores

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M407.8 294.7c-3.3-.4-6.7-.8-10-1.3c3.4 .4 6.7 .9 10 1.3zM288 227.1C261.9 176.4 190.9 81.9 124.9 35.3C61.6-9.4 37.5-1.7 21.6 5.5C3.3 13.8 0 41.9 0 58.4S9.1 194 15 213.9c19.5 65.7 89.1 87.9 153.2 80.7c3.3-.5 6.6-.9 10-1.4c-3.3 .5-6.6 1-10 1.4C74.3 308.6-9.1 342.8 100.3 464.5C220.6 589.1 265.1 437.8 288 361.1c22.9 76.7 49.2 222.5 185.6 103.4c102.4-103.4 28.1-156-65.8-169.9c-3.3-.4-6.7-.8-10-1.3c3.4 .4 6.7 .9 10 1.3c64.1 7.1 133.6-15.1 153.2-80.7C566.9 194 576 75 576 58.4s-3.3-44.7-21.6-52.9c-15.8-7.1-40-14.9-103.2 29.8C385.1 81.9 314.1 176.4 288 227.1z"/></svg>

Before

Width:  |  Height:  |  Size: 786 B

View File

@ -9,8 +9,6 @@ colorScheme = "congo"
defaultAppearance = "light" # valid options: light or dark
autoSwitchAppearance = true
defaultThemeColor = "#FFFFFF"
enableSearch = false
enableCodeCopy = false
enableImageLazyLoading = true
@ -77,10 +75,6 @@ fingerprintAlgorithm = "sha256"
# event = ""
# script = ""
#[umamiAnalytics]
# site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# region = "eu" # can be either "eu" or "us"
[verification]
# google = ""
# bing = ""

View File

@ -71,10 +71,6 @@ fingerprintAlgorithm = "sha256"
[fathomAnalytics]
# site = "ABC12345"
#[umamiAnalytics]
# site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# region = "eu" # Can be either "eu" or "us"
[verification]
# google = ""
# bing = ""

View File

@ -129,7 +129,6 @@ Congoはテーマの機能を制御する多数の設定パラメーターを提
|Name|Default|Description|
|---|---|---|
|`colorScheme`|`"congo"`|使用する配色。有効な値は `congo` (デフォルト), `avocado`, `cherry`, `fire`, `ocean`, `sapphire`, `slate` です。詳しくは [カラースキーム]({{< ref "getting-started#カラースキーム" >}})セクションを参照してください。|
|`defaultThemeColor`|`"#FFFFFF"`|まだ翻訳されていません。|
|`defaultAppearance`|`"light"`|デフォルトのテーマ外観、 `light` または `dark` のいずれか。|
|`autoSwitchAppearance`|`true`|テーマの外観を訪問者のオペレーティングシステムの設定に基づいて自動的に切り替えるかどうか。常に `defaultAppearance` を使うようにするには `false` を設定します。|
|`enableSearch`|`false`|サイト内検索を有効にするかどうか。検索機能を有効にするには `true` を設定します。検索機能は、[サイト設定](#サイト設定)の `outputs.home` が正しく設定されているかどうかに依存することに注意してください。|

View File

@ -129,7 +129,6 @@ Many of the article defaults here can be overridden on a per article basis by sp
|Name|Default|Description|
|---|---|---|
|`colorScheme`|`"congo"`|The theme colour scheme to use. Valid values are `congo` (default), `avocado`, `cherry`, `fire`, `ocean`, `sapphire` and `slate`. Refer to the [Colour Schemes]({{< ref "getting-started#colour-schemes" >}}) section for more details.|
|`defaultThemeColor`|`"#FFFFFF"`|The original value (before any scripts modify it) to use for the `theme-color` meta tag. The meta tag will be changed based on the theme (`light` or `dark`) but it is useful for services that source the original value this tag to display an accent color (e.g. Discord)|
|`defaultAppearance`|`"light"`|The default theme appearance, either `light` or `dark`.|
|`autoSwitchAppearance`|`true`|Whether the theme appearance automatically switches based upon the visitor's operating system preference. Set to `false` to force the site to always use the `defaultAppearance`.|
|`enableSearch`|`false`|Whether site search is enabled. Set to `true` to enable search functionality. Note that the search feature depends on the `outputs.home` setting in the [site configuration](#site-configuration) being set correctly.|
@ -179,8 +178,6 @@ Many of the article defaults here can be overridden on a per article basis by sp
|`plausibleAnalytics.domain`|_Not set_|Enter the domain of the website you want to track. Refer to the [Analytics docs]({{< ref "partials#analytics" >}}) for more details.|
|`plausibleAnalytics.event`|_Not set_|Plausible api event proxied URL. Refer to the [Analytics docs]({{< ref "partials#analytics" >}}) for more details.|
|`plausibleAnalytics.script`|_Not set_|Plausible analysis script proxied URL. Refer to the [Analytics docs]({{< ref "partials#analytics" >}}) for more details.|
|`umamiAnalytics.site`|_Not set_|The tracking code generated by Umami Analytics for the website. Refer to the [Analytics docs]({{< ref "partials#analytics" >}}) for more details.|
|`umamiAnalytics.region`|`eu`|Select the Umami Analytics server region to connect to. The value is a string that can be either `eu` or `us`.|
|`verification.google`|_Not set_|The site verification string provided by Google to be included in the site metadata.|
|`verification.bing`|_Not set_|The site verification string provided by Bing to be included in the site metadata.|
|`verification.pinterest`|_Not set_|The site verification string provided by Pinterest to be included in the site metadata.|

View File

@ -125,7 +125,6 @@ Congo 提供了大量的配置参数,用于控制主题的功能。下表概
|名称|默认值|描述|
|---|---|---|
|`colorScheme`|`"congo"`|要使用的主题颜色方案。有效值为 `congo`(默认)、`avocado`、`cherry`、`fire`、`ocean`、`sapphire` 和 `slate`。有关详细信息,请参阅[颜色方案]({{< ref "getting-started#颜色方案" >}})部分。|
|`defaultThemeColor`|`"#FFFFFF`|`theme-color` meta 标签的原值在脚本修改它之前。meta 标签会根据所选主题而变化(`light` 或 `dark`),但是一些软件(例如 Discord会使用该标签的原值来显示主题色。|
|`defaultAppearance`|`"light"`|默认的主题外观,可以是 `light``dark`。|
|`autoSwitchAppearance`|`true`|主题外观是否根据访问者的操作系统首选项自动切换。设置为 `false` 以始终使用 `defaultAppearance`。|
|`enableSearch`|`false`|是否启用站内搜索。设置为 `true` 以启用搜索功能。请注意,搜索功能取决于 [站点配置](#site-configuration) 中的 `outputs.home` 设置正确。|

View File

@ -40,18 +40,6 @@ To enable Plausible analytics support, simply provide the domain of the website
script = "https://plausible.yoursite.com/js/script.js"
```
### Umami Analytics
To enable support for Umami Analytics, insert the *tracking code token* provided by Umami into the `site` parameter to monitor the site. You can also insert a `region` parameter to indicate the region of Umami Analytics servers that you want to connect to. The values can be `eu` or `us`. Refer to [getting started section at umami.is](https://umami.is/docs/getting-started) for more details.
```toml
# config/_default/params.toml
[umamiAnalytics]
site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
region = "eu" # can be either "eu" or "us"
```
### Google Analytics
Google Analytics support is provided through the internal Hugo partial. Simply provide the `googleAnalytics` key in the `config/_default/config.toml` file and the script will be added automatically.

View File

@ -21,7 +21,6 @@ Die vollständige Liste der integrierten Icons und ihre entsprechenden Namen fin
| apple | {{< icon apple >}} |
| bars | {{< icon bars >}} |
| blogger | {{< icon blogger >}} |
| bluesky | {{< icon bluesky >}} |
| bug | {{< icon bug >}} |
| check | {{< icon check >}} |
| chevron-down | {{< icon chevron-down >}} |

View File

@ -21,7 +21,6 @@ La lista completa de íconos incorporados y sus nombres correspondientes se pued
| apple | {{< icon apple >}} |
| bars | {{< icon bars >}} |
| blogger | {{< icon blogger >}} |
| bluesky | {{< icon bluesky >}} |
| bug | {{< icon bug >}} |
| check | {{< icon check >}} |
| chevron-down | {{< icon chevron-down >}} |

View File

@ -21,7 +21,6 @@ Congo は[FontAwesome 6](https://fontawesome.com/icons)のアイコンをサポ
| apple | {{< icon apple >}} |
| bars | {{< icon bars >}} |
| blogger | {{< icon blogger >}} |
| bluesky | {{< icon bluesky >}} |
| bug | {{< icon bug >}} |
| check | {{< icon check >}} |
| chevron-down | {{< icon chevron-down >}} |

View File

@ -21,7 +21,6 @@ The full list of built-in icons and their corresponding names can referenced bel
| apple | {{< icon apple >}} |
| bars | {{< icon bars >}} |
| blogger | {{< icon blogger >}} |
| bluesky | {{< icon bluesky >}} |
| bug | {{< icon bug >}} |
| check | {{< icon check >}} |
| chevron-down | {{< icon chevron-down >}} |

View File

@ -21,7 +21,6 @@ Congo内置了对多个[FontAwesome 6](https://fontawesome.com/icons)图标的
| apple | {{< icon apple >}} |
| bars | {{< icon bars >}} |
| blogger | {{< icon blogger >}} |
| bluesky | {{< icon bluesky >}} |
| bug | {{< icon bug >}} |
| check | {{< icon check >}} |
| chevron-down | {{< icon chevron-down >}} |

View File

@ -10,15 +10,5 @@
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
></script>
{{ end }}
{{ with site.Params.umamiAnalytics }}
{{- $region := "eu" }}
{{- if isset . "region" }}
{{- $region = .region }}
{{- end }}
<script defer
src="https://{{ $region }}.umami.is/script.js"
data-website-id="{{ .site }}">
</script>
{{ end }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
{{ end }}

View File

@ -1,7 +1,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="{{ .Site.Params.defaultThemeColor | default "#ffffff" }}" />
<meta name="theme-color" content="rgb(255,255,255)" />
{{/* Title */}}
{{ if .IsHome -}}
<title>{{ .Site.Title | emojify }}</title>