【发布时间】:2018-02-25 20:52:02
【问题描述】:
我正在使用 Jekyll 构建我的第一个网站,我非常喜欢默认的 minima 主题。但是,我想更改有关主题的一些内容,例如背景颜色或类似的东西...我该怎么做?
我尝试更改 /_site/assets 文件夹中的 CSS 文件,但即使它确实更改了文件并且网站在 Jekyll 预览中看起来有所不同,但它不会永久更改它,因为我猜它不是在构建网站使用新的 CSS 文件。
我的目录结构是这样的:
├── 404.html
├── about.md
├── assets
│ └── js
│ └── main.js
├── _config.yml
├── Gemfile
├── Gemfile.lock
├── index.md
├── _posts
│ ├── 2018-02-25-animosity.md
│ ├── 2018-02-25-test.html
│ └── main.js
└── _site
├── 404.html
├── about
│ └── index.html
├── assets
│ ├── js
│ │ └── main.js
│ ├── main.css
│ └── minima-social-icons.svg
├── feed.xml
├── index.html
└── jekyll
└── update
└── 2018
└── 02
└── 25
├── animosity.html
└── test.html
【问题讨论】:
-
如果你从 Jekyll 开始,我强烈建议你不要使用默认主题。去掉它。 Jekyll 非常简单。太多的“魔法”,而 Jekyll 应该完全没有魔法:jekyllrb.com/philosophy#1-no-magic
标签: html jekyll github-pages