From 2fed07993894b26a39c906af7c28e11ee28290b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Mon, 13 Jun 2022 21:57:16 +0800 Subject: [PATCH] :lipstick: :bug: Fixed end of post line display tip. --- assets/css/_common/components/post/post-footer.scss | 3 +-- assets/css/main.scss | 1 - exampleSite/config.yaml | 2 ++ layouts/partials/head/style.html | 7 ++++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/css/_common/components/post/post-footer.scss b/assets/css/_common/components/post/post-footer.scss index be39fda..cecdd95 100644 --- a/assets/css/_common/components/post/post-footer.scss +++ b/assets/css/_common/components/post/post-footer.scss @@ -15,10 +15,9 @@ margin: 24px 0 12px 0; &:after{ - content: $post_end_line_tip; font-size: .9em; font-weight: bold; - background: #fff; + background: var(--content-bg-color); padding: 0 5px; z-index:2; } diff --git a/assets/css/main.scss b/assets/css/main.scss index 244128f..b214e0a 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -79,7 +79,6 @@ $motion_trans_post_header: {{ $P.motion.transition.postHeader }}; $post_edit_enable: {{ $P.postEdit.enable }}; $post_meta_item_text: {{ $P.postMeta.itemText }}; $reward_settings_animation: {{ $P.rewardSets.animation }}; -$post_end_line_tip: "{{ $P.postFooter.endLineTip }}"; $post_end_tag_icon: {{ $P.postFooter.tagIcon }}; // TODO find the paramters diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index ab72208..68c2232 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -71,6 +71,8 @@ languages: linksSets: icon: fa fa-globe title: Friends + postFooter: + endLineTip: "~ End of this post ~" #-------------------------------------- # Menus Settings diff --git a/layouts/partials/head/style.html b/layouts/partials/head/style.html index 8584a0e..c74a448 100644 --- a/layouts/partials/head/style.html +++ b/layouts/partials/head/style.html @@ -22,4 +22,9 @@ {{- $scss = $scss | resources.ExecuteAsTemplate "main.scss" . }} {{- $css := $scss | toCSS (dict "targetPath" "/css/main.css" "outputStyle" "expanded") }} - \ No newline at end of file + + \ No newline at end of file