修复url渲染逻辑

This commit is contained in:
zqlit committed 2026-05-19 09:53:08 +08:00
1 parent 0d28452d0f
commit 35f3105ae1
28 files changed
+34 -2

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
{
"permissions": {
"allow": [
"Bash(ls -la \"E:/GitHub/Another-Blog/themes/Amigo/layouts/shortcodes/\")",
"Read(//e/GitHub/Another-Blog/themes/Amigo/layouts/shortcodes/**)",
"Bash(ls -la \"E:/GitHub/Another-Blog/themes/Amigo/layouts/_default/\")",
"Read(//e/GitHub/Another-Blog/themes/Amigo/layouts/_default/**)",
"Read(//e/GitHub/Another-Blog/content/posts/2026/202604300004/**)",
"Read(//e/GitHub/Another-Blog/content/posts/2026/202604300005/**)",
"Read(//e/GitHub/Another-Blog/content/posts/2026/202605032154/**)",
"Read(//e/GitHub/Another-Blog/content/posts/2026/202605091907/**)",
"Read(//e/GitHub/Another-Blog/content/posts/2026/202605091914/**)",
"Read(//e/GitHub/Another-Blog/content/posts/2026/202605091921/**)",
"Read(//e/GitHub/Another-Blog/content/posts/2026/202604300006/**)",
"Bash(cmd //c \"taskkill /F /PID 40384\")"
],
"additionalDirectories": [
"E:\\GitHub\\Another-Blog"
]
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"permissions": {
"allow": [
"Bash(awk '{print $5}')"
]
}
}
+2
View File
@@ -39,3 +39,5 @@ static/pics/hugo/湖北三资运维问题记录
node_modules/
.env
.env.*
.elog.env
+2 -2
View File
@@ -38,9 +38,9 @@ if (-not [string]::IsNullOrWhiteSpace($tagsInput)) {
}
# 5. 获取作者
$author = Read-Host "请输入作者 (选填,默认为 '小赵同学')"
$author = Read-Host "请输入作者 (选填,默认为 '小赵')"
if ([string]::IsNullOrWhiteSpace($author)) {
$author = "小赵同学"
$author = "小赵"
}
# 6. 生成文件夹和文件名 (Page Bundles 模式: YYYY/YYYY-MM-DD-Slug/index.md)
+2
View File
@@ -40,6 +40,8 @@
<link rel="alternate" type="application/rss+xml" title="{{ site.Title }}" href="/rss.xml">
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<!-- Analytics -->
<script async src="https://019e3dec-3312-7873-862a-3f56ac99ea83.spst2.com/ustat.js"></script>
<script>
(function () {
try {