diff --git a/themes/congo/exampleSite/content/_index.de.md b/themes/congo/exampleSite/content/_index.de.md index 8f4fedb..4efbfbf 100644 --- a/themes/congo/exampleSite/content/_index.de.md +++ b/themes/congo/exampleSite/content/_index.de.md @@ -24,6 +24,6 @@ Dies ist eine Demo-Site, die vollständig mit Congo erstellt wurde. Sie enthält -{{< figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} +{{< congo-figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} Schau dir die [Beispielseiten]({{< ref "samples" >}}) an, um ein Gefühl für die Möglichkeiten von Congo zu bekommen. Wenn dir gefällt, was du siehst, dann schau dir sich das Projekt auf [Github](https://github.com/jpanther/congo) an oder lies die [Installationsanleitung]({{< ref path="docs/installation" lang="en">}}), um loszulegen. diff --git a/themes/congo/exampleSite/content/_index.es.md b/themes/congo/exampleSite/content/_index.es.md index 4d4584c..0dfc114 100644 --- a/themes/congo/exampleSite/content/_index.es.md +++ b/themes/congo/exampleSite/content/_index.es.md @@ -24,6 +24,6 @@ Este es un sitio de demostración creado completamente con Congo. También conti -{{< figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} +{{< congo-figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} Explora las [páginas de ejemplo]({{< ref "samples" >}}) para tener una idea de lo que Congo puede hacer. Si te gusta lo que ves, consulta el proyecto en [Github](https://github.com/jpanther/congo) o lee la [Guía de instalación]({{< ref path="docs/installation" lang="en" >}}) para comenzar. diff --git a/themes/congo/exampleSite/content/_index.ja.md b/themes/congo/exampleSite/content/_index.ja.md index 9919924..9ba9ddc 100644 --- a/themes/congo/exampleSite/content/_index.ja.md +++ b/themes/congo/exampleSite/content/_index.ja.md @@ -26,6 +26,6 @@ Congoは柔軟性に富み、静的なコンテンツ配信にも、投稿フィ -{{< figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} +{{< congo-figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} [例]({{< ref "samples" >}})を見て、Congoの実力を実感してください。気に入ったら[GitHub](https://github.com/jpanther/congo)をチェックするか、[インストール]({{< ref "docs/installation" >}})を読んで実際に使い始めてほしい。 diff --git a/themes/congo/exampleSite/content/_index.md b/themes/congo/exampleSite/content/_index.md index f1a4ce5..f375dfd 100644 --- a/themes/congo/exampleSite/content/_index.md +++ b/themes/congo/exampleSite/content/_index.md @@ -24,6 +24,6 @@ This is a demo site built entirely using Congo. It also contains a complete set -{{< figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} +{{< congo-figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} Explore the [sample pages]({{< ref "samples" >}}) to get a feel for what Congo can do. If you like what you see, check out the project on [Github](https://github.com/jpanther/congo) or read the [Installation guide]({{< ref "docs/installation" >}}) to get started. diff --git a/themes/congo/exampleSite/content/_index.zh-cn.md b/themes/congo/exampleSite/content/_index.zh-cn.md index 35f52bc..7ddf854 100644 --- a/themes/congo/exampleSite/content/_index.zh-cn.md +++ b/themes/congo/exampleSite/content/_index.zh-cn.md @@ -24,6 +24,6 @@ description: "这是一个基于Hugo的主题Congo示例。" -{{< figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} +{{< congo-figure src="festivities.svg" class="m-auto mt-6 max-w-prose" >}} 探索 [示例页面]({{< ref "samples" >}}) 以感受Congo的强大功能。如果你喜欢该主题,请在 [Github](https://github.com/jpanther/congo) 上查看该项目,或阅读 [安装指南]({{< ref "docs/installation" >}}) 开始使用。 diff --git a/themes/congo/exampleSite/content/docs/shortcodes/index.ja.md b/themes/congo/exampleSite/content/docs/shortcodes/index.ja.md index 6ef62ec..3a9d790 100644 --- a/themes/congo/exampleSite/content/docs/shortcodes/index.ja.md +++ b/themes/congo/exampleSite/content/docs/shortcodes/index.ja.md @@ -153,7 +153,7 @@ Congoは、標準的なMarkdown構文を使用した場合の画像について ![抽象的な紫色のアートワーク](abstract.jpg "Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)") ``` -{{< figure src="abstract.jpg" alt="抽象的な紫色のアートワーク" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}} +{{< congo-figure src="abstract.jpg" alt="抽象的な紫色のアートワーク" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}} ## アイコン diff --git a/themes/congo/exampleSite/content/docs/shortcodes/index.md b/themes/congo/exampleSite/content/docs/shortcodes/index.md index f3c43fe..63c2e6a 100644 --- a/themes/congo/exampleSite/content/docs/shortcodes/index.md +++ b/themes/congo/exampleSite/content/docs/shortcodes/index.md @@ -153,7 +153,7 @@ Congo also supports automatic conversion of images included using standard Markd ![Abstract purple artwork](abstract.jpg "Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)") ``` -{{< figure src="abstract.jpg" alt="Abstract purple artwork" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}} +{{< congo-figure src="abstract.jpg" alt="Abstract purple artwork" caption="Photo by [Jr Korpa](https://unsplash.com/@jrkorpa) on [Unsplash](https://unsplash.com/)" >}} ## Icon diff --git a/themes/congo/exampleSite/content/docs/shortcodes/index.zh-cn.md b/themes/congo/exampleSite/content/docs/shortcodes/index.zh-cn.md index 9fc5e27..e92a933 100644 --- a/themes/congo/exampleSite/content/docs/shortcodes/index.zh-cn.md +++ b/themes/congo/exampleSite/content/docs/shortcodes/index.zh-cn.md @@ -153,7 +153,7 @@ Congo 还支持使用标准 Markdown 语法包含的图像的自动转换。只 ![抽象紫色艺术品](abstract.jpg "照片由[Jr Korpa](https://unsplash.com/@jrkorpa)拍摄,来自[Unsplash](https://unsplash.com/)") ``` -{{< figure src="abstract.jpg" alt="抽象紫色艺术品" caption="照片由[Jr Korpa](https://unsplash.com/@jrkorpa)拍摄,来自[Unsplash](https://unsplash.com/)" >}} +{{< congo-figure src="abstract.jpg" alt="抽象紫色艺术品" caption="照片由[Jr Korpa](https://unsplash.com/@jrkorpa)拍摄,来自[Unsplash](https://unsplash.com/)" >}} ## Icon diff --git a/themes/congo/layouts/shortcodes/figure.html b/themes/congo/layouts/shortcodes/figure.html index 25eca58..bc53228 100644 --- a/themes/congo/layouts/shortcodes/figure.html +++ b/themes/congo/layouts/shortcodes/figure.html @@ -1,5 +1,5 @@ {{ if .Get "default" }} - {{ template "_internal/shortcodes/figure.html" . }} + {{ template "_shortcodes/figure.html" . }} {{ else }} {{ $url := urls.Parse (.Get "src") }} {{ $altText := .Get "alt" }}