From 5f62d0abdd061ad73d26800d5a54c73c273ca3a6 Mon Sep 17 00:00:00 2001 From: saeziae Date: Mon, 22 Aug 2022 01:33:46 +0800 Subject: [PATCH] i18n hidden photo --- assets/customize.scss | 14 ++++++-------- i18n/en.toml | 3 +++ i18n/ja.toml | 3 +++ i18n/zh-cn.toml | 4 ++++ i18n/zh-hant.toml | 3 +++ layouts/shortcodes/hiddenphoto.html | 4 +++- 6 files changed, 22 insertions(+), 9 deletions(-) diff --git a/assets/customize.scss b/assets/customize.scss index b9347cc7..508af0ed 100644 --- a/assets/customize.scss +++ b/assets/customize.scss @@ -180,14 +180,12 @@ div.hidden-photo { background-color: rgba($color: #000000, $alpha: 0.5); transition: opacity 0.3s; opacity: 1; - &::before { - content: '点击查看'; - color: white; - height: 100%; - display: flex; - justify-content: center; - align-items: center; - } + color: white; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + font-size: 1.5em; } &.show { img { diff --git a/i18n/en.toml b/i18n/en.toml index 46c528a6..6ee34131 100755 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -21,3 +21,6 @@ other = "min read" [single-writtenBy] other = "WRITTEN BY" + +[click-to-show] +other = "Click to Show" diff --git a/i18n/ja.toml b/i18n/ja.toml index 1500ca9f..a2a0f1f5 100755 --- a/i18n/ja.toml +++ b/i18n/ja.toml @@ -3,3 +3,6 @@ other = "このページで" [contactUs] other = "お問い合わせ" + +[click-to-show] +other = "クリックすると表示されます" diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index 464b270e..027baa13 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -24,3 +24,7 @@ other = "撰写者" [edit-this-page] other = "编辑此页面" + +[click-to-show] +other = "点击查看" + diff --git a/i18n/zh-hant.toml b/i18n/zh-hant.toml index d4f875d4..e3af3ea5 100755 --- a/i18n/zh-hant.toml +++ b/i18n/zh-hant.toml @@ -3,3 +3,6 @@ other = "此頁面上的內容" [contactUs] other = "聯繫我們" + +[click-to-show] +other = "點擊檢視" diff --git a/layouts/shortcodes/hiddenphoto.html b/layouts/shortcodes/hiddenphoto.html index c1bd46b4..a3f18b5f 100644 --- a/layouts/shortcodes/hiddenphoto.html +++ b/layouts/shortcodes/hiddenphoto.html @@ -1,4 +1,6 @@
{{ .Get 1 }} -
+
+ {{ i18n "click-to-show" }} +
\ No newline at end of file