diff --git a/docs/content/getting-started/create-site/index.md b/docs/content/getting-started/create-site/index.md index 430295a..471c924 100644 --- a/docs/content/getting-started/create-site/index.md +++ b/docs/content/getting-started/create-site/index.md @@ -1,5 +1,6 @@ --- title: 创建网站 +icon: folder-plus --- 安装 PageForge 后,你可以使用它来创建你的网站。您需要跳转到需要创建网站的文件夹,该文件夹必须是一个空文件夹。然后,您可以使用 PageForge 的命令行工具来创建网站。 diff --git a/docs/content/getting-started/customization.md b/docs/content/getting-started/customization.md index be54d9f..2714a9a 100644 --- a/docs/content/getting-started/customization.md +++ b/docs/content/getting-started/customization.md @@ -1,5 +1,6 @@ --- title: 自定义网站 +icon: dessert --- PageForge 提供了一些可选的自定义选项,以满足不同的需求。 diff --git a/docs/content/getting-started/get-started.md b/docs/content/getting-started/get-started.md index 9c94a07..942cc94 100644 --- a/docs/content/getting-started/get-started.md +++ b/docs/content/getting-started/get-started.md @@ -1,5 +1,6 @@ --- title: 快速上手 +icon: crosshair --- PageForge 是一款现代化的静态页面生成与部署平台,旨在帮助用户快速创建精美的静态网站,并一键部署到 GitHub Pages。 无论是个人博客、项目文档还是企业官网,PageForge 都能让你轻松实现高效构建、智能部署和即时上线。 diff --git a/docs/content/getting-started/publish-site.md b/docs/content/getting-started/publish-site.md index ed3e051..471fe07 100644 --- a/docs/content/getting-started/publish-site.md +++ b/docs/content/getting-started/publish-site.md @@ -1,5 +1,6 @@ --- title: 发布网站 +icon: upload --- 在 git 存储库中托管项目文档的好处是能够在推送新更改时自动部署它。PageForge 将帮助您让这一切变得非常简单。 diff --git a/templates/components/span-code.js b/templates/components/span-code.js index 3f87272..82f8a80 100644 --- a/templates/components/span-code.js +++ b/templates/components/span-code.js @@ -1,5 +1,5 @@ module.exports = function template(item) { return ` - ${item.text} + ${item.text} `; }; \ No newline at end of file diff --git a/templates/components/tabs.js b/templates/components/tabs.js index 60fdeaf..048ebc4 100644 --- a/templates/components/tabs.js +++ b/templates/components/tabs.js @@ -4,28 +4,24 @@ module.exports = function tabs({tabs}) { // 生成 tab 按钮 HTML const tabButtons = tabs.map((tab, index) => ` - `).join(''); // 生成 tab 内容 HTML const tabPanels = tabs.map((tab, index) => ` -
+ id="${tabGroupId}-panel-${index}"> ${tab.content}
`).join(''); diff --git a/templates/includes/footer.ejs b/templates/includes/footer.ejs index 2e13030..cb45ed1 100644 --- a/templates/includes/footer.ejs +++ b/templates/includes/footer.ejs @@ -1,33 +1,43 @@