From f208d6b904ed28511213a69307e75927fa490fd7 Mon Sep 17 00:00:00 2001 From: shaojiemike <943648187@qq.com> Date: Tue, 23 Jan 2024 15:42:46 +0800 Subject: [PATCH] feat: support hide Pubs and motto --- layouts/people/single.html | 14 +++++++++++--- static/css/style3People.css | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/layouts/people/single.html b/layouts/people/single.html index 0c7da3a..a34b43e 100644 --- a/layouts/people/single.html +++ b/layouts/people/single.html @@ -7,13 +7,16 @@
+ {{ $motto := .Params.motto }} + {{ with $motto}}

- {{ with .Params.motto }} + {{ with $motto }} {{ . }} {{ else }} “红专并进,理实交融” {{ end }}

+ {{ end }}
@@ -140,9 +143,14 @@

- {{- partial "paper1.html" . -}} + {{ with .Params.hidePubs }} + {{ else}} + {{- partial "paper1.html" . -}} + {{ end }} - + {{ with .Params.otherPubs}} + {{- partial "paper2.html" . -}} + {{ end }}

{{ if .Param "aplayer" }} diff --git a/static/css/style3People.css b/static/css/style3People.css index 9bd51ad..e25493a 100644 --- a/static/css/style3People.css +++ b/static/css/style3People.css @@ -114,7 +114,7 @@ img:hover { .stick-motto-bar{ position: relative; - top:40px; + /* top:40px; */ /* height: 100vh; */ background-color: rgb(247, 247, 247); /* display: flex; */