Octopress风格未应用于新博文

时间:2013-07-13 22:43:03

标签: ruby-on-rails ruby jekyll octopress

我正在使用Octopress(基于Jekyll)的博客。在我的最新帖子中,该样式尚未应用。当我查看源代码时,HTML文件的顶部如下所示:

<p>I wrote a <a href="http://www.github.com/bjcubsfan/passphrases">program</a> 
that generates passphrases. <a href="../passphrases">Passphrases are a better 
alternative</a> to commonly-used, hard-to-remember but easy-to-guess passwords 
(&#8216;eyebrow favor advancing homeland&#8217; versus 
&#8216;Tr0ub4dor&amp;3&#8217;). The python program randomly picks four 

我之前的帖子有正常的HTML标题,指定了CSS样式表等:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Passphrases - B. J. Potter</title>
<meta name="author" content="B. J. Potter">


<meta name="description" content="The xkcd comic criticizing the state
 of passwords made sense to me. Why are we subject to password requirements
 that point us toward hard-to-remember &hellip;">


<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="/atom.xml" rel="alternate" title="B. J. Potter" type="application/atom+xml">

<link rel="canonical" href="http://www.bjpotter.com/passphrases">
<link href="/favicon.ico" rel="shortcut icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">

我已尝试重新生成(rake generate)网站,删除最新帖子并将其创建为新的,但结果是一样的。

可能导致这种情况的原因是什么?我怎么能解决这个问题?

1 个答案:

答案 0 :(得分:2)

嗯,这可能是由于缺少YAML Front Matter引起的。你确定你的最新帖子得到了吗?你能告诉我们你的Markdown来源吗?

要进行问题排查,您可以先尝试更改帖子,然后再更改相关的布局 - 例如,查看这些帖子的编辑过程中是否真正使用过。