From fa414e827afe0b1e97608aeb18978bb95a564ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Sat, 29 Oct 2022 20:35:19 +0800 Subject: [PATCH] :lipstick: Make home post view only work for waline. --- assets/css/_common/components/third-party/waline.scss | 4 ++-- layouts/partials/post/header.html | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/css/_common/components/third-party/waline.scss b/assets/css/_common/components/third-party/waline.scss index 648c450..2e57eb4 100644 --- a/assets/css/_common/components/third-party/waline.scss +++ b/assets/css/_common/components/third-party/waline.scss @@ -5,8 +5,8 @@ @include mobile() { .wl-reaction-img { - width: 32px; - height: 32px; + width: 28px; + height: 28px; } .wl-reaction-votes { padding: 0.85px; diff --git a/layouts/partials/post/header.html b/layouts/partials/post/header.html index 719aa27..50293cf 100644 --- a/layouts/partials/post/header.html +++ b/layouts/partials/post/header.html @@ -27,9 +27,11 @@ {{ partial "post/header_meta/created_date.html" . }} {{ partial "post/header_meta/update_date.html" . }} {{ partial "post/header_meta/categories.html" . }} - {{ if and $.IsHome (not (isset .Params "extlink")) }} + {{ if .Site.Params.waline.pageView }} + {{ if and $.IsHome (not (isset .Params "extlink")) }} {{ partial "post/header_meta/views.html" . }} {{ end }} + {{ end }} {{- if not $.IsHome }}