Jekyll 网站不呈现降价
Jekyll site not rendering markdown
我有一个问题,我的远程存储库已更新,但我的 Github 页面站点不会更新。 http://balassit.github.io/readings/GitNotes.md 的内容已过时。我已经在 Github 的设置中验证了我的网站是从 master 构建的。 master 上的内容与我当地的分支机构是最新的。
我在本地使用 jekyll build
和 jekyll serve
我的站点 运行。这会在 localhost:4000.
上产生预期的输出
我看到过关于 markdown 由于 kramdown 格式而在 jekyll 页面中呈现问题的帖子,但这对我来说似乎不是问题。
https://github.com/balassit/balassit.github.io/tree/master
GitNotes.html YAML 块
---
layout: markdown
title: "Readings"
id: "readings"
custom_css: readings/github-markdown.css
---
github-markdown.css 来自 https://github.com/sindresorhus/github-markdown-css/blob/gh-pages/github-markdown.css
head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ site.baseurl }}/css/normalize.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
<!-- Custom CSS and JavaScript -->
{% for css_file in page.custom_css %}
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/{{ css_file }}">
{% endfor %}
{% for js_file in page.custom_js %}
<script src="{{ site.baseurl }}/{{ js_file }}"></script>
{% endfor %}
{% for js_file in page.source_js %}
<script src="{{ js_file }}"></script>
{% endfor %}
<title>{{ page.title }}</title>
</head>
markdown.html
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 1080px;
padding: 45px;
}
</style>
{% include header.html %}
{% include sidebar.html %}
<main>
<article class="markdown-body">
<markdown>
{{ content }}
</markdown>
</article>
</main>
{% include footer.html %}
<script src="https://spikespaz.github.io/tagdownjs/scripts/tagdown.min.js"></script>
</body>
</html>
最下面的脚本是tagdown,可以在http://spikespaz.com/tagdownjs/
看到
GitNotes.md
没有 YAML Front Matter 但 GitNotes.html
有。为什么两个文件具有相同的 filename
?
将 Front Matter 添加到 GitNotes.md
会将其处理为 _site/GitNotes.html
我有一个问题,我的远程存储库已更新,但我的 Github 页面站点不会更新。 http://balassit.github.io/readings/GitNotes.md 的内容已过时。我已经在 Github 的设置中验证了我的网站是从 master 构建的。 master 上的内容与我当地的分支机构是最新的。
我在本地使用 jekyll build
和 jekyll serve
我的站点 运行。这会在 localhost:4000.
我看到过关于 markdown 由于 kramdown 格式而在 jekyll 页面中呈现问题的帖子,但这对我来说似乎不是问题。
https://github.com/balassit/balassit.github.io/tree/master
GitNotes.html YAML 块
---
layout: markdown
title: "Readings"
id: "readings"
custom_css: readings/github-markdown.css
---
github-markdown.css 来自 https://github.com/sindresorhus/github-markdown-css/blob/gh-pages/github-markdown.css
head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ site.baseurl }}/css/normalize.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
<!-- Custom CSS and JavaScript -->
{% for css_file in page.custom_css %}
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/{{ css_file }}">
{% endfor %}
{% for js_file in page.custom_js %}
<script src="{{ site.baseurl }}/{{ js_file }}"></script>
{% endfor %}
{% for js_file in page.source_js %}
<script src="{{ js_file }}"></script>
{% endfor %}
<title>{{ page.title }}</title>
</head>
markdown.html
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 1080px;
padding: 45px;
}
</style>
{% include header.html %}
{% include sidebar.html %}
<main>
<article class="markdown-body">
<markdown>
{{ content }}
</markdown>
</article>
</main>
{% include footer.html %}
<script src="https://spikespaz.github.io/tagdownjs/scripts/tagdown.min.js"></script>
</body>
</html>
最下面的脚本是tagdown,可以在http://spikespaz.com/tagdownjs/
看到GitNotes.md
没有 YAML Front Matter 但 GitNotes.html
有。为什么两个文件具有相同的 filename
?
将 Front Matter 添加到 GitNotes.md
会将其处理为 _site/GitNotes.html