gpt4 book ai didi

jekyll - 在 GitHub pages jekyll 的默认 minima 主题中编辑页脚

转载 作者:行者123 更新时间:2023-12-03 16:11:48 28 4
gpt4 key购买 nike

我已关注 this tutorial and the following ones使用 Jekyll 创建一个 Github Pages 网站。现在我有了 minima主题,但它似乎与 official repo 版本不同, 作为 repo 中的参数 _config.yml不要在我的上工作(例如,对于 Twitter 链接,我有一个 twitter_username 参数,而 twitter 下的 repo 的 social_links 不起作用)。
奇怪的是,在页脚中我有 title参数重复两次,因为它在 footer-heading 中呈现和 p-name index.html 中的元素.有什么办法可以改变在 html 中呈现给这些元素的内容吗?

最佳答案

github advise you to copy master files to override minima gem's files通过复制主文件来“隐藏文件系统深处某个地方的文件”,他们犯了一个错误,因为可以追加破坏性更改。
覆盖 jekyll 主题文件的最佳方法(目前)是将 gem 的文件复制到您的工作文件夹。

cd /you/working/jekyll
cp -R `echo "$(bundle info minima --path)/_*/"` .
cp -R `echo "$(bundle info minima --path)/assets/"` .
然后,您将拥有覆盖工作文件夹(_includes、_layouts、_sass 和 assets 文件夹)中的最小值所需的一切。
如果你有一个 github 页面,你只需要提交并推送到你的发布分支。

关于jekyll - 在 GitHub pages jekyll 的默认 minima 主题中编辑页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60231233/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com