{onLoading ? : children}
diff --git a/themes/hexo/components/ArticleLock.js b/themes/hexo/components/ArticleLock.js
index 0a56f39e..66b3bde1 100644
--- a/themes/hexo/components/ArticleLock.js
+++ b/themes/hexo/components/ArticleLock.js
@@ -25,7 +25,14 @@ export const ArticleLock = props => {
{locale.COMMON.ARTICLE_LOCK_TIPS}
-
+ {
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition focus:shadow-lg dark:text-gray-300 font-light leading-10 text-black bg-gray-100 dark:bg-gray-500'>
+
{locale.COMMON.SUBMIT}
diff --git a/themes/hexo/components/HeaderArticle.js b/themes/hexo/components/HeaderArticle.js
index 1681c37a..7e19985a 100644
--- a/themes/hexo/components/HeaderArticle.js
+++ b/themes/hexo/components/HeaderArticle.js
@@ -35,7 +35,7 @@ export default function HeaderArticle({ post, siteInfo }) {
{post.category && <>
-
+
+
{/* 嵌入区域 */}
{post.category}
diff --git a/themes/matery/LayoutBase.js b/themes/matery/LayoutBase.js
index 5e699117..282cc44b 100644
--- a/themes/matery/LayoutBase.js
+++ b/themes/matery/LayoutBase.js
@@ -12,6 +12,7 @@ import FloatDarkModeButton from './components/FloatDarkModeButton'
import throttle from 'lodash.throttle'
import { isBrowser, loadExternalResource } from '@/lib/utils'
import SocialButton from './components/SocialButton'
+import CONFIG_MATERY from './config_matery'
/**
* 基础布局 采用左右两侧布局,移动端使用顶部导航栏
@@ -51,7 +52,7 @@ const LayoutBase = props => {
{headerSlot}
-
{props.containerSlot}
diff --git a/themes/matery/components/ArticleLock.js b/themes/matery/components/ArticleLock.js
index 0a56f39e..605bfb5d 100644
--- a/themes/matery/components/ArticleLock.js
+++ b/themes/matery/components/ArticleLock.js
@@ -22,16 +22,24 @@ export const ArticleLock = props => {
}
return
-
-
}
diff --git a/themes/medium/components/ArticleLock.js b/themes/medium/components/ArticleLock.js
index 8ffe4044..2798f97a 100644
--- a/themes/medium/components/ArticleLock.js
+++ b/themes/medium/components/ArticleLock.js
@@ -26,7 +26,14 @@ export const ArticleLock = props => {
{locale.COMMON.ARTICLE_LOCK_TIPS}
-
-
-
-
- {locale.COMMON.SUBMIT}
+
-
+
- {locale.COMMON.ARTICLE_LOCK_TIPS}
+
+ {
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition focus:shadow-lg dark:text-gray-300 font-light leading-10 text-black bg-gray-100 dark:bg-gray-500'>
+
+
+
+
+ {locale.COMMON.SUBMIT}
+
+
+
-
{locale.COMMON.ARTICLE_LOCK_TIPS}
-
+ {
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition focus:shadow-lg dark:text-gray-300 font-light leading-10 text-black bg-gray-100 dark:bg-gray-500'>
+
{locale.COMMON.SUBMIT}
diff --git a/themes/next/components/ArticleLock.js b/themes/next/components/ArticleLock.js
index 6d2ec730..3843a956 100644
--- a/themes/next/components/ArticleLock.js
+++ b/themes/next/components/ArticleLock.js
@@ -30,6 +30,11 @@ export const ArticleLock = props => {
{
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
className="outline-none w-full text-sm pl-5 transition focus:shadow-lg dark:text-gray-300 font-light leading-10 text-black bg-gray-100 dark:bg-gray-500"
>
{
}
return
-
-
}
diff --git a/themes/simple/components/ArticleLock.js b/themes/simple/components/ArticleLock.js
index f21ce74a..de3569b0 100644
--- a/themes/simple/components/ArticleLock.js
+++ b/themes/simple/components/ArticleLock.js
@@ -23,16 +23,23 @@ export const ArticleLock = props => {
}
return {locale.COMMON.ARTICLE_LOCK_TIPS}
-
-
-
-
- {locale.COMMON.SUBMIT}
+
-
+
- {locale.COMMON.ARTICLE_LOCK_TIPS}
+
+ {
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition font-light leading-10 text-black dark:bg-gray-500 bg-gray-50'
+ >
+
+
+ {locale.COMMON.SUBMIT}
+
+
+
-
-
-
}
{locale.COMMON.ARTICLE_LOCK_TIPS}
-
-
-
-
- {locale.COMMON.SUBMIT}
+
-
+
- {locale.COMMON.ARTICLE_LOCK_TIPS}
+
+ {
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition font-light leading-10 text-black dark:bg-gray-500 bg-gray-50'
+ >
+
+
+ {locale.COMMON.SUBMIT}
+
+
+
-