From 7ed4b4c61ce285b74f44b033dc8d3ea25f6039b1 Mon Sep 17 00:00:00 2001 From: hhaiyun Date: Wed, 27 Nov 2019 14:43:38 +0800 Subject: [PATCH] fix css and add a note in README --- README.zh.md | 1 + assets/css/_page/_post.scss | 2 +- layouts/partials/comments.html | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.zh.md b/README.zh.md index 740a7df4..10ecb2a4 100644 --- a/README.zh.md +++ b/README.zh.md @@ -135,6 +135,7 @@ * `assets/css/_varibales.scss`: 你可以覆盖 `_variables.scss` 中的变量来自定义样式 * `assets/css/_custom.scss`: 你可以把自定义的样式放在这个文件 +* 需要使用hugo extended版本编译sass,否则修改css无法生效 ## 网站图标、浏览器配置、网站清单 diff --git a/assets/css/_page/_post.scss b/assets/css/_page/_post.scss index ce9b87f9..aa51c3cd 100644 --- a/assets/css/_page/_post.scss +++ b/assets/css/_page/_post.scss @@ -572,5 +572,5 @@ } .post-comment { - padding: 3rem 0; + padding: 4rem 0; } \ No newline at end of file diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index a0527242..0a19b5e7 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -52,7 +52,6 @@ {{- if .Site.Params.valine.enable -}} -
{{ if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.valine_js }} {{ .Site.Params.cdn.valine_js | safeHTML }}