diff --git a/demo/config/_default/hugo.toml b/demo/config/_default/hugo.toml index 3edbc9a..c0c6b96 100644 --- a/demo/config/_default/hugo.toml +++ b/demo/config/_default/hugo.toml @@ -1,7 +1,6 @@ -baseURL = "https://example.com/" +baseURL = "https://demo.stack.jimmycai.com/" languageCode = "en-us" -title = "Example Site" -copyright = "Example Person" +title = "Hugo Theme Stack" # Theme i18n support # See i18n folder for available languages @@ -12,10 +11,10 @@ defaultContentLanguage = "en" hasCJKLanguage = false [[module.imports]] -path = "github.com/CaiJimmy/hugo-theme-stack/v3" + path = "github.com/CaiJimmy/hugo-theme-stack/v3" [pagination] - pagerSize = 3 + pagerSize = 5 [permalinks] post = "/p/:slug/" diff --git a/demo/config/_default/languages.toml b/demo/config/_default/languages.toml index 39e583a..1179133 100644 --- a/demo/config/_default/languages.toml +++ b/demo/config/_default/languages.toml @@ -1,35 +1,27 @@ [en] languageName = "English" - title = "Example Site" + title = "Hugo Theme Stack" weight = 1 [en.params.sidebar] - subtitle = "Example description" + subtitle = "Card-style Hugo theme designed for bloggers" [zh] languageName = "简体中文" - title = "演示站点" + title = "Hugo 主题 Stack" weight = 2 [zh.params.sidebar] - subtitle = "演示说明" + subtitle = "为博客设计的卡片式 Hugo 主题" [zh-hant-tw] languageName = "正體中文" - title = "演示站點" - weight = 2 + title = "Hugo 主題 Stack" + weight = 3 [zh-hant-tw.params.sidebar] - subtitle = "演示說明" + subtitle = "為博客設計的卡片式 Hugo 主題" [ja] languageName = "日本語" - title = "サンプルサイト" - weight = 2 + title = "Hugo Theme Stack" + weight = 4 [ja.params.sidebar] - subtitle = "サンプル説明" - -[ar] - languageName = "عربي" - languagedirection = "rtl" - title = "موقع تجريبي" - weight = 3 - [ar.params.sidebar] - subtitle = "وصف تجريبي" + subtitle = "ブログ用のカードスタイルの Hugo テーマ" diff --git a/demo/config/_default/params.toml b/demo/config/_default/params.toml index 486c247..38e0f2e 100644 --- a/demo/config/_default/params.toml +++ b/demo/config/_default/params.toml @@ -6,7 +6,7 @@ favicon = "" since = 2020 [sidebar] - emoji = "🍥" + emoji = "✏️" subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit." [sidebar.avatar] enabled = true diff --git a/demo/content/categories/Documentation/_index.ja.md b/demo/content/categories/Documentation/_index.ja.md new file mode 100644 index 0000000..4023f13 --- /dev/null +++ b/demo/content/categories/Documentation/_index.ja.md @@ -0,0 +1,9 @@ +--- +title: ドキュメント +description: "Stack テーマの使用方法に関する投稿" +slug: "documentation" +image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg" +style: + background: "#2a9d8f" + color: "#fff" +--- diff --git a/demo/content/categories/Documentation/_index.md b/demo/content/categories/Documentation/_index.md new file mode 100644 index 0000000..2c1e255 --- /dev/null +++ b/demo/content/categories/Documentation/_index.md @@ -0,0 +1,9 @@ +--- +title: Documentation +description: "Posts about how to use Stack theme" +slug: "documentation" +image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg" +style: + background: "#2a9d8f" + color: "#fff" +--- diff --git a/demo/content/categories/Test/_index.md b/demo/content/categories/Documentation/_index.zh-hant-tw.md similarity index 54% rename from demo/content/categories/Test/_index.md rename to demo/content/categories/Documentation/_index.zh-hant-tw.md index de42112..40c9edf 100644 --- a/demo/content/categories/Test/_index.md +++ b/demo/content/categories/Documentation/_index.zh-hant-tw.md @@ -1,7 +1,7 @@ --- -title: "Test" -description: "This is an example category" -slug: "test" +title: 文檔 +description: "關於如何使用 Stack 主題的文章" +slug: "documentation" image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg" style: background: "#2a9d8f" diff --git a/demo/content/categories/Documentation/_index.zh.md b/demo/content/categories/Documentation/_index.zh.md new file mode 100644 index 0000000..96a69c2 --- /dev/null +++ b/demo/content/categories/Documentation/_index.zh.md @@ -0,0 +1,9 @@ +--- +title: 文档 +description: "关于如何使用 Stack 主题的文章" +slug: "documentation" +image: "hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg" +style: + background: "#2a9d8f" + color: "#fff" +--- diff --git a/demo/content/categories/Test/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg b/demo/content/categories/Documentation/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg similarity index 100% rename from demo/content/categories/Test/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg rename to demo/content/categories/Documentation/hutomo-abrianto-l2jk-uxb1BY-unsplash.jpg diff --git a/demo/content/page/about/index.ja.md b/demo/content/page/about/index.ja.md new file mode 100644 index 0000000..71e10ca --- /dev/null +++ b/demo/content/page/about/index.ja.md @@ -0,0 +1,46 @@ +--- +title: このサイトについて +description: このサイトとその著者についてのすべて。 +date: 2026-01-26 +lastmod: 2026-01-26 +menu: + main: + weight: -90 + params: + icon: user +--- + +## 誰のためのページですか? + +これは**サンプル詳細**ページです。あなた自身、あなたのブログ、またはあなたのプロジェクトを紹介するために使用できます。 + +## 著者について + +こんにちは!私はブログとオープンソースに情熱を注いでいる愛好家です。新しい技術を探索し、その経験をコミュニティと共有することが大好きです。 + +### 私の歩み + +10年以上前にWeb開発の旅を始めました。それ以来、個人のブログから大規模なエンタープライズアプリケーションまで、数多くのプロジェクトに携わってきました。 + +### スキル + +- **フロントエンド**: HTML, CSS, JavaScript, React, Vue +- **バックエンド**: Node.js, Python, Go +- **ツール**: Git, Docker, Hugo, Neovim + +## お問い合わせ + +質問がある場合や、単にあいさつをしたい場合は、お気軽にご連絡ください! + +- **メール**: [hello@example.com](mailto:hello@example.com) +- **Twitter**: [@example](https://twitter.com/example) +- **GitHub**: [example](https://github.com/example) + +--- + +> "Logic will get you from A to B. Imagination will take you everywhere." +> — *Albert Einstein* + +--- +*このページは AI によって生成されました。* + diff --git a/demo/content/page/about/index.md b/demo/content/page/about/index.md index 68911f9..8892443 100644 --- a/demo/content/page/about/index.md +++ b/demo/content/page/about/index.md @@ -1,13 +1,8 @@ --- title: About -description: Hugo, the world's fastest framework for building websites -date: '2019-02-28' -aliases: - - about-us - - about-hugo - - contact -license: CC BY-NC-ND -lastmod: '2020-10-09' +description: Everything you need to know about this site and its author. +date: 2026-01-26 +lastmod: 2026-01-26 menu: main: weight: -90 @@ -15,20 +10,37 @@ menu: icon: user --- -Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. +## Who is this for? -Hugo makes use of a variety of open source projects including: +This is a sample **About** page. You can use it to introduce yourself, your blog, or your project. -* https://github.com/yuin/goldmark -* https://github.com/alecthomas/chroma -* https://github.com/muesli/smartcrop -* https://github.com/spf13/cobra -* https://github.com/spf13/viper +## About the Author -Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. +Hello! I'm a passionate blogger and open-source enthusiast. I love exploring new technologies and sharing my experiences with the community. -Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. +### My Journey -Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. +I started my journey in web development over 10 years ago. Since then, I've worked on numerous projects ranging from small personal blogs to large-scale enterprise applications. + +### Skills + +- **Front-end**: HTML, CSS, JavaScript, React, Vue +- **Back-end**: Node.js, Python, Go +- **Tools**: Git, Docker, Hugo, Neovim + +## Contact Me + +Feel free to reach out if you have any questions or just want to say hi! + +- **Email**: [hello@example.com](mailto:hello@example.com) +- **Twitter**: [@example](https://twitter.com/example) +- **GitHub**: [example](https://github.com/example) + +--- + +> "Logic will get you from A to B. Imagination will take you everywhere." +> — *Albert Einstein* + +--- +*This page was generated by AI.* -Learn more and contribute on [GitHub](https://github.com/gohugoio). diff --git a/demo/content/page/about/index.zh-hant-tw.md b/demo/content/page/about/index.zh-hant-tw.md new file mode 100644 index 0000000..41d180c --- /dev/null +++ b/demo/content/page/about/index.zh-hant-tw.md @@ -0,0 +1,46 @@ +--- +title: 關於 +description: 關於本站及其作者的一切。 +date: 2026-01-26 +lastmod: 2026-01-26 +menu: + main: + weight: -90 + params: + icon: user +--- + +## 這是給誰看的? + +這是一個示例**關於**頁面。你可以用它來介紹你自己、你的博客或你的項目。 + +## 關於作者 + +你好!我是一個熱衷於博客和開源的愛好者。我喜歡探索新技術並向社區分享我的經驗。 + +### 我的旅程 + +我在 10 多年前開始了我的 Web 開發之旅。自那以後,我參與了許多項目,從個人博客到大規模企業應用。 + +### 技能 + +- **前端**: HTML, CSS, JavaScript, React, Vue +- **後端**: Node.js, Python, Go +- **工具**: Git, Docker, Hugo, Neovim + +## 聯繫我 + +如果你有任何問題或只是想打個招呼,請隨時聯繫我! + +- **電子郵件**: [hello@example.com](mailto:hello@example.com) +- **Twitter**: [@example](https://twitter.com/example) +- **GitHub**: [example](https://github.com/example) + +--- + +> "Logic will get you from A to B. Imagination will take you everywhere." +> — *Albert Einstein* + +--- +*此頁面由 AI 生成。* + diff --git a/demo/content/page/about/index.zh.md b/demo/content/page/about/index.zh.md index 0284003..9ac6444 100644 --- a/demo/content/page/about/index.zh.md +++ b/demo/content/page/about/index.zh.md @@ -1,5 +1,8 @@ --- title: 关于 +description: 关于本站及其作者的一切。 +date: 2026-01-26 +lastmod: 2026-01-26 menu: main: weight: -90 @@ -7,4 +10,36 @@ menu: icon: user --- -This is a test page for i18n support. \ No newline at end of file +## 这是给谁看的? + +这是一个示例**关于**页面。你可以用它来介绍你自己、你的博客或你的项目。 + +## 关于作者 + +你好!我是一个热衷于博客和开源的爱好者。我喜欢探索新技术并向社区分享我的经验。 + +### 我的旅程 + +我在 10 多年前开始了我的 Web 开发之旅。自那以后,我参与了许多项目,从个人博客到大规模企业应用。 + +### 技能 + +- **前端**: HTML, CSS, JavaScript, React, Vue +- **后端**: Node.js, Python, Go +- **工具**: Git, Docker, Hugo, Neovim + +## 联系我 + +如果你有任何问题或只是想打个招呼,请随时联系我! + +- **电子邮件**: [hello@example.com](mailto:hello@example.com) +- **Twitter**: [@example](https://twitter.com/example) +- **GitHub**: [example](https://github.com/example) + +--- + +> "Logic will get you from A to B. Imagination will take you everywhere." +> — *Albert Einstein* + +--- +*此页面由 AI 生成。* \ No newline at end of file diff --git a/demo/content/page/archives/index.ja.md b/demo/content/page/archives/index.ja.md new file mode 100644 index 0000000..2b4faa4 --- /dev/null +++ b/demo/content/page/archives/index.ja.md @@ -0,0 +1,11 @@ +--- +title: "アーカイブ" +date: 2019-05-28 +layout: "archives" +slug: "archives" +menu: + main: + weight: -70 + params: + icon: archives +--- diff --git a/demo/content/page/archives/index.zh-hant-tw.md b/demo/content/page/archives/index.zh-hant-tw.md new file mode 100644 index 0000000..eebb716 --- /dev/null +++ b/demo/content/page/archives/index.zh-hant-tw.md @@ -0,0 +1,11 @@ +--- +title: "歸檔" +date: 2019-05-28 +layout: "archives" +slug: "archives" +menu: + main: + weight: -70 + params: + icon: archives +--- diff --git a/demo/content/page/archives/index.zh.md b/demo/content/page/archives/index.zh.md new file mode 100644 index 0000000..e3086a7 --- /dev/null +++ b/demo/content/page/archives/index.zh.md @@ -0,0 +1,11 @@ +--- +title: "归档" +date: 2019-05-28 +layout: "archives" +slug: "archives" +menu: + main: + weight: -70 + params: + icon: archives +--- diff --git a/demo/content/page/links/index.ja.md b/demo/content/page/links/index.ja.md new file mode 100644 index 0000000..cf25cb3 --- /dev/null +++ b/demo/content/page/links/index.ja.md @@ -0,0 +1,36 @@ +--- +title: "リンク" +links: + - title: GitHub + description: GitHubは、世界最大のソフトウェア開発プラットフォームです。 + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: TypeScript + description: TypeScriptは、JavaScriptの静的型付けされたスーパーセットで、純粋なJavaScriptにコンパイルされます。 + website: https://www.typescriptlang.org + image: ts-logo-128.jpg +menu: + main: + weight: -50 + params: + icon: link +comments: false +--- + +この機能を使用するには、フロントマターに `links` セクションを追加します。 + +このページのフロントマター: + +```yaml +links: + - title: GitHub + description: GitHubは、世界最大のソフトウェア開発プラットフォームです。 + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: TypeScript + description: TypeScriptは、JavaScriptの静的型付けされたスーパーセットで、純粋なJavaScriptにコンパイルされます。 + website: https://www.typescriptlang.org + image: ts-logo-128.jpg +``` + +`image` フィールドは、ローカル画像と外部画像の両方を受け入れます。 diff --git a/demo/content/page/links/index.zh-hant-tw.md b/demo/content/page/links/index.zh-hant-tw.md new file mode 100644 index 0000000..0360c49 --- /dev/null +++ b/demo/content/page/links/index.zh-hant-tw.md @@ -0,0 +1,36 @@ +--- +title: "鏈接" +links: + - title: GitHub + description: GitHub 是世界上最大的軟件開發平台。 + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: TypeScript + description: TypeScript 是 JavaScript 的一個超集,它可以編譯成純 JavaScript。 + website: https://www.typescriptlang.org + image: ts-logo-128.jpg +menu: + main: + weight: -50 + params: + icon: link +comments: false +--- + +要使用此功能,請在 frontmatter 中添加 `links` 部分。 + +此頁面的 frontmatter: + +```yaml +links: + - title: GitHub + description: GitHub 是世界上最大的軟件開發平台。 + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: TypeScript + description: TypeScript 是 JavaScript 的一個超集,它可以編譯成純 JavaScript。 + website: https://www.typescriptlang.org + image: ts-logo-128.jpg +``` + +`image` 字段支持本地和外部圖像。 diff --git a/demo/content/page/links/index.zh.md b/demo/content/page/links/index.zh.md new file mode 100644 index 0000000..6532587 --- /dev/null +++ b/demo/content/page/links/index.zh.md @@ -0,0 +1,36 @@ +--- +title: "链接" +links: + - title: GitHub + description: GitHub 是世界上最大的软件开发平台。 + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: TypeScript + description: TypeScript 是 JavaScript 的一个超集,它可以编译成纯 JavaScript。 + website: https://www.typescriptlang.org + image: ts-logo-128.jpg +menu: + main: + weight: -50 + params: + icon: link +comments: false +--- + +要使用此功能,请在 frontmatter 中添加 `links` 部分。 + +此页面的 frontmatter: + +```yaml +links: + - title: GitHub + description: GitHub 是世界上最大的软件开发平台。 + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: TypeScript + description: TypeScript 是 JavaScript 的一个超集,它可以编译成纯 JavaScript。 + website: https://www.typescriptlang.org + image: ts-logo-128.jpg +``` + +`image` 字段支持本地和外部图像。 diff --git a/demo/content/page/search/index.ja.md b/demo/content/page/search/index.ja.md new file mode 100644 index 0000000..fdecb37 --- /dev/null +++ b/demo/content/page/search/index.ja.md @@ -0,0 +1,13 @@ +--- +title: "検索" +slug: "search" +layout: "search" +outputs: + - html + - json +menu: + main: + weight: -60 + params: + icon: search +--- diff --git a/demo/content/page/search/index.zh-hant-tw.md b/demo/content/page/search/index.zh-hant-tw.md new file mode 100644 index 0000000..6261846 --- /dev/null +++ b/demo/content/page/search/index.zh-hant-tw.md @@ -0,0 +1,13 @@ +--- +title: "搜索" +slug: "search" +layout: "search" +outputs: + - html + - json +menu: + main: + weight: -60 + params: + icon: search +--- diff --git a/demo/content/page/search/index.zh.md b/demo/content/page/search/index.zh.md new file mode 100644 index 0000000..6261846 --- /dev/null +++ b/demo/content/page/search/index.zh.md @@ -0,0 +1,13 @@ +--- +title: "搜索" +slug: "search" +layout: "search" +outputs: + - html + - json +menu: + main: + weight: -60 + params: + icon: search +--- diff --git a/demo/content/post/chinese-test/florian-klauer-nptLmg6jqDo-unsplash.jpg b/demo/content/post/Image Gallery/florian-klauer-nptLmg6jqDo-unsplash.jpg similarity index 100% rename from demo/content/post/chinese-test/florian-klauer-nptLmg6jqDo-unsplash.jpg rename to demo/content/post/Image Gallery/florian-klauer-nptLmg6jqDo-unsplash.jpg diff --git a/demo/content/post/chinese-test/helena-hertz-wWZzXlDpMog-unsplash.jpg b/demo/content/post/Image Gallery/helena-hertz-wWZzXlDpMog-unsplash.jpg similarity index 100% rename from demo/content/post/chinese-test/helena-hertz-wWZzXlDpMog-unsplash.jpg rename to demo/content/post/Image Gallery/helena-hertz-wWZzXlDpMog-unsplash.jpg diff --git a/demo/content/post/chinese-test/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg b/demo/content/post/Image Gallery/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg similarity index 100% rename from demo/content/post/chinese-test/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg rename to demo/content/post/Image Gallery/hudai-gayiran-3Od_VKcDEAA-unsplash.jpg diff --git a/demo/content/post/Image Gallery/index.ja.md b/demo/content/post/Image Gallery/index.ja.md new file mode 100644 index 0000000..dda26ae --- /dev/null +++ b/demo/content/post/Image Gallery/index.ja.md @@ -0,0 +1,41 @@ +--- +title: 写真ギャラリー +description: 内蔵の写真ギャラリー機能を披露 +date: 2026-01-26 +slug: image-gallery +image: helena-hertz-wWZzXlDpMog-unsplash.jpg +categories: + - Documentation +tags: + - Gallery + - Photoswipe +toc: false +--- + +Stack テーマには、写真ギャラリー機能が内蔵されています。複数の画像を並べて配置するだけで、美しいギャラリーを作成できます。 + +## ギャラリーの例 + +![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg) + +![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg) + +## 仕組み + +ギャラリーは **Photoswipe** と独自の内部スクリプトによって動作します。画像の縦横比に基づいて、最適なレイアウトが自動的に計算されます。 + +ギャラリーを作成するには、同じ行(または同じ段落)に複数の画像を配置するだけです。 + +### 構文 + +```markdown +![画像 1](image1.jpg) ![画像 2](image2.jpg) + +![画像 3](image3.jpg) ![画像 4](image4.jpg) +``` + +> **注意**: Markdown で画像が同じ行に保持されるように、画像の間には 2 つのスペースを入れる必要があります。 + +--- + +ギャラリーの構文は [Typlog](https://typlog.com/) にインスパイアされています。 diff --git a/demo/content/post/Image Gallery/index.md b/demo/content/post/Image Gallery/index.md new file mode 100644 index 0000000..3310c64 --- /dev/null +++ b/demo/content/post/Image Gallery/index.md @@ -0,0 +1,42 @@ +--- +title: Image Gallery +description: Showcasing the built-in image gallery support +date: 2026-01-26 +slug: image-gallery +image: helena-hertz-wWZzXlDpMog-unsplash.jpg +categories: + - Documentation +tags: + - Gallery + - Photoswipe +toc: false +--- + +Stack theme has a built-in support for image galleries. It allows you to create a beautiful gallery by simply placing multiple images side-by-side. + +## Sample Gallery + +![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg) + +![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg) + +## How it works + +The gallery is powered by **Photoswipe** and a custom internal script. It automatically calculates the best layout for your images based on their aspect ratios. + +To create a gallery, you just need to put multiple images in the same line (or paragraph). + +### Syntax + +```markdown +![Image 1](image1.jpg) ![Image 2](image2.jpg) + +![Image 3](image3.jpg) ![Image 4](image4.jpg) +``` + +> **Note**: There should be two spaces between the images to ensure they stay in the same line in Markdown + +--- + +Gallery Syntax inspired by [Typlog](https://typlog.com/) + diff --git a/demo/content/post/Image Gallery/index.zh-hant-tw.md b/demo/content/post/Image Gallery/index.zh-hant-tw.md new file mode 100644 index 0000000..17e60fc --- /dev/null +++ b/demo/content/post/Image Gallery/index.zh-hant-tw.md @@ -0,0 +1,41 @@ +--- +title: 相簿 +description: 展示內置的相簿支持 +date: 2026-01-26 +slug: image-gallery +image: helena-hertz-wWZzXlDpMog-unsplash.jpg +categories: + - Documentation +tags: + - Gallery + - Photoswipe +toc: false +--- + +Stack 主題內置了對相簿的支持。你只需要簡單地將多張圖片並排放置,就可以創建一個精美的相簿。 + +## 示例相簿 + +![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg) + +![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg) + +## 它是如何工作的 + +相簿由 **Photoswipe** 和一個自定義的內部腳本驅動。它會根據圖片的寬高比自動計算出最佳佈局。 + +要創建一個相簿,你只需要將多張圖片放在同一行(或同一個段落)中。 + +### 語法 + +```markdown +![圖片 1](image1.jpg) ![圖片 2](image2.jpg) + +![圖片 3](image3.jpg) ![圖片 4](image4.jpg) +``` + +> **注意**: 圖片之間應該有兩個空格,以確保它們在 Markdown 中保持在同一行。 + +--- + +相簿語法啟發自 [Typlog](https://typlog.com/) diff --git a/demo/content/post/Image Gallery/index.zh.md b/demo/content/post/Image Gallery/index.zh.md new file mode 100644 index 0000000..68ea23d --- /dev/null +++ b/demo/content/post/Image Gallery/index.zh.md @@ -0,0 +1,41 @@ +--- +title: 相册 +description: 展示内置的相册支持 +date: 2026-01-26 +slug: image-gallery +image: helena-hertz-wWZzXlDpMog-unsplash.jpg +categories: + - Documentation +tags: + - Gallery + - Photoswipe +toc: false +--- + +Stack 主题内置了对相册的支持。你只需要简单地将多张图片并排放置,就可以创建一个精美的相册。 + +## 示例相册 + +![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg) + +![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg) + +## 它是如何工作的 + +相册由 **Photoswipe** 和一个自定义的内部脚本驱动。它会根据图片的宽高比自动计算出最佳布局。 + +要创建一个相册,你只需要将多张图片放在同一行(或同一个段落)中。 + +### 语法 + +```markdown +![图片 1](image1.jpg) ![图片 2](image2.jpg) + +![图片 3](image3.jpg) ![图片 4](image4.jpg) +``` + +> **注意**: 图片之间应该有两个空格,以确保它们在 Markdown 中保持在同一行。 + +--- + +相册语法启发自 [Typlog](https://typlog.com/) diff --git a/demo/content/post/chinese-test/luca-bravo-alS7ewQ41M8-unsplash.jpg b/demo/content/post/Image Gallery/luca-bravo-alS7ewQ41M8-unsplash.jpg similarity index 100% rename from demo/content/post/chinese-test/luca-bravo-alS7ewQ41M8-unsplash.jpg rename to demo/content/post/Image Gallery/luca-bravo-alS7ewQ41M8-unsplash.jpg diff --git a/demo/content/post/markdown-syntax/index.md b/demo/content/post/Markdown Syntax/index.md similarity index 73% rename from demo/content/post/markdown-syntax/index.md rename to demo/content/post/Markdown Syntax/index.md index c584c4c..74b8b4a 100644 --- a/demo/content/post/markdown-syntax/index.md +++ b/demo/content/post/Markdown Syntax/index.md @@ -1,32 +1,25 @@ -+++ -author = "Hugo Authors" -title = "Markdown Syntax Guide" -date = "2019-03-11" -description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." -tags = [ - "markdown", - "css", - "html", - "themes", -] -categories = [ - "themes", - "syntax", -] -series = ["Themes Guide"] -aliases = ["migrate-from-jekyl"] -image = "pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg" -+++ +--- +title: Markdown Syntax Guide +date: 2026-01-25 +description: Sample article showcasing basic Markdown syntax and formatting for HTML elements. +tags: + - markdown + - css + - html + - themes +categories: + - Documentation +image: pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg +--- This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. + ## Headings The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. -# H1 -## H2 ### H3 #### H4 ##### H5 @@ -42,12 +35,12 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. -#### Blockquote without attribution +### Blockquote without attribution > Tiam, ad mint andaepu dandae nostion secatur sequo quae. > **Note** that you can use *Markdown syntax* within a blockquote. -#### Blockquote with attribution +### Blockquote with attribution > Don't communicate by sharing memory, share memory by communicating.
> — Rob Pike[^1] @@ -58,24 +51,23 @@ The blockquote element represents content that is quoted from another source, op Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. - Name | Age ---------|------ - Bob | 27 - Alice | 23 + | Name | Age | + | ----- | --- | + | Bob | 27 | + | Alice | 23 | -#### Inline Markdown within tables +### Inline Markdown within tables | Italics | Bold | Code | -| -------- | -------- | ------ | +| --------- | -------- | ------ | | *italics* | **bold** | `code` | | A | B | C | D | E | F | -|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|------------------------------------------------------------|----------------------------------------------------------------------| +| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------------- | | Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Phasellus ultricies, sapien non euismod aliquam, dui ligula tincidunt odio, at accumsan nulla sapien eget ex. | Proin eleifend dictum ipsum, non euismod ipsum pulvinar et. Vivamus sollicitudin, quam in pulvinar aliquam, metus elit pretium purus | Proin sit amet velit nec enim imperdiet vehicula. | Ut bibendum vestibulum quam, eu egestas turpis gravida nec | Sed scelerisque nec turpis vel viverra. Vivamus vitae pretium sapien | ## Code Blocks - -#### Code block with backticks +### Code block with backticks ```html @@ -90,7 +82,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou ``` -#### Code block indented with four spaces +### Code block indented with four spaces @@ -103,21 +95,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou -#### Code block with Hugo's internal highlight shortcode -{{< highlight html >}} - - - - - Example HTML5 Document - - -

Test

- - -{{< /highlight >}} - -#### Diff code block +### Diff code block ```diff [dependencies.bevy] @@ -127,21 +105,27 @@ rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13" + features = ["jpeg", "dynamic"] ``` +### One line code block + +```html +

A paragraph

+``` + ## List Types -#### Ordered List +### Ordered List 1. First item 2. Second item 3. Third item -#### Unordered List +### Unordered List * List item * Another item * And another item -#### Nested list +### Nested list * Fruit * Apple @@ -161,8 +145,4 @@ Xn + Yn = Zn Press CTRL + ALT + Delete to end the session. -Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. - -## Hyperlinked image - -[![Google](https://www.google.com/images/branding/googlelogo/1x/googlelogo_light_color_272x92dp.png)](https://google.com) \ No newline at end of file +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. \ No newline at end of file diff --git a/demo/content/post/Markdown Syntax/index.zh.md b/demo/content/post/Markdown Syntax/index.zh.md new file mode 100644 index 0000000..13a41be --- /dev/null +++ b/demo/content/post/Markdown Syntax/index.zh.md @@ -0,0 +1,148 @@ +--- +title: Markdown 语法指南 +date: 2026-01-25 +description: 展示基本 Markdown 语法和 HTML 元素格式的示例文章。 +tags: + - markdown + - css + - html + - themes +categories: + - Documentation +image: pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg +--- + +这篇文章提供了可以在 Hugo 内容文件中使用的基本 Markdown 语法示例,同时也展示了 Hugo 主题中基本 HTML 元素是否应用了 CSS 装饰。 + + + +## 标题 (Headings) + +以下 HTML `

`—`

` 元素代表了六个级别的章节标题。`

` 是最高级别,而 `

` 是最低级别。 + +### H3 +#### H4 +##### H5 +###### H6 + +## 段落 (Paragraph) + +Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. + +Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. + +## 引用 (Blockquotes) + +引用元素代表从另一个来源引用的内容,可以选择带有引用说明(必须在 `footer` 或 `cite` 元素内),也可以选择带有行内更改(如注释和缩写)。 + +### 不带出处的引用 + +> Tiam, ad mint andaepu dandae nostion secatur sequo quae. +> **注意**:你可以在引用中使用 *Markdown 语法*。 + +### 带有出处的引用 + +> 不要通过共享内存来通信,而要通过通信来共享内存。
+> — Rob Pike[^1] + +[^1]: 以上引用摘自 Rob Pike 在 2015 年 11 月 18 日 Gopherfest 期间的[演讲](https://www.youtube.com/watch?v=PAAkCSZUG1c)。 + +## 表格 (Tables) + +表格虽然不是 Markdown 核心规范的一部分,但 Hugo 出箱即用地支持它们。 + + | 姓名 | 年龄 | + | ----- | ---- | + | Bob | 27 | + | Alice | 23 | + +### 表格内的行内 Markdown + +| 斜体 | 加粗 | 代码 | +| --------- | -------- | ------ | +| *italics* | **bold** | `code` | + +| A | B | C | D | E | F | +| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------------- | +| Lorem ipsum dolor sit amet, consectetur adipiscing elit. | Phasellus ultricies, sapien non euismod aliquam, dui ligula tincidunt odio, at accumsan nulla sapien eget ex. | Proin eleifend dictum ipsum, non euismod ipsum pulvinar et. Vivamus sollicitudin, quam in pulvinar aliquam, metus elit pretium purus | Proin sit amet velit nec enim imperdiet vehicula. | Ut bibendum vestibulum quam, eu egestas turpis gravida nec | Sed scelerisque nec turpis vel viverra. Vivamus vitae pretium sapien | + +## 代码块 (Code Blocks) +### 使用反引号的代码块 + +```html + + + + + Example HTML5 Document + + +

Test

+ + +``` + +### 使用四个空格缩进的代码块 + + + + + + Example HTML5 Document + + +

Test

+ + + +### Diff 代码块 + +```diff +[dependencies.bevy] +git = "https://github.com/bevyengine/bevy" +rev = "11f52b8c72fc3a568e8bb4a4cd1f3eb025ac2e13" +- features = ["dynamic"] ++ features = ["jpeg", "dynamic"] +``` + +### 单行代码块 + +```html +

A paragraph

+``` + +## 列表类型 (List Types) + +### 有序列表 + +1. 第一项 +2. 第二项 +3. 第三项 + +### 无序列表 + +* 列表项 +* 另一项 +* 还有一项 + +### 嵌套列表 + +* 水果 + * 苹果 + * 橘子 + * 香蕉 +* 乳制品 + * 牛奶 + * 奶酪 + +## 其他元素 — abbr, sub, sup, kbd, mark + +GIF 是一种位图图像格式。 + +H2O + +Xn + Yn = Zn + +按 CTRL + ALT + Delete 结束会话。 + +大多数蝾螈是夜行性的,捕食昆虫、蠕虫和其他小型生物。 diff --git a/demo/content/post/markdown-syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg b/demo/content/post/Markdown Syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg similarity index 100% rename from demo/content/post/markdown-syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg rename to demo/content/post/Markdown Syntax/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg diff --git a/demo/content/post/Math Typesetting/index.md b/demo/content/post/Math Typesetting/index.md new file mode 100644 index 0000000..c8ed973 --- /dev/null +++ b/demo/content/post/Math Typesetting/index.md @@ -0,0 +1,61 @@ +--- +title: Math Typesetting +date: 2026-01-24 +description: Guide to enabling and using KaTeX in the Stack theme +math: true +categories: + - Documentation +slug: math-typesetting +--- + +The Stack theme supports rendering mathematical notation using [KaTeX](https://katex.org/). + + + +## Enabling KaTeX + +### Per-page basis + +To enable KaTeX for a specific post, include `math: true` in the post's frontmatter: + +```yaml +--- +title: "My Math Post" +math: true +--- +``` + +### Globally + +To enable KaTeX for all posts, set `article.math` to `true` in your site configuration (`params.yaml` or `params.toml`): + +```yaml +article: + math: true +``` + +## Examples + +### Inline Math + +You can include math inline by wrapping the expression in single dollar signs `$`. + +For example: `$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $` renders as $ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $ + +### Block Math + +For larger equations, use double dollar signs `$$` to create a math block. + +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ + +### More Complex Formula + +$$ +f(a) = \frac{1}{2\pi i} \oint_\gamma \frac{f(z)}{z-a} dz +$$ + +--- + +**Note:** For a full list of supported TeX functions, refer to the [KaTeX documentation](https://katex.org/docs/supported.html). diff --git a/demo/content/post/Math Typesetting/index.zh.md b/demo/content/post/Math Typesetting/index.zh.md new file mode 100644 index 0000000..bf5e9d3 --- /dev/null +++ b/demo/content/post/Math Typesetting/index.zh.md @@ -0,0 +1,61 @@ +--- +title: 数学公式 +date: 2026-01-24 +description: 在 Stack 主题中启用和使用 KaTeX 的指南 +math: true +categories: + - Documentation +slug: math-typesetting +--- + +Stack 主题支持使用 [KaTeX](https://katex.org/) 渲染数学公式。 + + + +## 启用 KaTeX + +### 按页面启用 + +要在特定文章中启用 KaTeX,请在文章的前置参数(frontmatter)中包含 `math: true`: + +```yaml +--- +title: "我的数学文章" +math: true +--- +``` + +### 全局启用 + +要为所有文章启用 KaTeX,请在网站配置(`params.yaml` 或 `params.toml`)中将 `article.math` 设置为 `true`: + +```yaml +article: + math: true +``` + +## 示例 + +### 行内公式 + +你可以通过将表达式包裹在单个美元符号 `$` 中来包含行内公式。 + +例如:`$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $` 将渲染为 $ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $ + +### 块级公式 + +对于较大的方程式,请使用双美元符号 `$$` 创建数学块。 + +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ + +### 更复杂的公式 + +$$ +f(a) = \frac{1}{2\pi i} \oint_\gamma \frac{f(z)}{z-a} dz +$$ + +--- + +**注意:** 有关受支持的 TeX 函数的完整列表,请参阅 [KaTeX 文档](https://katex.org/docs/supported.html)。 diff --git a/demo/content/post/chinese-test/index.ja.md b/demo/content/post/chinese-test/index.ja.md deleted file mode 100644 index 28135e3..0000000 --- a/demo/content/post/chinese-test/index.ja.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: Japanese Test -description: これはサブタイトル -date: 2020-09-09 -slug: test-chinese -image: helena-hertz-wWZzXlDpMog-unsplash.jpg -categories: - - Test - - テスト ---- - -## 本文テスト(フォント) - -返扇花週認契適違込遷雇述請曜藤突扉直角 - -## 引用 - -> 国破れて山河在り\ -> 城春にして草木深し\ -> 時に感じては花にも涙を濺ぎ\ -> 別れを恨んでは鳥にも心を驚かす -> -> 烽火三月に連なり\ -> 家書万金に抵たる\ -> 白頭掻けば更に短く\ -> 渾べて簪に勝へざらんと欲す diff --git a/demo/content/post/chinese-test/index.zh-hant-tw.md b/demo/content/post/chinese-test/index.zh-hant-tw.md deleted file mode 100644 index 09087af..0000000 --- a/demo/content/post/chinese-test/index.zh-hant-tw.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Chinese Test -description: 這是一個副標題 -date: 2020-09-09 -slug: test-chinese -image: helena-hertz-wWZzXlDpMog-unsplash.jpg -categories: - - Test - - 測試 ---- - -## 正文測試(字體) - -返扇花週認契適違込遷雇述請曜藤突扉直角 diff --git a/demo/content/post/chinese-test/index.zh.md b/demo/content/post/chinese-test/index.zh.md deleted file mode 100644 index c319b58..0000000 --- a/demo/content/post/chinese-test/index.zh.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Chinese Test -description: 这是一个副标题 -date: 2020-09-09 -slug: test-chinese -image: helena-hertz-wWZzXlDpMog-unsplash.jpg -categories: - - Test - - 测试 ---- - -## 正文测试 - -而这些并不是完全重要,更加重要的问题是, 带着这些问题,我们来审视一下学生会退会。 既然如何, 对我个人而言,学生会退会不仅仅是一个重大的事件,还可能会改变我的人生。 我们不得不面对一个非常尴尬的事实,那就是, 可是,即使是这样,学生会退会的出现仍然代表了一定的意义。 学生会退会,发生了会如何,不发生又会如何。 经过上述讨论, 生活中,若学生会退会出现了,我们就不得不考虑它出现了的事实。 学生会退会,到底应该如何实现。 这样看来, 在这种困难的抉择下,本人思来想去,寝食难安。 对我个人而言,学生会退会不仅仅是一个重大的事件,还可能会改变我的人生。 就我个人来说,学生会退会对我的意义,不能不说非常重大。 莎士比亚曾经提到过,人的一生是短的,但如果卑劣地过这一生,就太长了。这似乎解答了我的疑惑。 莫扎特说过一句富有哲理的话,谁和我一样用功,谁就会和我一样成功。这启发了我, 对我个人而言,学生会退会不仅仅是一个重大的事件,还可能会改变我的人生。 学生会退会,到底应该如何实现。 一般来说, 从这个角度来看, 这种事实对本人来说意义重大,相信对这个世界也是有一定意义的。 在这种困难的抉择下,本人思来想去,寝食难安。 了解清楚学生会退会到底是一种怎么样的存在,是解决一切问题的关键。 一般来说, 生活中,若学生会退会出现了,我们就不得不考虑它出现了的事实。 问题的关键究竟为何? 而这些并不是完全重要,更加重要的问题是。 - -奥斯特洛夫斯基曾经说过,共同的事业,共同的斗争,可以使人们产生忍受一切的力量。 带着这句话,我们还要更加慎重的审视这个问题: 一般来讲,我们都必须务必慎重的考虑考虑。 既然如此, 这种事实对本人来说意义重大,相信对这个世界也是有一定意义的。 带着这些问题,我们来审视一下学生会退会。 我认为, 我认为, 在这种困难的抉择下,本人思来想去,寝食难安。 问题的关键究竟为何? 每个人都不得不面对这些问题。 在面对这种问题时, 要想清楚,学生会退会,到底是一种怎么样的存在。 我认为, 既然如此, 每个人都不得不面对这些问题。 在面对这种问题时, 那么, 我认为, 学生会退会因何而发生。 - -## 引用 - -> 思念是最暖的忧伤像一双翅膀 -> 让我停不了飞不远在过往游荡 -> 不告而别的你 就算为了我着想 -> 这么沉痛的呵护 我怎么能翱翔 -> -> *[最暖的憂傷 - 田馥甄](https://www.youtube.com/watch?v=3aypp_YlBzI)* - -## 图片 - -![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg) - -![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg) - -```markdown -![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg) - -![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg) -``` - -相册语法来自 [Typlog](https://typlog.com/) - -## 字体 - -返扇花週認契適違込遷雇述請曜藤突扉直角 diff --git a/demo/content/post/emoji-support/index.md b/demo/content/post/emoji-support/index.md deleted file mode 100644 index 824cec5..0000000 --- a/demo/content/post/emoji-support/index.md +++ /dev/null @@ -1,50 +0,0 @@ -+++ -author = "Hugo Authors" -title = "Emoji Support" -date = "2019-03-05" -description = "Guide to emoji usage in Hugo" -categories = [ - "Test" -] -tags = [ - "emoji", -] -image = "the-creative-exchange-d2zvqp3fpro-unsplash.jpg" -+++ - -Emoji can be enabled in a Hugo project in a number of ways. - -The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). - -To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. - -

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

-
- -The [Emoji cheat sheet](https://www.webfx.com/tools/emoji-cheat-sheet/) is a useful reference for emoji shorthand codes. - -*** - -**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. - -{{< highlight html >}} -.emoji { - font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; -} -{{< /highlight >}} - -{{< css.inline >}} - -{{< /css.inline >}} diff --git a/demo/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg b/demo/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg deleted file mode 100644 index e34a59d..0000000 Binary files a/demo/content/post/emoji-support/the-creative-exchange-d2zvqp3fpro-unsplash.jpg and /dev/null differ diff --git a/demo/content/post/math-typesetting/index.md b/demo/content/post/math-typesetting/index.md deleted file mode 100644 index 060fd7f..0000000 --- a/demo/content/post/math-typesetting/index.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -author: Hugo Authors -title: Math Typesetting -date: 2019-03-08 -description: A brief guide to setup KaTeX -math: true ---- - -Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. - - -In this example we will be using [KaTeX](https://katex.org/) - -- Create a partial under `/layouts/partials/math.html` -- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. -- Include the partial in your templates like so: - -```bash -{{ if or .Params.math .Site.Params.math }} -{{ partial "math.html" . }} -{{ end }} -``` - -- To enable KaTeX globally set the parameter `math` to `true` in a project's configuration -- To enable KaTeX on a per page basis include the parameter `math: true` in content files - -**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) - -{{< math.inline >}} -{{ if or .Page.Params.math .Site.Params.math }} - - - - -{{ end }} -{{}} - -### Examples - -Inline math: $\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$ - -Block math: -$$ - \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } -$$ diff --git a/demo/content/post/placeholder-text/index.ar.md b/demo/content/post/placeholder-text/index.ar.md deleted file mode 100644 index b0328f4..0000000 --- a/demo/content/post/placeholder-text/index.ar.md +++ /dev/null @@ -1,32 +0,0 @@ -+++ -author = "Hugo Authors" -title = "مثال نص" -date = "2019-03-09" -description = "هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة" -categories = [ - "تجربة", - "تجربة مع فراغات" -] -tags = [ - "ماركداون", - "نص", - "وسم مع فراغات" -] -image = "matt-le-SJSpo9hQf7s-unsplash.jpg" -+++ -## فقرة 1 - -هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من [مولد النص العربى](https://colorslab.com/textgator/)، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق. -إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع على صورة حقيقية لتصميم الموقع. -ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق. -هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً. - -## فقرة 2 - -هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة، لقد تم توليد هذا النص من [مولد النص العربى](https://colorslab.com/textgator/)، حيث يمكنك أن تولد مثل هذا النص أو العديد من النصوص الأخرى إضافة إلى زيادة عدد الحروف التى يولدها التطبيق. -إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد، النص لن يبدو مقسما ولا يحوي أخطاء لغوية، مولد النص العربى مفيد لمصممي المواقع على وجه الخصوص، حيث يحتاج العميل فى كثير من الأحيان أن يطلع على صورة حقيقية لتصميم الموقع. -ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميل الشكل كاملاً،دور مولد النص العربى أن يوفر على المصمم عناء البحث عن نص بديل لا علاقة له بالموضوع الذى يتحدث عنه التصميم فيظهر بشكل لا يليق. -هذا النص يمكن أن يتم تركيبه على أي تصميم دون مشكلة فلن يبدو وكأنه نص منسوخ، غير منظم، غير منسق، أو حتى غير مفهوم. لأنه مازال نصاً بديلاً ومؤقتاً. - -## تجربة RTL -كلمة 1 Text كلمة 2 diff --git a/demo/content/post/placeholder-text/index.md b/demo/content/post/placeholder-text/index.md deleted file mode 100644 index 280197e..0000000 --- a/demo/content/post/placeholder-text/index.md +++ /dev/null @@ -1,51 +0,0 @@ -+++ -author = "Hugo Authors" -title = "Placeholder Text" -date = "2019-03-09" -description = "Lorem Ipsum Dolor Si Amet" -categories = [ - "Test", - "Test with whitespaces" -] -tags = [ - "markdown", - "text", - "tag with whitespaces" -] -image = "matt-le-SJSpo9hQf7s-unsplash.jpg" -+++ - -Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. - -1. Exierant elisi ambit vivere dedere -2. Duce pollice -3. Eris modo -4. Spargitque ferrea quos palude - -Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. - -1. Comas hunc haec pietate fetum procerum dixit -2. Post torum vates letum Tiresia -3. Flumen querellas -4. Arcanaque montibus omnes -5. Quidem et - -# Vagus elidunt - - - -[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) - -## Mane refeci capiebant unda mulcebat - -Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. - -Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. - -Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. - -{{< css.inline >}} - -{{< /css.inline >}} diff --git a/demo/content/post/placeholder-text/matt-le-SJSpo9hQf7s-unsplash.jpg b/demo/content/post/placeholder-text/matt-le-SJSpo9hQf7s-unsplash.jpg deleted file mode 100644 index 3b28790..0000000 Binary files a/demo/content/post/placeholder-text/matt-le-SJSpo9hQf7s-unsplash.jpg and /dev/null differ diff --git a/demo/content/post/rich-content/index.md b/demo/content/post/rich-content/index.md deleted file mode 100644 index db37334..0000000 --- a/demo/content/post/rich-content/index.md +++ /dev/null @@ -1,63 +0,0 @@ -+++ -author = "Hugo Authors" -title = "Rich Content" -date = "2019-03-10" -description = "A brief description of Hugo Shortcodes" -tags = [ - "shortcodes", - "privacy", -] -+++ - -Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. - ---- - -## YouTube Privacy Enhanced Shortcode - -{{< youtube ZJthWmvUzzc >}} - -
- ---- - -## X Simple Shortcode - -{{< x user="DesignReviewed" id="1085870671291310081" >}} - -
- ---- - -## Vimeo Simple Shortcode - -{{< vimeo_simple 48912912 >}} - -## bilibilibi Shortcode - -{{< bilibili av498363026 >}} - -## Gitlab Snippets Shortcode - -{{< gitlab 2349278 >}} - -## Quote Shortcode - -Stack adds a `quote` shortcode. For example: - -{{< quote author="A famous person" source="The book they wrote" url="https://en.wikipedia.org/wiki/Book">}} -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -{{< /quote >}} - -{{< quote source="Anonymous book" url="https://en.wikipedia.org/wiki/Book">}} -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -{{< /quote >}} - -{{< quote source="Some book">}} -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -{{< /quote >}} - -{{< quote author="Somebody">}} -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -{{< /quote >}} - diff --git a/demo/content/post/shortcodes/index.ja.md b/demo/content/post/shortcodes/index.ja.md new file mode 100644 index 0000000..7ff93cb --- /dev/null +++ b/demo/content/post/shortcodes/index.ja.md @@ -0,0 +1,119 @@ +--- +title: ショートコード +date: 2026-01-26 +description: Stack テーマでサポートされているさまざまなショートコードを紹介します。 +categories: + - Documentation +tags: + - 隐私 +--- + +Stack テーマには、コンテンツを強化するためのカスタムショートコードがいくつか用意されています。 + + + +## 引用 (Quote) + +`quote` ショートコードを使用すると、著者、出典、URL を含む引用を表示できます。 + +{{< quote author="有名な人" source="彼らが書いた本" url="https://ja.wikipedia.org/wiki/Book">}} +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +{{< /quote >}} + +### 使い方 + +```markdown +{{}} +ここに引用内容を入力します。 +{{}} +``` + + +## ビデオ (Video) + +`video` ショートコードを使用すると、セルフホストまたはリモートのビデオファイルを埋め込むことができます。 + +{{< video src="https://www.w3schools.com/html/mov_bbb.mp4" >}} + +### 使い方 + +```markdown +{{}} +``` + + +## Bilibili + +Bilibili からビデオを埋め込みます。`av` および `bv` ID の両方をサポートしています。 + +{{< bilibili "BV1634y1t7xR" >}} + +### 使い方 + +```markdown +{{}} +``` + + +## YouTube + +Hugo 内蔵の YouTube ショートコードです。 + +{{< youtube ZJthWmvUzzc >}} + +### 使い方 + +```markdown +{{}} +``` + + +## 騰訊視頻 (Tencent Video) + +Tencent Video からビデオを埋め込みます。 + +{{< tencent "u00306ng962" >}} + +### 使い方 + +```markdown +{{}} +``` + + +## GitLab Snippet + +GitLab からスニペットを埋め込みます。 + +{{< gitlab 2349278 >}} + +### 使い方 + +```markdown +{{}} +``` + + +## 図表 (Diagrams) + +Stack は [Mermaid](https://mermaid.js.org/) 図表を標準でサポートしています。 + +```mermaid +graph TD; + A-->B; + A-->C; + B-->D; + C-->D; +``` + +### 使い方 + +Mermaid コードを、言語を `mermaid` に設定したコードブロックで囲みます。 + +
```mermaid
+graph TD;
+    A-->B;
+    A-->C;
+    B-->D;
+    C-->D;
+```
diff --git a/demo/content/post/shortcodes/index.md b/demo/content/post/shortcodes/index.md new file mode 100644 index 0000000..7d8ec3a --- /dev/null +++ b/demo/content/post/shortcodes/index.md @@ -0,0 +1,116 @@ +--- +title: Shortcodes +date: 2026-01-26 +description: Sample article showcasing various shortcodes supported by Stack theme. +categories: + - Documentation +tags: + - shortcodes + - privacy +--- + +Stack theme also provides some custom shortcodes to enhance your content. + + + +## Quote + +The `quote` shortcode allows you to display a quote with an author, source, and URL. + +{{< quote author="A famous person" source="The book they wrote" url="https://en.wikipedia.org/wiki/Book">}} +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +{{< /quote >}} + +### Usage + +```markdown +{{}} +Quote content here. +{{}} +``` + +## Video + +The `video` shortcode allows you to embed self-hosted or remote video files. + +{{< video src="https://www.w3schools.com/html/mov_bbb.mp4" >}} + +### Usage + +```markdown +{{}} +``` + +## Bilibili + +Embed videos from Bilibili. Supports both `av` and `bv` IDs. + +{{< bilibili "BV1634y1t7xR" >}} + +### Usage + +```markdown +{{}} +``` + +## YouTube + +Hugo's built-in YouTube shortcode. + +{{< youtube ZJthWmvUzzc >}} + +### Usage + +```markdown +{{}} +``` + +## Tencent Video + +Embed videos from Tencent Video. + +{{< tencent "u00306ng962" >}} + +### Usage + +```markdown +{{}} +``` + +## GitLab Snippet + +Embed snippets from GitLab. + +{{< gitlab 2349278 >}} + +### Usage + +```markdown +{{}} +``` + +## Diagrams + +Stack supports [Mermaid](https://mermaid.js.org/) diagrams out of the box. + +```mermaid +graph TD; + A-->B; + A-->C; + B-->D; + C-->D; +``` + +### Usage + +Wrap your Mermaid code in a code block with the language set to `mermaid`. + +
```mermaid
+graph TD;
+    A-->B;
+    A-->C;
+    B-->D;
+    C-->D;
+```
+ + diff --git a/demo/content/post/shortcodes/index.zh-hant-tw.md b/demo/content/post/shortcodes/index.zh-hant-tw.md new file mode 100644 index 0000000..d9b7c00 --- /dev/null +++ b/demo/content/post/shortcodes/index.zh-hant-tw.md @@ -0,0 +1,116 @@ +--- +title: 短代碼 +date: 2026-01-26 +description: 展示 Stack 主題支持的各種短代碼。 +categories: + - Documentation +tags: + - 隐私 +--- + +Stack 主題還提供了一些自定義短代碼來增強你的內容。 + + + +## 引用 (Quote) + +`quote` 短代碼允許你顯示帶有作者、來源和 URL 的引用。 + +{{< quote author="一位名人" source="他們寫的書" url="https://zh.wikipedia.org/wiki/Book">}} +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +{{< /quote >}} + +### 用法 + +```markdown +{{}} +這裡是引用內容。 +{{}} +``` + +## 視頻 (Video) + +`video` 短代碼允許你嵌入自託管或遠程視頻文件。 + +{{< video src="https://www.w3schools.com/html/mov_bbb.mp4" >}} + +### 用法 + +```markdown +{{}} +``` + +## Bilibili + +嵌入來自 Bilibili 的視頻。支持 `av` 和 `bv` 號。 + +{{< bilibili "BV1634y1t7xR" >}} + +### 用法 + +```markdown +{{}} +``` + +## YouTube + +Hugo 內置的 YouTube 短代碼。 + +{{< youtube ZJthWmvUzzc >}} + +### 用法 + +```markdown +{{}} +``` + + +## 騰訊視頻 (Tencent Video) + +嵌入來自騰訊視頻的視頻。 + +{{< tencent "u00306ng962" >}} + +### 用法 + +```markdown +{{}} +``` + + +## GitLab Snippet + +嵌入來自 GitLab 的代碼片段。 + +{{< gitlab 2349278 >}} + +### 用法 + +```markdown +{{}} +``` + + +## 圖表 (Diagrams) + +Stack 出箱即用地支持 [Mermaid](https://mermaid.js.org/) 圖表。 + +```mermaid +graph TD; + A-->B; + A-->C; + B-->D; + C-->D; +``` + +### 用法 + +將你的 Mermaid 代碼包裹在語言設置為 `mermaid` 的代碼塊中。 + +
```mermaid
+graph TD;
+    A-->B;
+    A-->C;
+    B-->D;
+    C-->D;
+```
diff --git a/demo/content/post/shortcodes/index.zh.md b/demo/content/post/shortcodes/index.zh.md new file mode 100644 index 0000000..8bade26 --- /dev/null +++ b/demo/content/post/shortcodes/index.zh.md @@ -0,0 +1,113 @@ +--- +title: 短代码 +date: 2026-01-26 +description: 展示 Stack 主题支持的各种短代码。 +categories: + - Documentation +tags: + - 隐私 +--- + +Stack 主题还提供了一些自定义短代码来增强你的内容。 + + + +## 引用 (Quote) + +`quote` 短代码允许你显示带有作者、来源和 URL 的引用。 + +{{< quote author="一位名人" source="他们写的书" url="https://zh.wikipedia.org/wiki/Book">}} +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. +{{< /quote >}} + +### 用法 + +```markdown +{{}} +这里是引用内容。 +{{}} +``` + +## 视频 (Video) + +`video` 短代码允许你嵌入自托管或远程视频文件。 + +{{< video src="https://www.w3schools.com/html/mov_bbb.mp4" >}} + +### 用法 + +```markdown +{{}} +``` + +## Bilibili + +嵌入来自 Bilibili 的视频。支持 `av` 和 `bv` 号。 + +{{< bilibili "BV1634y1t7xR" >}} + +### 用法 + +```markdown +{{}} +``` + +## YouTube + +Hugo 内置的 YouTube 短代码。 + +{{< youtube ZJthWmvUzzc >}} + +### 用法 + +```markdown +{{}} +``` + +## 腾讯视频 (Tencent Video) + +嵌入来自腾讯视频的视频。 + +{{< tencent "u00306ng962" >}} + +### 用法 + +```markdown +{{}} +``` + +## GitLab Snippet + +嵌入来自 GitLab 的代码片段。 + +{{< gitlab 2349278 >}} + +### 用法 + +```markdown +{{}} +``` + +## 图表 (Diagrams) + +Stack 出箱即用地支持 [Mermaid](https://mermaid.js.org/) 图表。 + +```mermaid +graph TD; + A-->B; + A-->C; + B-->D; + C-->D; +``` + +### 用法 + +将你的 Mermaid 代码包裹在语言设置为 `mermaid` 的代码块中。 + +
```mermaid
+graph TD;
+    A-->B;
+    A-->C;
+    B-->D;
+    C-->D;
+```