Jekyll Not Displaying Layout for Static Page

自作多情 提交于 2019-12-13 10:05:41

问题


in root folder I have

designing_minimalist.md

---
title: Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use
layout: default
---

# Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use

Quantum Pilot is a SHMUP-puzzle about fighting clone ships that mirror how you attack them. (...)

default layout:

<html>
<body style="background-color:black">
<body link="white">
<body vlink="white">
<style>
a {
    text-decoration: none;
}
</style>
<h1><a href="index.html">main</h1>
<div class="row-fluid">
    <div class="span8" style="color:white">
        {{ content }}
    </div>
</div>

When I run jekyll build, I get _site/designing_minimalist/index.html

but my root/index.html file has the default layout:

<html>
<body style="background-color:black">
<body link="white">
<body vlink="white">
<style>
a {
    text-decoration: none;
}
</style>
<h1><a href="index.html">main</h1>
<div class="row-fluid">
    <div class="span8" style="color:white">
        <p><a href="https://itunes.apple.com/us/app/quantum-pilot/id935956154?mt=8">>Quantum Pilot: Clone enemies remember how you killed them and fight back mirroring your attack</a></p>

<p><a href="designing_minimalist/index.html">>Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use</a></p>

    </div>
</div>

root/index.md

---
title: main.
layout: default
---

[>Quantum Pilot: Clone enemies remember how you killed them and fight back mirroring your attack](https://itunes.apple.com/us/app/quantum-pilot/id935956154?mt=8)

[>Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use](designing_minimalist/index.html)

Why is the default layout not being applied to my static page?


回答1:


A colon in the title doesn't work. Removing the colon fixed the issue.



来源:https://stackoverflow.com/questions/29579545/jekyll-not-displaying-layout-for-static-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!