发现一个小问题:我本地调试好了背景颜色之后,部署到github pages里颜色没变
Pinnd opened this issue · 7 comments
Pinnd commented
发现一个小问题:我本地调试好了背景颜色之后,部署到github pages里颜色没变
尝试了几次都是这样...是我改的地方不对吗?但是本地 http://localhost:4000 又是我改的样式和颜色
改的是 source/scss/_var.scss 文件
iGuan7u commented
github pages 是有缓存的,自测重新进入一下 pages 仓库(或者过一段时间后),能刷新 github 的缓存。
Pinnd commented
OK,我等等看,半小时了还没好,主题文字和文章基本1min内就好,背景色一直没刷过来。
iGuan7u commented
可以直接进入仓库查看 css/style.css
文件是否生效。
另外我看了一下你的样式文件,其中的颜色是 #be223a
,似乎推送失败了?
Pinnd commented
好像只改source/scss/_var.scs里的background就是不行,我强制替换了style.css里所有的 #be223a 就好了
iGuan7u commented
确认了一下,$background_color
这个字段指代的有点模糊,我后续调整一下。
你需要替换的应该是 $theme_color
字段。
Pinnd commented
赞!明白了,我待会再重新部署一下试试,昨天把我自己也调得有点乱...
iGuan7u <notifications@github.com> 于2020年3月5日周四 下午12:37写道:
… 确认了一下,$background_color 这个字段指代的有点模糊,我后续调整一下。
你需要替换的应该是 $theme_color 字段。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8?email_source=notifications&email_token=ABC3NB2JRLNXM7EXAWO3ICLRF4UBZA5CNFSM4LBFEOQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN3VUEA#issuecomment-595024400>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC3NBZSTAVBOS2WZQUVW4LRF4UBZANCNFSM4LBFEOQA>
.
--
Penghao Xu
iGuan7u commented
稍微在 _var.scss
文件中增加了注释,并且提高了自定义程度,这个 issue 先关闭了,后续有问题可以重新打开。