diff --git a/themes/example/components/ArticleLock.js b/themes/example/components/ArticleLock.js index f21ce74a..de3569b0 100644 --- a/themes/example/components/ArticleLock.js +++ b/themes/example/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} +
+
+
+
-
-
-
-
} diff --git a/themes/fukasawa/components/ArticleLock.js b/themes/fukasawa/components/ArticleLock.js index 9a8e6081..23a663a3 100644 --- a/themes/fukasawa/components/ArticleLock.js +++ b/themes/fukasawa/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 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.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/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
-
-
{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} +
+
+
+
-
-
-
-
} 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}
- + { + 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
-
-
{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} +
+
+
+
-
-
-
-
} 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} +
+
+
+
-
-
-
-
}