From 95b0182983d7aab844fef51cdd02affa84de07e5 Mon Sep 17 00:00:00 2001 From: JingHai-Lingyun Date: Tue, 20 Aug 2024 04:22:34 +0800 Subject: [PATCH] Fix #5 --- .github/ISSUE_TEMPLATE/2_opt.yml | 2 +- .github/ISSUE_TEMPLATE/4_new.yml | 12 ++++++++++-- Custom.xaml | 3 ++- core/Generator.js | 4 +--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/2_opt.yml b/.github/ISSUE_TEMPLATE/2_opt.yml index 5d8aab2..72191f2 100644 --- a/.github/ISSUE_TEMPLATE/2_opt.yml +++ b/.github/ISSUE_TEMPLATE/2_opt.yml @@ -1,4 +1,4 @@ -name: "优化" +name: "优化建议" description: "改进现有功能" labels: ["a:建议"] body: diff --git a/.github/ISSUE_TEMPLATE/4_new.yml b/.github/ISSUE_TEMPLATE/4_new.yml index 1b93f6a..ed99db0 100644 --- a/.github/ISSUE_TEMPLATE/4_new.yml +++ b/.github/ISSUE_TEMPLATE/4_new.yml @@ -3,14 +3,14 @@ description: "投稿自己的主页" labels: ["a:新主页"] body: - type: textarea - id: "disc" + id: "name" attributes: label: 主页名称 description: "你主页的名字" validations: required: true - type: textarea - id: "disc" + id: "uri" attributes: label: 主页地址 description: | @@ -18,6 +18,14 @@ body: "除此之外,你还可以提供 Git 仓库,Bug 反馈和直接加载主页(JSON 文件部署地址)" validations: required: true + - type: textarea + id: "desp" + attributes: + label: 简介 + description: "你主页的简介" + placeholder: "如果还没想好可以空着不写,到时候来补充" + validations: + required: false - type: textarea id: "files" attributes: diff --git a/Custom.xaml b/Custom.xaml index 12051d0..c8245ec 100644 --- a/Custom.xaml +++ b/Custom.xaml @@ -506,7 +506,8 @@ SoftOSDev 的主页 - + + diff --git a/core/Generator.js b/core/Generator.js index 05bb4ef..22dfb80 100644 --- a/core/Generator.js +++ b/core/Generator.js @@ -84,12 +84,10 @@ export class Generator { case "H6": template = this.xaml_template.markdown.H6; break; + case "XAML": case "Text": template = this.xaml_template.markdown.Text; break; - case "XAML": - template = "%s"; - break; case "Icons": template = this.xaml_template.styles.Icons; break;