docs: update file paths for hugo new template system (#821)

This commit is contained in:
Kowyo
2025-09-05 02:17:28 +08:00
committed by GitHub
parent ec97808b69
commit f8eae96c11
4 changed files with 12 additions and 12 deletions

View File

@@ -221,14 +221,14 @@ hugo gen chromastyles --style=github
می‌توانید اسکریپت‌های سفارشی را به انتهای head برای هر صفحه با افزودن فایل زیر اضافه کنید: می‌توانید اسکریپت‌های سفارشی را به انتهای head برای هر صفحه با افزودن فایل زیر اضافه کنید:
``` ```
layouts/partials/custom/head-end.html layouts/_partials/custom/head-end.html
``` ```
## بخش اضافی سفارشی در پاورقی ## بخش اضافی سفارشی در پاورقی
می‌توانید بخش اضافی در پاورقی با ایجاد یک فایل `layouts/partials/custom/footer.html` در سایت خود اضافه کنید. می‌توانید بخش اضافی در پاورقی با ایجاد یک فایل `layouts/_partials/custom/footer.html` در سایت خود اضافه کنید.
```html {filename="layouts/partials/custom/footer.html"} ```html {filename="layouts/_partials/custom/footer.html"}
<!-- عنصر پاورقی شما اینجا --> <!-- عنصر پاورقی شما اینجا -->
``` ```

View File

@@ -221,14 +221,14 @@ hugo gen chromastyles --style=github
すべてのページのheadの終わりにカスタムスクリプトを追加するには、以下のファイルを作成します: すべてのページのheadの終わりにカスタムスクリプトを追加するには、以下のファイルを作成します:
``` ```
layouts/partials/custom/head-end.html layouts/_partials/custom/head-end.html
``` ```
## フッターへのカスタムセクション追加 ## フッターへのカスタムセクション追加
フッターに追加セクションを追加するには、サイト内に`layouts/partials/custom/footer.html`ファイルを作成します。 フッターに追加セクションを追加するには、サイト内に`layouts/_partials/custom/footer.html`ファイルを作成します。
```html {filename="layouts/partials/custom/footer.html"} ```html {filename="layouts/_partials/custom/footer.html"}
<!-- ここにフッター要素を追加 --> <!-- ここにフッター要素を追加 -->
``` ```

View File

@@ -221,14 +221,14 @@ To override the default syntax highlighting theme, we can add the generated styl
You may add custom scripts to the end of the head for every page by adding the following file: You may add custom scripts to the end of the head for every page by adding the following file:
``` ```
layouts/partials/custom/head-end.html layouts/_partials/custom/head-end.html
``` ```
## Custom Extra Section in Footer ## Custom Extra Section in Footer
You can add extra section in the footer by creating a file `layouts/partials/custom/footer.html` in your site. You can add extra section in the footer by creating a file `layouts/_partials/custom/footer.html` in your site.
```html {filename="layouts/partials/custom/footer.html"} ```html {filename="layouts/_partials/custom/footer.html"}
<!-- Your footer element here --> <!-- Your footer element here -->
``` ```

View File

@@ -221,14 +221,14 @@ hugo gen chromastyles --style=github
您可以通过添加以下文件在每个页面的 head 末尾添加自定义脚本: 您可以通过添加以下文件在每个页面的 head 末尾添加自定义脚本:
``` ```
layouts/partials/custom/head-end.html layouts/_partials/custom/head-end.html
``` ```
## 自定义页脚额外部分 ## 自定义页脚额外部分
您可以通过在站点中创建 `layouts/partials/custom/footer.html` 文件来添加页脚的额外部分。 您可以通过在站点中创建 `layouts/_partials/custom/footer.html` 文件来添加页脚的额外部分。
```html {filename="layouts/partials/custom/footer.html"} ```html {filename="layouts/_partials/custom/footer.html"}
<!-- 您的页脚元素放在这里 --> <!-- 您的页脚元素放在这里 -->
``` ```