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 テーマには、写真ギャラリー機能が内蔵されています。複数の画像を並べて配置するだけで、美しいギャラリーを作成できます。 + +## ギャラリーの例 + +  + +  + +## 仕組み + +ギャラリーは **Photoswipe** と独自の内部スクリプトによって動作します。画像の縦横比に基づいて、最適なレイアウトが自動的に計算されます。 + +ギャラリーを作成するには、同じ行(または同じ段落)に複数の画像を配置するだけです。 + +### 構文 + +```markdown +  + +  +``` + +> **注意**: 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 + +  + +  + +## 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 +  + +  +``` + +> **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 主題內置了對相簿的支持。你只需要簡單地將多張圖片並排放置,就可以創建一個精美的相簿。 + +## 示例相簿 + +  + +  + +## 它是如何工作的 + +相簿由 **Photoswipe** 和一個自定義的內部腳本驅動。它會根據圖片的寬高比自動計算出最佳佈局。 + +要創建一個相簿,你只需要將多張圖片放在同一行(或同一個段落)中。 + +### 語法 + +```markdown +  + +  +``` + +> **注意**: 圖片之間應該有兩個空格,以確保它們在 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 主题内置了对相册的支持。你只需要简单地将多张图片并排放置,就可以创建一个精美的相册。 + +## 示例相册 + +  + +  + +## 它是如何工作的 + +相册由 **Photoswipe** 和一个自定义的内部脚本驱动。它会根据图片的宽高比自动计算出最佳布局。 + +要创建一个相册,你只需要将多张图片放在同一行(或同一个段落)中。 + +### 语法 + +```markdown +  + +  +``` + +> **注意**: 图片之间应该有两个空格,以确保它们在 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 `