4

I use jekyll in github pages. http://juanpabloaj.github.com/

But, when I add the syntax.css file for pygments

 <link rel="stylesheet" href="/css/syntax.css" type="text/css" media="screen" /> 

default.html

jekyll don't show the syntax, I have set on the pygments line

 pygments:    true

pygments-true

JuanPablo
  • 23,792
  • 39
  • 118
  • 164

4 Answers4

0

I had to make sure I specified markdown: maruku for some reason in the _config.yml file.

thekingoftruth
  • 1,711
  • 1
  • 25
  • 24
0

Try to use this?

<link rel="stylesheet" href="{{ "/css/syntax.css" | prepend: site.baseurl }}">
seenukarthi
  • 8,241
  • 10
  • 47
  • 68
Andre Christoga
  • 497
  • 1
  • 5
  • 11
0

To get syntax highlighting working in the latest version you need to update markdown to the new parser in _config.yml:

markdown: kramdown
hoju
  • 28,392
  • 37
  • 134
  • 178
0

Have you installed pygments locally per the instructions here https://github.com/mojombo/jekyll/wiki/install

novemberkilo
  • 661
  • 5
  • 15
  • I have pygments installed, my problem ocurred locally and in github – JuanPablo Oct 01 '11 at 13:05
  • Ok so just in case I have misunderstood, you have to put `pygments: true` in your `_config.yml` file. As far as I know, your css has nothing to do with whether or not jekyll uses pygments for code highlighting. – novemberkilo Oct 02 '11 at 02:53