From 288ded9ddd55822e38221782d973701da1f2bea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Thu, 2 Jun 2022 09:05:13 +0800 Subject: [PATCH] :bug: Fixed the code block and post meta information. --- .../css/_common/scaffolding/highlight/index.scss | 1 + exampleSite/content/post/hello-world.md | 1 + layouts/index.html | 16 ++++++++-------- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/assets/css/_common/scaffolding/highlight/index.scss b/assets/css/_common/scaffolding/highlight/index.scss index caad07d..8b4ca76 100644 --- a/assets/css/_common/scaffolding/highlight/index.scss +++ b/assets/css/_common/scaffolding/highlight/index.scss @@ -43,6 +43,7 @@ pre, code { font-family: $code-font-family; + color: #fff; } code { diff --git a/exampleSite/content/post/hello-world.md b/exampleSite/content/post/hello-world.md index 7645001..cf4aee8 100644 --- a/exampleSite/content/post/hello-world.md +++ b/exampleSite/content/post/hello-world.md @@ -17,6 +17,7 @@ tags: toc: false draft: false +expand: true --- The world’s fastest framework for building websites. diff --git a/layouts/index.html b/layouts/index.html index b8baedb..6e1d7de 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,15 +7,15 @@

@@ -41,14 +41,14 @@

- {{/*- if .Expand }} + {{- if .Params.Expand }} {{ .Content }} - {{ else */}} + {{- else }} {{ .Summary }} - {{/*- end */}} + {{- end }}