Skip to content

Commit

Permalink
Fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
JingHai-Lingyun committed Aug 19, 2024
1 parent fd63b13 commit 95b0182
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2_opt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "优化"
name: "优化建议"
description: "改进现有功能"
labels: ["a:建议"]
body:
Expand Down
12 changes: 10 additions & 2 deletions .github/ISSUE_TEMPLATE/4_new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,29 @@ 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: |
"你至少需要提供 XAML 文件的部署地址"
"除此之外,你还可以提供 Git 仓库,Bug 反馈和直接加载主页(JSON 文件部署地址)"
validations:
required: true
- type: textarea
id: "desp"
attributes:
label: 简介
description: "你主页的简介"
placeholder: "如果还没想好可以空着不写,到时候来补充"
validations:
required: false
- type: textarea
id: "files"
attributes:
Expand Down
3 changes: 2 additions & 1 deletion Custom.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@
<FlowDocumentScrollViewer Margin="0,-5,0,0">
<FlowDocument>
<Paragraph Style="{StaticResource H1}">SoftOSDev 的主页</Paragraph>
<local:MyHint IsWarn="False" Text="这个主页很神奇,什么描述也没有……" />
<Paragraph><local:MyHint IsWarn="False" Text="这个主页很神奇,什么描述也没有……" /></Paragraph>

</FlowDocument>
</FlowDocumentScrollViewer>
<Grid>
Expand Down
4 changes: 1 addition & 3 deletions core/Generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95b0182

Please sign in to comment.