簡體   English   中英

Jekyll網站未呈現降價促銷

[英]Jekyll site not rendering markdown

我有一個更新遠程存儲庫的問題,但是我的Github頁面站點不會更新。 http://balassit.github.io/readings/GitNotes.md的內容已過時。 我已經驗證,在我的Github設置中,我的網站是從master建立的。 master上的內容是我本地分支機構的最新內容。

我已經使用jekyll buildjekyll serve在本地運行我的網站。 這將在localhost:4000上產生預期的輸出。

由於kramdown格式,我已經看到有關markdown是在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>

底部腳本用於標記,可在http://spikespaz.com/tagdownjs/上看到

GitNotes.md沒有YAML前端問題,但GitNotes.html有。 為什么兩個文件filename相同?

將前項添加到GitNotes.md會將其處理到_site/GitNotes.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM