Merge branch 'dev' into patch-1

This commit is contained in:
James Panther
2025-02-24 11:26:42 +11:00
committed by GitHub
37 changed files with 753 additions and 247 deletions
+12
View File
@@ -13,3 +13,15 @@ summaryLength = 0
[outputs]
home = ["HTML", "RSS", "JSON"]
[privacy]
[privacy.vimeo]
enableDNT = true
[privacy.x]
enableDNT = true
[privacy.youTube]
privacyEnhanced = true
[services]
[services.x]
disableInlineCSS = true
@@ -35,7 +35,7 @@ Hugoの標準的な設定変数はテーマ全体を通して尊重されます
|`baseURL`|_Not set_|ウェブサイトのルートへのURL。|
|`defaultContentLanguage`|`"en"`|この値はテーマコンポーネントとコンテンツのデフォルト言語を決定します。サポートされる言語コードについては、下記の[言語と国際化](#言語と国際化)セクションを参照してください。|
|`enableRobotsTXT`|`true`|有効にすると、サイトルートに `robots.txt` ファイルが作成され、検索エンジンがサイト全体をクロールできるようになります。あらかじめ用意されている `robots.txt` を利用したい場合は、`false` に設定して `static` ディレクトリにファイルを置いてください。完全にコントロールしたい場合は、[カスタムレイアウト]({{< ref "content-examples" >}})を指定してこのファイルを生成することができます。|
|`paginate`|`10`|記事一覧の各ページに掲載される記事の数。|
|`pagination.pagerSize`|`10`|記事一覧の各ページに掲載される記事の数。|
|`summaryLength`|`0`|記事の要約が[フロントマター]({{< ref "front-matter" >}})で提供されていない場合に、記事の要約を生成するために使われる単語の数。デフォルト値 `0` は最初の文章を使用します。この値は要約が非表示の場合には影響しません。|
|`outputs.home`|`["HTML", "RSS", "JSON"]`|生成される出力フォーマット。Congoでは、すべてのテーマコンポーネントが正しく動作するために、HTML、RSS、JSONが必要です。|
|`permalinks`|_Not set_|パーマリンクの設定は[Hugo docs](https://gohugo.io/content-management/urls/#permalinks)を参照してください。|
+16 -4
View File
@@ -25,8 +25,8 @@ By default, the alert is presented with an exclaimation triangle icon. To change
**Warning!** This action is destructive!
{{</* /alert */>}}
{{</* alert "twitter" */>}}
Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
{{</* alert "x-twitter" */>}}
Don't forget to [follow me](https://x.com/jpanther) on X.
{{</* /alert */>}}
```
@@ -34,8 +34,8 @@ Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
**Warning!** This action is destructive!
{{< /alert >}}
&nbsp;
{{< alert "twitter" >}}
Don't forget to [follow me](https://twitter.com/jpanther) on Twitter.
{{< alert "x-twitter" >}}
Don't forget to [follow me](https://x.com/jpanther) on X.
{{< /alert >}}
## Badge
@@ -155,6 +155,18 @@ Congo also supports automatic conversion of images included using standard Markd
{{< figure src="abstract.jpg" alt="Abstract purple artwork" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}}
## Gist
The `gist` shortcode can be used to embed a GitHub Gist. It requires two unnamed parameters: the username and ID of the Gist.
**Example:**
```md
{{</* jpanther 26292111fe1eb8e31c60f6dbfef9df28 */>}}
```
{{< gist jpanther 26292111fe1eb8e31c60f6dbfef9df28 >}}
## Icon
`icon` outputs an SVG icon and takes the icon name as its only parameter. The icon is scaled to match the current text size.
@@ -125,9 +125,11 @@ config.toml`ファイルには、Hugoの基本設定値のみが含まれるよ
defaultContentLanguage = "en"
enableRobotsTXT = true
paginate = 10
summaryLength = 0
[pagination]
pagerSize = 10
[outputs]
home = ["HTML", "RSS", "JSON"]
```
@@ -125,9 +125,11 @@ If you're using a language other than English, provide a `defaultContentLanguage
defaultContentLanguage = "en"
enableRobotsTXT = true
paginate = 10
summaryLength = 0
[pagination]
pagerSize = 10
[outputs]
home = ["HTML", "RSS", "JSON"]
```
@@ -46,6 +46,7 @@ Die vollständige Liste der integrierten Icons und ihre entsprechenden Namen fin
| instagram | {{< icon instagram >}} |
| keybase | {{< icon keybase >}} |
| kickstarter | {{< icon kickstarter >}} |
| kofi | {{< icon kofi >}} |
| lastfm | {{< icon lastfm >}} |
| lightbulb | {{< icon lightbulb >}} |
| line | {{< icon line >}} |
@@ -46,6 +46,7 @@ La lista completa de íconos incorporados y sus nombres correspondientes se pued
| instagram | {{< icon instagram >}} |
| keybase | {{< icon keybase >}} |
| kickstarter | {{< icon kickstarter >}} |
| kofi | {{< icon kofi >}} |
| lastfm | {{< icon lastfm >}} |
| lightbulb | {{< icon lightbulb >}} |
| line | {{< icon line >}} |
@@ -46,6 +46,7 @@ Congo は[FontAwesome 6](https://fontawesome.com/icons)のアイコンをサポ
| instagram | {{< icon instagram >}} |
| keybase | {{< icon keybase >}} |
| kickstarter | {{< icon kickstarter >}} |
| kofi | {{< icon kofi >}} |
| lastfm | {{< icon lastfm >}} |
| lightbulb | {{< icon lightbulb >}} |
| line | {{< icon line >}} |
@@ -46,6 +46,7 @@ The full list of built-in icons and their corresponding names can referenced bel
| instagram | {{< icon instagram >}} |
| keybase | {{< icon keybase >}} |
| kickstarter | {{< icon kickstarter >}} |
| kofi | {{< icon kofi >}} |
| lastfm | {{< icon lastfm >}} |
| lightbulb | {{< icon lightbulb >}} |
| line | {{< icon line >}} |
@@ -16,20 +16,6 @@ Hier ist ein Beispiel des mitgelieferten `youtube`-Shortcodes.
{{< youtube ZJthWmvUzzc >}}
## Twitter
Dieses Beispiel verwendet den Shortcode `twitter_simple`, um einen Tweet anzuzeigen. Er benötigt zwei benannte Parameter `user` und `id`.
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
Alternativ kann der Shortcode `tweet` verwendet werden, um eine vollständig formatierte Twitter-Kachel einzubetten.
## Gist
Der Shortcode `gist` kann verwendet werden, um einen Gist von GitHub einzubetten. Er erfordert zwei unbenannte Parameter: den Benutzernamen und die ID des Gist.
{{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}}
## Vimeo
Der Shortcode `vimeo_simple` bettet ein Video von Vimeo ein.
@@ -16,20 +16,6 @@ A continuación, se muestra un ejemplo que utiliza el shortcut integrado `youtub
{{< youtube ZJthWmvUzzc >}}
## Twitter
Este ejemplo usa el shortcode `twitter_simple` para generar un Tweet. Requiere dos parámetros por nombre: `usuario` e `id`.
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
Alternativamente, el shortcut `tweet` se puede usar para incrustar una tarjeta completa de Twitter.
## Gist
El shortcode `gist` se puede usar para incrustar un GitHub Gist. Requiere dos parámetros por posición: el nombre de usuario y el ID del Gist.
{{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}}
## Vimeo
El shortcode `vimeo_simple` insertará un video de Vimeo.
@@ -16,20 +16,6 @@ Hugoには、リッチコンテンツのためのいくつかの[組み込みシ
{{< youtube ZJthWmvUzzc >}}
## Twitter
この例では `twitter_simple` ショートコードを使っています。 `user``id` の2つの名前付きパラメーターが必要です。
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
`tweet` ショートコードを使えば、完全にマークアップされたTwitterカードを埋め込むこともできます。
## Gist
`gist` ショートコードを使うと、GitHubのGistを埋め込むことができます。ユーザー名とGistのIDというパラメーターが必要です。
{{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}}
## Vimeo
`vimeo_simple` ショートコードでVimeoの動画を埋め込むことができます。
@@ -12,26 +12,24 @@ Hugo ships with several [built-in shortcodes](https://gohugo.io/content-manageme
## YouTube
Below is an example using the built-in `youtube` shortcode.
Below is an example using the built-in `youtube` shortcode. It requires only the video ID.
{{< youtube ZJthWmvUzzc >}}
## Twitter
## X (formerly Twitter)
This example uses the `twitter_simple` shortcode to output a Tweet. It requires two named parameters `user` and `id`.
This example uses the `x` shortcode to output a Tweet. It requires two named parameters `user` and `id`.
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
{{< x user="DesignReviewed" id="1085870671291310081" >}}
Alternatively, the `tweet` shortcode can be used to embed a fully marked up Twitter card.
## Instagram
## Gist
The `instagram` shortcode will embed an Instagram post. It requires only the post ID.
The `gist` shortcode can be used to embed a GitHub Gist. It requires two unnamed parameters: the username and ID of the Gist.
{{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}}
{{< instagram CxOWiQNP2MO >}}
## Vimeo
The `vimeo_simple` shortcode will embed a Vimeo video.
The `vimeo` shortcode will embed a Vimeo video. It requires only the video ID.
{{< vimeo_simple 48912912 >}}
{{< vimeo 48912912 >}}
@@ -16,20 +16,6 @@ Hugo包含了多个[内置短代码](https://gohugo.io/content-management/shortc
{{< youtube ZJthWmvUzzc >}}
## Twitter
这个例子使用了 `twitter_simple` 短代码来输出一条推文。它需要两个命名参数 `user``id`
{{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}}
或者,可以使用 `tweet` 短代码来嵌入一个完全标记的Twitter卡片。
## Gist
`gist` 短代码可以用于嵌入GitHub Gist。它需要两个未命名参数:Gist的用户名和ID。
{{< gist jpanther a873e1219ffeaa80a926bbe8255f348e >}}
## Vimeo
`vimeo_simple` 短代码将嵌入Vimeo视频。
+2 -1
View File
@@ -70,7 +70,7 @@ The list below is just a handful of the websites that are built using the Congo
| [kylecapehart.com](https://kylecapehart.com/) | Personal Site and Blog |
| [hosni.info](https://hosni.info/) | Personal site and Tech Blog |
| [mattstrayer.com](https://www.mattstrayer.com/) | Personal Site and Blog |
| [noamlerner.com](https://www.noamlerner.com/) | Personal blog (English/Hebrew) |
| [noamlerner.com](https://noamlerner.com/) | Personal blog (English/Hebrew) |
| [jneidel.com](https://jneidel.com) | Personal site and blog |
| [clementfouque.com](https://clementfouque.com) | Personal Site and Tech Blog |
| [victoryuan.com](https://victoryuan.com) | Personal Site and blog |
@@ -80,6 +80,7 @@ The list below is just a handful of the websites that are built using the Congo
| [blog.ny4.dev](https://blog.ny4.dev) | Personal site and blog (en/zh) |
| [socrabytes.github.io](https://socrabytes.github.io) | Personal site and Tech Blog |
| [montenegrodanielfelipe.com](https://montenegrodanielfelipe.com) | Personal Site and Blog |
| [euangelos.linardos.gr](https://euangelos.linardos.gr) | Personal Site and Blog |
| [joshquinlan.co.uk](https://joshquinlan.co.uk) | Personal & Professional Site |
**Congo user?** To add your site to this list, [submit a pull request](https://github.com/jpanther/congo/blob/dev/exampleSite/content/users/index.md).