gpt4 book ai didi

html - Jekyll 不会从根文件夹为 Markdown 页面生成 html

转载 作者:行者123 更新时间:2023-12-01 22:24:29 26 4
gpt4 key购买 nike

我已经开始使用 Jekyll 将我的博客移动到 GitHub Pages。我在 Windows 上使用本地 Jekyll 工具 (jekyll 3.1.3) 和 neo-hpstr-jekyll-theme 作为起点。

入口点(根目录中的index.html)和帖子生成得很好。但是当我放置 Markdown 文件(about.md)时:

---
layout: page
title: "about me"
permalink: /about
---
here goes some content with markdown syntax...

构建后,此文件直接放置在 _site\about.md 文件夹下,内容完全相同(未转换)。应该改造一下放在_site\about\index.html

到目前为止,我已经检查了布局(它存在并且看起来没问题)、文件中的 BOM(未添加)、_config.yml 中的永久链接配置(使用默认值)但没有结果.

知道我做错了什么吗?


编辑:页面项目可用:https://github.com/mmierzwa/mmierzwa.github.io (开发分支)

最佳答案

当我在我最喜欢的编辑器中执行 view.encoding() 时,它告诉我你的 about.mdUTF-8 with BOM 编码。

将其保存为 UTF-8 无 BOM

关于html - Jekyll 不会从根文件夹为 Markdown 页面生成 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37069528/

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