【问题标题】:Jekyll Not Displaying Layout for Static PageJekyll 不显示静态页面的布局
【发布时间】:2015-04-11 15:24:25
【问题描述】:

在我的根文件夹中

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. (...)

默认布局:

<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>

当我运行 jekyll build 时,我得到 _site/designing_minimalist/index.html

但我的 root/index.html 文件具有默认布局:

<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)

为什么我的静态页面没有应用默认布局?

【问题讨论】:

  • 你叫什么静态页面?你说的是 _site/designing_minimalist/index.html 吗?
  • 是的,就是这个。对于我的静态页面。
  • 所以_site/designing_minimalist/index.html生成了,但是没有布局?它看起来像什么?

标签: ruby yaml jekyll github-pages static-pages


【解决方案1】:

标题中的冒号无效。删除冒号解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-17
    • 1970-01-01
    • 2019-01-23
    • 1970-01-01
    • 1970-01-01
    • 2014-10-23
    • 2019-10-13
    • 2014-05-13
    相关资源
    最近更新 更多