本文介绍了Jekyll不显示静态页面的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的根文件夹中
designing_minimalist.md
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
When I run jekyll build, I get _site/designing_minimalist/index.html
但是我的root/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
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?
推荐答案
标题中的冒号无效.删除冒号可解决此问题.
A colon in the title doesn't work. Removing the colon fixed the issue.
这篇关于Jekyll不显示静态页面的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!