From af9a7f71726fcff05b411a29f6f000b3ddbaffc8 Mon Sep 17 00:00:00 2001 From: JohnathanLin <289348588@qq.com> Date: Tue, 2 May 2023 19:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E5=9C=86=E8=A7=92?= =?UTF-8?q?=E5=BC=A7=E5=BA=A6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BA=86=E8=97=8F?= =?UTF-8?q?=E4=B9=A6shortcodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/common/main.css | 2 +- assets/css/common/post-single.css | 8 ++++++++ assets/css/core/theme-vars.css | 2 +- layouts/shortcodes/book.html | 6 ++++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 layouts/shortcodes/book.html diff --git a/assets/css/common/main.css b/assets/css/common/main.css index 50022ac..231dd26 100644 --- a/assets/css/common/main.css +++ b/assets/css/common/main.css @@ -19,7 +19,7 @@ font-size: 13px; line-height: 36px; background: var(--primary); - border-radius: calc(36px / 2); + border-radius: calc(20px / 2); padding: 0 16px; } diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 0f569bf..11f5d0d 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -398,4 +398,12 @@ h1>a>svg { img.in-text { display: inline; margin: auto; +} + +div.book { + display: inline-block; + padding: 0 1rem; + max-width:150px; + min-height: 250px; + vertical-align: top; } \ No newline at end of file diff --git a/assets/css/core/theme-vars.css b/assets/css/core/theme-vars.css index 8f25940..599f599 100644 --- a/assets/css/core/theme-vars.css +++ b/assets/css/core/theme-vars.css @@ -5,7 +5,7 @@ --main-width: 720px; --header-height: 60px; --footer-height: 60px; - --radius: 16px; + --radius: 10px; --theme: rgb(255, 255, 255); --entry: rgb(255, 255, 255); --primary: rgb(30, 30, 30); diff --git a/layouts/shortcodes/book.html b/layouts/shortcodes/book.html new file mode 100644 index 0000000..caf0336 --- /dev/null +++ b/layouts/shortcodes/book.html @@ -0,0 +1,6 @@ +
+ + + {{.Get "name"}} + +