From 8025de9d9df30d440ea7344af93ed049265084d5 Mon Sep 17 00:00:00 2001 From: Xin <5097752+imfing@users.noreply.github.com> Date: Thu, 14 Aug 2025 00:14:53 +0800 Subject: [PATCH] docs(getting-started): fix instructions for using git submodule (#693) * docs(getting-started): fix instructions for using git submodule * docs(getting-started): update instructions for adding Hextra theme as a Git submodule --- exampleSite/content/docs/getting-started.fa.md | 11 ++++++++++- exampleSite/content/docs/getting-started.ja.md | 9 +++++++++ exampleSite/content/docs/getting-started.md | 9 +++++++++ exampleSite/content/docs/getting-started.zh-cn.md | 9 +++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/docs/getting-started.fa.md b/exampleSite/content/docs/getting-started.fa.md index a4dad01..40f6ad4 100644 --- a/exampleSite/content/docs/getting-started.fa.md +++ b/exampleSite/content/docs/getting-started.fa.md @@ -123,7 +123,16 @@ hugo mod get -u github.com/imfing/hextra hugo new site my-site --format=yaml ``` -### افزودن تم هگزترا به عنوان یک ساب‌ماژول Git +### افزودن تم هگسترا به عنوان یک ساب‌ماژول Git + +به دایرکتوری سایت بروید و یک مخزن Git جدید را مقداردهی اولیه کنید: + +```shell +cd my-site +git init +``` + +سپس، تم هگسترا را به عنوان یک ساب‌ماژول Git اضافه کنید: ```shell git submodule add https://github.com/imfing/hextra.git themes/hextra diff --git a/exampleSite/content/docs/getting-started.ja.md b/exampleSite/content/docs/getting-started.ja.md index 54f6db0..7bc240d 100644 --- a/exampleSite/content/docs/getting-started.ja.md +++ b/exampleSite/content/docs/getting-started.ja.md @@ -127,6 +127,15 @@ hugo new site my-site --format=yaml ### HextraテーマをGitサブモジュールとして追加 +サイトディレクトリに移動し、新しいGitリポジトリを初期化します: + +```shell +cd my-site +git init +``` + +次に、HextraテーマをGitサブモジュールとして追加します: + ```shell git submodule add https://github.com/imfing/hextra.git themes/hextra ``` diff --git a/exampleSite/content/docs/getting-started.md b/exampleSite/content/docs/getting-started.md index 22842fe..5d4e76e 100644 --- a/exampleSite/content/docs/getting-started.md +++ b/exampleSite/content/docs/getting-started.md @@ -127,6 +127,15 @@ hugo new site my-site --format=yaml ### Add Hextra theme as a Git submodule +Switch to the site directory and initialize a new Git repository: + +```shell +cd my-site +git init +``` + +Then, add Hextra theme as a Git submodule: + ```shell git submodule add https://github.com/imfing/hextra.git themes/hextra ``` diff --git a/exampleSite/content/docs/getting-started.zh-cn.md b/exampleSite/content/docs/getting-started.zh-cn.md index 205f4d9..aac0ab4 100644 --- a/exampleSite/content/docs/getting-started.zh-cn.md +++ b/exampleSite/content/docs/getting-started.zh-cn.md @@ -127,6 +127,15 @@ hugo new site my-site --format=yaml ### 将 Hextra 主题添加为 Git 子模块 +切换到站点目录并初始化新的 Git 仓库: + +```shell +cd my-site +git init +``` + +然后,将 Hextra 主题添加为 Git 子模块: + ```shell git submodule add https://github.com/imfing/hextra.git themes/hextra ```