Giter Site home page Giter Site logo

Comments (7)

Eternal579 avatar Eternal579 commented on May 20, 2024

而且模糊玻璃的效果也如上所说,本地访问是正常的,线上就是没有效果

from hexo-theme-fluid.

Eternal579 avatar Eternal579 commented on May 20, 2024

但其他效果在线上都可以立刻展示出来,就这两个效果更新不出来,浏览器缓存什么的也都弄过了,就是不行

from hexo-theme-fluid.

xiyuvi avatar xiyuvi commented on May 20, 2024

贴一下你修改的内容 和线上地址

from hexo-theme-fluid.

Eternal579 avatar Eternal579 commented on May 20, 2024

修改的代码部分如下:(我仅仅换了颜色而已)

# 主题颜色配置,其他不生效的地方请使用自定义 css 解决,配色可以在下方链接中获得启发
# Theme color, please use custom CSS to solve other colors, color schema can be inspired by the links below
# See: https://www.webdesignrankings.com/resources/lolcolors/
color:
  # body 背景色
  # Color of body background
  body_bg_color: "#FFFFFF" # 纯白
  # 暗色模式下的 body 背景色,下同
  # Color in dark mode, the same below
  body_bg_color_dark: "#181c27"

  # 顶部菜单背景色
  # Color of navigation bar background
  navbar_bg_color: "#E58A8A" # 偏红色
  navbar_bg_color_dark: "#E58A8A" # 偏红色

线上地址为https://bugeater.space/

from hexo-theme-fluid.

Eternal579 avatar Eternal579 commented on May 20, 2024

然后我也修改了themes/fluid/css/_variables/base.styl
修改的部分如下:

// body
$body-bg-color = theme-config("color.body_bg_color", "#FFFFFF")
// navbar
$navbar-bg-color = theme-config("color.navbar_bg_color", "#E58A8A")
$navbar-bg-color-dark = theme-config("color.navbar_bg_color_dark", "#E58A8A")

但依旧没有起效

from hexo-theme-fluid.

Eternal579 avatar Eternal579 commented on May 20, 2024

我似乎解决了,但不知道为什么,我是把public上传在github上,然后同时每次都是通过GitHub desktop把public中更改的文件上传上去,但我刚刚通过在GitHub网站上上传了所有的文件,线上便有效果了😂

from hexo-theme-fluid.

xiyuvi avatar xiyuvi commented on May 20, 2024

你修改的是hexo根目录下的_config.fluid.yml文件吗
如果你的主题是使用npm安装的,并且你把仓库放在了git上执行每次的编译静态工作,那么你在npm包修改的任何内容不会同步到git仓库中。
我修改主题色后生效了,请检查自己的项目
https://xiyu.pro/
我的配置 _config.fluid.yml

color:
  # body 背景色
  # Color of body background
  body_bg_color: "#eee"
  # 暗色模式下的 body 背景色,下同
  # Color in dark mode, the same below
  body_bg_color_dark: "#181c27"

  # 顶部菜单背景色
  # Color of navigation bar background
  # navbar_bg_color: "#2f4154"
  # navbar_bg_color_dark: "#1f3144"
  navbar_bg_color: "#E58A8A"
  navbar_bg_color_dark: "#E58A8A"

image
如果以上内容帮助到你,你可以赞赏本项目负责人,多少随意
image

from hexo-theme-fluid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.