比较提交
-1
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"name": "theme-terminal",
|
||||
"private": true,
|
||||
"version": "2.0.6",
|
||||
"description": "A terminal like theme for Halo.",
|
||||
"scripts": {
|
||||
"dev": "vite build --watch",
|
||||
|
||||
+4
-4
@@ -71,21 +71,21 @@ spec:
|
||||
position: up
|
||||
label: 归档
|
||||
icon: archive
|
||||
url: /archives
|
||||
url: ""
|
||||
external: false
|
||||
- enabled: true
|
||||
type: categories
|
||||
position: up
|
||||
label: 分类
|
||||
icon: script-text
|
||||
url: /categories
|
||||
url: ""
|
||||
external: false
|
||||
- enabled: true
|
||||
type: tags
|
||||
position: up
|
||||
label: 标签
|
||||
icon: label
|
||||
url: /tags
|
||||
url: ""
|
||||
external: false
|
||||
- enabled: true
|
||||
type: login
|
||||
@@ -279,7 +279,7 @@ spec:
|
||||
- $formkit: text
|
||||
name: url
|
||||
label: 链接地址
|
||||
help: 搜索入口可留空;其他入口留空时不会跳转。
|
||||
help: 内置入口可留空并自动使用 Halo 路由;自定义入口留空时不会跳转。
|
||||
- $formkit: select
|
||||
name: position
|
||||
label: 所在位置
|
||||
|
||||
+2
-1
@@ -10,7 +10,8 @@
|
||||
<span th:text="${category.spec.displayName} + '.md'">category.md</span>
|
||||
<a
|
||||
class="devcm-editor-tab__close"
|
||||
href="/categories"
|
||||
href="#"
|
||||
th:href="${!#strings.isEmpty(site.routes.categoriesUri) ? site.routes.categoriesUri : '/categories'}"
|
||||
th:aria-label="#{devcm.action.closeCategoryTab}"
|
||||
th:title="#{devcm.action.closeCategoryTab}"
|
||||
>×</a
|
||||
|
||||
@@ -14,7 +14,15 @@
|
||||
<i class="i-pixelarticons-github"></i>
|
||||
</span>
|
||||
|
||||
<th:block th:with="items=${theme.config.activity.activity_items}">
|
||||
<th:block
|
||||
th:with="items=${theme.config.activity.activity_items},
|
||||
archiveActivityItem=${items != null and !#lists.isEmpty(items) ? items.^[type == 'archive' or key == 'archive'] : null},
|
||||
categoriesActivityItem=${items != null and !#lists.isEmpty(items) ? items.^[type == 'categories' or key == 'categories'] : null},
|
||||
tagsActivityItem=${items != null and !#lists.isEmpty(items) ? items.^[type == 'tags' or key == 'tags'] : null},
|
||||
activityArchiveHref=${!#strings.isEmpty(site.routes.archivesUri) ? site.routes.archivesUri : (archiveActivityItem != null and !#strings.isEmpty(archiveActivityItem.url) ? archiveActivityItem.url : (archiveActivityItem != null and !#strings.isEmpty(archiveActivityItem.href) ? archiveActivityItem.href : '/archives'))},
|
||||
activityCategoriesHref=${!#strings.isEmpty(site.routes.categoriesUri) ? site.routes.categoriesUri : (categoriesActivityItem != null and !#strings.isEmpty(categoriesActivityItem.url) ? categoriesActivityItem.url : (categoriesActivityItem != null and !#strings.isEmpty(categoriesActivityItem.href) ? categoriesActivityItem.href : '/categories'))},
|
||||
activityTagsHref=${!#strings.isEmpty(site.routes.tagsUri) ? site.routes.tagsUri : (tagsActivityItem != null and !#strings.isEmpty(tagsActivityItem.url) ? tagsActivityItem.url : (tagsActivityItem != null and !#strings.isEmpty(tagsActivityItem.href) ? tagsActivityItem.href : '/tags'))}"
|
||||
>
|
||||
<div class="devcm-activity__group devcm-activity__group--up">
|
||||
<th:block th:if="${items != null and !#lists.isEmpty(items)}">
|
||||
<th:block
|
||||
@@ -22,7 +30,8 @@
|
||||
th:with="placement=${#strings.isEmpty(item.position) ? 'up' : item.position},
|
||||
itemType=${!#strings.isEmpty(item.type) ? item.type : (!#strings.isEmpty(item.key) ? item.key : 'custom')},
|
||||
entryAction=${itemType == 'search' or item.action == 'search' ? 'search' : 'link'},
|
||||
entryHref=${entryAction == 'search' ? '#' : (!#strings.isEmpty(item.url) ? item.url : (!#strings.isEmpty(item.href) ? item.href : '#'))},
|
||||
entryConfiguredHref=${!#strings.isEmpty(item.url) ? item.url : (!#strings.isEmpty(item.href) ? item.href : '#')},
|
||||
entryHref=${entryAction == 'search' ? '#' : (itemType == 'archive' ? activityArchiveHref : (itemType == 'categories' ? activityCategoriesHref : (itemType == 'tags' ? activityTagsHref : entryConfiguredHref)))},
|
||||
entryLabel=${!#strings.isEmpty(item.label) ? item.label : (!#strings.isEmpty(item.labelKey) ? #messages.msg(item.labelKey) : #messages.msg('devcm.activity.link'))}"
|
||||
>
|
||||
<a
|
||||
@@ -95,7 +104,8 @@
|
||||
<a
|
||||
class="devcm-activity__button"
|
||||
th:classappend="${pageType == 'archive' or pageType == 'post'} ? ' devcm-activity__button--active' : ''"
|
||||
href="/archives"
|
||||
href="#"
|
||||
th:href="${activityArchiveHref}"
|
||||
th:title="#{devcm.activity.archive}"
|
||||
th:attr="data-label=#{devcm.activity.archive},aria-label=#{devcm.activity.archive}"
|
||||
>
|
||||
@@ -104,7 +114,8 @@
|
||||
<a
|
||||
class="devcm-activity__button"
|
||||
th:classappend="${pageType == 'categories' or pageType == 'category'} ? ' devcm-activity__button--active' : ''"
|
||||
href="/categories"
|
||||
href="#"
|
||||
th:href="${activityCategoriesHref}"
|
||||
th:title="#{devcm.activity.categories}"
|
||||
th:attr="data-label=#{devcm.activity.categories},aria-label=#{devcm.activity.categories}"
|
||||
>
|
||||
@@ -113,7 +124,8 @@
|
||||
<a
|
||||
class="devcm-activity__button"
|
||||
th:classappend="${pageType == 'tags' or pageType == 'tag'} ? ' devcm-activity__button--active' : ''"
|
||||
href="/tags"
|
||||
href="#"
|
||||
th:href="${activityTagsHref}"
|
||||
th:title="#{devcm.activity.tags}"
|
||||
th:attr="data-label=#{devcm.activity.tags},aria-label=#{devcm.activity.tags}"
|
||||
>
|
||||
@@ -129,7 +141,8 @@
|
||||
th:with="placement=${#strings.isEmpty(item.position) ? 'up' : item.position},
|
||||
itemType=${!#strings.isEmpty(item.type) ? item.type : (!#strings.isEmpty(item.key) ? item.key : 'custom')},
|
||||
entryAction=${itemType == 'search' or item.action == 'search' ? 'search' : 'link'},
|
||||
entryHref=${entryAction == 'search' ? '#' : (!#strings.isEmpty(item.url) ? item.url : (!#strings.isEmpty(item.href) ? item.href : '#'))},
|
||||
entryConfiguredHref=${!#strings.isEmpty(item.url) ? item.url : (!#strings.isEmpty(item.href) ? item.href : '#')},
|
||||
entryHref=${entryAction == 'search' ? '#' : (itemType == 'archive' ? activityArchiveHref : (itemType == 'categories' ? activityCategoriesHref : (itemType == 'tags' ? activityTagsHref : entryConfiguredHref)))},
|
||||
entryLabel=${!#strings.isEmpty(item.label) ? item.label : (!#strings.isEmpty(item.labelKey) ? #messages.msg(item.labelKey) : #messages.msg('devcm.activity.link'))}"
|
||||
>
|
||||
<a
|
||||
|
||||
+6
-2
@@ -8,12 +8,16 @@
|
||||
<div class="devcm-editor-tabs">
|
||||
<div
|
||||
class="devcm-editor-tab devcm-editor-tab--active"
|
||||
th:with="postTabName=${!#strings.isEmpty(post.spec.slug) ? post.spec.slug : post.metadata.name}"
|
||||
th:with="postTabBaseName=${!#strings.isEmpty(post.spec.slug) ? post.spec.slug : post.metadata.name},
|
||||
postTabName=${#strings.endsWith(postTabBaseName, '.md') ? postTabBaseName : postTabBaseName + '.md'},
|
||||
archiveActivityItem=${theme.config.activity.activity_items != null and !#lists.isEmpty(theme.config.activity.activity_items) ? theme.config.activity.activity_items.^[type == 'archive' or key == 'archive'] : null},
|
||||
postCloseHref=${!#strings.isEmpty(site.routes.archivesUri) ? site.routes.archivesUri : (archiveActivityItem != null and !#strings.isEmpty(archiveActivityItem.url) ? archiveActivityItem.url : (archiveActivityItem != null and !#strings.isEmpty(archiveActivityItem.href) ? archiveActivityItem.href : '/archives'))}"
|
||||
>
|
||||
<span th:text="${postTabName}">post</span>
|
||||
<a
|
||||
class="devcm-editor-tab__close"
|
||||
href="/archives"
|
||||
href="#"
|
||||
th:href="${postCloseHref}"
|
||||
th:aria-label="#{devcm.action.closePostTab}"
|
||||
th:title="#{devcm.action.closePostTab}"
|
||||
>×</a
|
||||
|
||||
+2
-1
@@ -10,7 +10,8 @@
|
||||
<span th:text="'#' + ${tag.spec.displayName} + '.md'">tag.md</span>
|
||||
<a
|
||||
class="devcm-editor-tab__close"
|
||||
href="/tags"
|
||||
href="#"
|
||||
th:href="${!#strings.isEmpty(site.routes.tagsUri) ? site.routes.tagsUri : '/tags'}"
|
||||
th:aria-label="#{devcm.action.closeTagTab}"
|
||||
th:title="#{devcm.action.closeTagTab}"
|
||||
>×</a
|
||||
|
||||
+1
-1
@@ -13,5 +13,5 @@ spec:
|
||||
repo: https://git.dev.cm/theme-terminal
|
||||
settingName: "theme-terminal-setting"
|
||||
configMapName: "theme-terminal-configMap"
|
||||
version: 2.0.6
|
||||
version: 2.0.8
|
||||
require: ">=2.22.0"
|
||||
|
||||
在新议题中引用
屏蔽一个用户