我想在其中使用带有':'的kramdown标签,即。
{:toc}
和coderay代码块
{:lang="javascript"}
在我的 Octopress 博客中,但我在运行时不断收到此错误
rake generate
:
[my user dir]/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych.rb:203:in
`parse': (<unknown>): could not find expected ':'
while scanning a simple key at line 8 column 1 (Psych::SyntaxError)
我已经安装了 kramdown 和 coderay gem,并对我的 _config.yml 进行了以下更改:
markdown: kramdown
kramdown:
auto_ids: true
use_coderay: true`
coderay:
coderay_line_numbers: nil
coderay_css: class`
我的博文目录代码如下所示:
---
layout: page
title: "resources"
date: 2013-06-06 10:45
comments: true
sharing: true
footer: true
categories: [3D UI, css, CSS3D, HTML5, javaScript, three.js,
smart tv, grunt, jQuery, node.js, bootstrap, css,
responsive design, api, learning, backbone.js, knockout.js]
---
#Resources
{:toc}
## **Performance and Caching**
* [Varnish](https://www.varnish-cache.org/)
{:toc}
## **SmartTV**
* [Samsung Development Guide](http://www.samsungdforum.com/Guide/)
* [Basic SmartTV Node App Server](https://github.com/rposbo/basic-smart-tv-app-server)
{:toc} [ .. snip .. ]
代码块代码如下所示:
`renderer = new THREE.CSS3DRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.domElement.style.position = 'absolute';
document.getElementById('video_container').appendChild(renderer.domElement);`
{:lang="javascript"}
如果没有 : 标签,该网站会生成正常。
我错过了什么?
任何帮助,将不胜感激!