diff --git a/templates/modules/head.html b/templates/modules/head.html index ef3c73a9..3a693e96 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -232,7 +232,7 @@ var GLOBAL_CONFIG = { // 页面类型 index,page,post,tag,category htmlType: [[${ htmlType }]], - postTitle: [[${ htmlType == 'post' ? post.spec.title : ''}]], + postTitle: [[${ htmlType == 'post' ? post.spec.title : htmlType == 'page' ? singlePage.spec.title : ''}]], isanchor: true, isPost: [[${htmlType == 'post'}]], isHome: [[${ htmlType == 'index'}]], @@ -295,6 +295,10 @@ if (GLOBAL_CONFIG.postTitle != '') title = GLOBAL_CONFIG.postTitle break; + case 'page': + if (GLOBAL_CONFIG.postTitle != '') + title = GLOBAL_CONFIG.postTitle + break; case 'archive': title = '归档' break; diff --git a/templates/page_links.html b/templates/page_links.html new file mode 100644 index 00000000..c5531b87 --- /dev/null +++ b/templates/page_links.html @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + [[${theme.config.link.smallTitle}]] + [[${theme.config.link.bigTitle}]] + + + + + 随机访问 + + + + 申请友链 + + + + + + + + + + + + + + + + + + + + + + + + + 🎣 钓鱼 + + 查看鱼塘 + + + + + + + + + + + + + [[${group.spec.displayName}]] ([[${group.links.size}]]) + + + [[${group.spec.description}]] + + + + + + [[${link.spec.label}]] + + + + + + + + + + + + + + + + + + + + + [[${link.spec.label}]] + + + + + + + + + + + + + + + + [[${link.spec.displayName}]] + + [[${link.spec.displayName}]] + [[${link.spec.description}]] + + + + + + + + + + + + + + + + + + + + 评论 + 隐私政策 + + 你无需删除空行,直接评论以获取最佳展示效果 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/theme.yaml b/theme.yaml index 8bd939eb..0fe1cd45 100644 --- a/theme.yaml +++ b/theme.yaml @@ -9,6 +9,10 @@ spec: website: https://liuzhihang.com customTemplates: page: + - name: 友情链接页面模版 + description: 支持可预设文本的友链 + screenshot: + file: page_links.html - name: 关于页面模版 description: 关于页面 screenshot: