diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index bd56382..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: BUG 提交 -description: 提交 Bug 反馈 -title: 'bug:' -labels: [bug] -body: - - type: markdown - id: preface - attributes: - value: | - 感谢你花时间填写此错误报告!在开始之前,我们非常推荐阅读一遍[《开源最佳实践》](https://github.com/LinuxSuRen/open-source-best-practice),这会在很大程度上提高我们彼此的效率。 - - type: markdown - id: environment - attributes: - value: "## 环境信息" - - type: input - id: halo-version - validations: - required: false - attributes: - label: "是什么 Halo 版本出现了此问题?" - description: "可以在管理后台的关于页面中找到。" - - type: input - id: dream-version - validations: - required: false - attributes: - label: "使用的 Dream 版本是多少?" - description: "可以在主题 `theme.yaml` 文件中找到。" - - type: input - id: site-url - attributes: - label: "在线博客地址" - description: "如果可以的话,请提供你的博客地址。这可能会帮助我们更好的定位问题。" - placeholder: "ex. https://blog.nineya.com" - validations: - required: false - - type: markdown - id: details - attributes: - value: "## 详细信息" - - type: textarea - id: what-happened - attributes: - label: "BUG 内容" - description: "较详细的描述 BUG 导致了什么问题。" - validations: - required: true - - type: textarea - id: logs - attributes: - label: "相关 Console 日志输出" - description: "浏览器界面按 `F12` 进入开发者工具,请复制并粘贴任何相关的控制台日志输出。 这将自动格式化为代码,因此无需反引号。" - render: shell - - type: textarea - id: additional-information - attributes: - label: "附加信息" - description: "如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。" diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index e1c0cef..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: true -contact_links: - - name: 加入主题交流群 - url: https://qm.qq.com/cgi-bin/qm/qr?k=X7p7Bs21cgtkQ0dRfzmBsuWqNNQc10hn&jump_from=webapi - about: 如果问题描述起来较于复杂,欢迎加入 Dream 主题交流群进行提问。 diff --git a/.github/ISSUE_TEMPLATE/custom_config.yml b/.github/ISSUE_TEMPLATE/custom_config.yml deleted file mode 100644 index 18beecb..0000000 --- a/.github/ISSUE_TEMPLATE/custom_config.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: 定制化配置 -description: 提交定制化配置疑问 -title: 'custom:' -labels: [custom] -body: - - type: markdown - id: preface - attributes: - value: "你好!感谢你为 Dream 提交定制化配置建议。在开始之前,我们非常推荐阅读一遍[《开源最佳实践》](https://github.com/LinuxSuRen/open-source-best-practice),这会在很大程度上提高我们彼此的效率。" - - type: markdown - id: environment - attributes: - value: "## 环境信息" - - type: input - id: dream-version - validations: - required: false - attributes: - label: "你当前使用的 Dream 版本" - description: "可以在主题 `theme.yaml` 文件中找到。" - - type: markdown - id: details - attributes: - value: "## 详细信息" - - type: textarea - id: description - attributes: - label: "描述一下此定制化内容" - validations: - required: true - - type: textarea - id: additional-information - attributes: - label: "补充信息" - description: "如果你还有其他需要提供的信息或解决思路,可以在这里填写。" diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index 01e469a..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: 新特性建议 -description: 提交新特性建议 -title: 'feat:' -body: - - type: markdown - id: preface - attributes: - value: "你好!感谢你为 Dream 提交新特性建议。在开始之前,我们非常推荐阅读一遍[《开源最佳实践》](https://github.com/LinuxSuRen/open-source-best-practice),这会在很大程度上提高我们彼此的效率。" - - type: markdown - id: environment - attributes: - value: "## 环境信息" - - type: input - id: halo-version - validations: - required: false - attributes: - label: "你当前使用的 Halo 版本" - description: "可以在管理后台的关于页面中找到。" - - type: input - id: dream-version - validations: - required: false - attributes: - label: "你当前使用的 Dream 版本" - description: "可以在主题 `theme.yaml` 文件中找到。" - - type: markdown - id: details - attributes: - value: "## 详细信息" - - type: textarea - id: description - attributes: - label: "描述一下此特性" - validations: - required: true - - type: textarea - id: additional-information - attributes: - label: "附加信息" - description: "如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。" diff --git a/README.md b/README.md index a3dc39d..5996491 100644 --- a/README.md +++ b/README.md @@ -15,30 +15,11 @@ 本仓库为 `Halo 2.x` 主题仓库,如果你使用的是 `Halo 1.x` ,请前往:https://github.com/nineya/halo-theme-dream ## 一、预览 - - - +本人为原作者主题进行二次开发 预览:[主题预览](https://github.com/nineya/halo-theme-dream/discussions/72) -> 如果你有计划长期使用 `Dream` 主题,也来[这里](https://github.com/nineya/halo-theme-dream/discussions/72)留下你的博客链接吧。 - -## 二、说明 - -梦之城,童话梦境,动漫类型博客主题。 - -关于主题使用上的一些问题可以参见 [主题使用手册-基础篇](https://blog.nineya.com/archives/94.html) - -如有疑问,欢迎加入 Dream 主题交流群:638168592 - -欢迎参与主题开发的一些问题探讨 - -欢迎关注微信公众号《玖涯菜菜子》,主题版本更新消息与要点说明将在公众号发布。 - - - - -## 三、版本适配关系 +## 二、版本适配关系 | 主题版本 | 适配Halo版本 | 测试用Halo版本 | | ----------- | --------------------------- | -------------- | @@ -46,9 +27,7 @@ -## 四、安装 & 更新 - - +## 三、安装 & 更新 1. 进入主题 `Release` 界面:https://github.com/nineya/halo-theme-dream2.0/releases 下载主题压缩包 `halo-theme-dream.zip` 压缩包文件; 2. 进入博客后台管理 `主题->主题管理->安装主题`,选择下载的 `halo-theme-dream.zip` 安装包进行上传; @@ -57,7 +36,7 @@ -## 五、参与主题开发 +## 四、主题开发 > 推荐使用 IDEA 进行主题开发,能够比较好的支持 FreeMarker。 @@ -74,11 +53,4 @@ - `npm run build --devel` 开发模式进行主题打包,`js` 和 `css` 不会被做压缩和混淆处理,方便排查问题。 - `npm run release --tag=$version` 发布模式执行主题打包操作,将自动更新主题中的版本号,并使用这个版本标签重新创建 `FreeCDN` 清单文件。 - - - -## 六、打赏项目 - -感谢您对本项目的喜爱,您的打赏是对本项目最好的支持! - - + diff --git a/annotation-setting.yaml b/annotation-setting.yaml index 964dde0..97b4b5e 100644 --- a/annotation-setting.yaml +++ b/annotation-setting.yaml @@ -93,6 +93,12 @@ spec: label: 关闭 - value: "" label: 跟随默认配置 + - $formkit: text + name: link_group_name + label: 链接页指定分组 + value: "" + placeholder: '请输入链接分组' + help: '当模板选择快捷链接时,可填选该项,目前值获取只能在链接分组配置后,去数据库查看。' - $formkit: text name: tips label: 文章提示 diff --git a/settings.yaml b/settings.yaml index 99373d3..eacb2df 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1,7 +1,7 @@ apiVersion: v1alpha1 kind: Setting metadata: - name: theme-dream-setting + name: theme-pika-setting spec: forms: - group: basic_info diff --git a/templates/assets/img/logo.png b/templates/assets/img/logo.png index ada1589..d84e6b8 100644 Binary files a/templates/assets/img/logo.png and b/templates/assets/img/logo.png differ diff --git a/templates/common/layout.html b/templates/common/layout.html index 4953471..aae88f8 100644 --- a/templates/common/layout.html +++ b/templates/common/layout.html @@ -1,19 +1,24 @@ + + column-main123 + common/scripts + + @@ -23,13 +28,17 @@ + + + + diff --git a/templates/main/article.html b/templates/main/article.html index 375f969..49f6083 100644 --- a/templates/main/article.html +++ b/templates/main/article.html @@ -1,7 +1,8 @@ + - + @@ -21,19 +22,22 @@ - + 本文最后更新于 [[${#dates.format(post.status.lastModifyTime,'yyyy-MM-dd')}]],距今已有 [[${updateInterval}]] 天,若文章内容或图片链接失效,请留言反馈。 + [[${post.metadata.annotations.tips}]] + + @@ -53,18 +57,21 @@ + - + + + diff --git a/templates/quick_link.html b/templates/quick_link.html new file mode 100644 index 0000000..f48dd09 --- /dev/null +++ b/templates/quick_link.html @@ -0,0 +1,67 @@ + + + + + + + + + + + [[${post.stats.visit}]] + [[${post.stats.comment}]] + + [[${post.stats.upvote}]] + [[${#strings.length(#strings.trim(post.content.content))}]] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 评论 + + + + + \ No newline at end of file diff --git a/theme.yaml b/theme.yaml index dcef47a..8775479 100644 --- a/theme.yaml +++ b/theme.yaml @@ -2,26 +2,32 @@ apiVersion: theme.halo.run/v1alpha1 kind: Theme metadata: # 主题id,唯一 - name: theme-dream + name: theme-pika spec: # 主题名称 - displayName: Dream + displayName: pika author: # 作者名称 - name: nineya + name: jecyp # 作者网址 - website: https://blog.nineya.com + website: https://www.jecyp.com # 主题描述 - description: '梦之城,童话梦境' + description: '我的世界' # 主题logo地址 - logo: /themes/theme-dream/assets/img/logo.png + logo: /themes/theme-pika/assets/img/logo.png # 主题地址 - website: https://github.com/nineya/halo-theme-dream2.0 + website: https://www.gitea.jecyp.com/nineya/halo-theme-dream2.0 # 主题github开源地址 - repo: https://github.com/nineya/halo-theme-dream2.0.git - settingName: theme-dream-setting - configMapName: theme-dream-configMap + repo: https://www.gitea.jecyp.com/nineya/halo-theme-dream2.0.git + settingName: theme-pika-setting + configMapName: theme-pika-configMap # 版本号 - version: 1.0.4 + version: 0.0.1 # 最低支持的 Halo 版本 - require: ">=2.0.0" \ No newline at end of file + require: ">=2.0.0" + # 独立页面的自定义模板配置 + customTemplates: + page: + - name: 快捷链接 + description: 链接收藏页面 + file: quick_link.html \ No newline at end of file