2

我正在为博客使用 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)站点,删除最新的帖子并重新创建它,但结果是一样的。

这可能是什么原因造成的?我该如何解决这个问题?

4

1 回答 1

2

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

对于故障排除,您可以尝试先更改您的帖子,然后再更改相关的布局——例如查看它们是否真的在这篇帖子的编译过程中被使用。

于 2013-07-15T14:28:28.260 回答