简体   繁体   English

Jekyll网站未呈现降价促销

[英]Jekyll site not rendering markdown

I have an issue where my remote repository is updated, but my Github pages site will not update. 我有一个更新远程存储库的问题,但是我的Github页面站点不会更新。 The content of http://balassit.github.io/readings/GitNotes.md is outdated. http://balassit.github.io/readings/GitNotes.md的内容已过时。 I have verified that in my settings of Github my site builds from master. 我已经验证,在我的Github设置中,我的网站是从master建立的。 The content on master is up to date with my local branch. master上的内容是我本地分支机构的最新内容。

I have run my site locally using jekyll build and jekyll serve . 我已经使用jekyll buildjekyll serve在本地运行我的网站。 This produces the expected output on localhost:4000. 这将在localhost:4000上产生预期的输出。

I have seen posts about markdown being an issue rendering in jekyll pages because of kramdown formatting, but that does not appear to be the issue for me. 由于kramdown格式,我已经看到有关markdown是在jekyll页面中渲染的问题的帖子,但这对我来说似乎不是问题。

https://github.com/balassit/balassit.github.io/tree/master https://github.com/balassit/balassit.github.io/tree/master

GitNotes.html YAML Block GitNotes.html YAML阻止

---
layout: markdown
title: "Readings"
id: "readings"
custom_css: readings/github-markdown.css
---

github-markdown.css is from https://github.com/sindresorhus/github-markdown-css/blob/gh-pages/github-markdown.css github-markdown.css来自https://github.com/sindresorhus/github-markdown-css/blob/gh-pages/github-markdown.css

head.html 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 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>

The bottom script is for tagdown, which can be seen at http://spikespaz.com/tagdownjs/ 底部脚本用于标记,可在http://spikespaz.com/tagdownjs/上看到

GitNotes.md does not have the YAML Front Matter but GitNotes.html does. GitNotes.md没有YAML前端问题,但GitNotes.html有。 Why two files with same filename ? 为什么两个文件filename相同?

Adding Front Matter to GitNotes.md will process it to _site/GitNotes.html 将前项添加到GitNotes.md会将其处理到_site/GitNotes.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM