Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The best parts of Jekyll are, as said <a href="https://github.com/mojombo/jekyll" rel="nofollow">here</a>, </p> <blockquote> <p>...It takes a template directory (representing the raw form of a website), runs it through Textile or Markdown and Liquid converters, and spits out a complete, static website... </p> </blockquote> <p>That means, you get Markdown and pygments highlighting by default.</p> <p>You can <em>discard</em> or use the default _config.yaml for this setup. With your existing config, you might want to set pygments to true: <code>pygments: true</code>.</p> <p>Here's what you do for </p> <ul> <li><p><strong>Markdown</strong>: just name your file as *.markdown, for example <code>2012-12-01-my-post.markdown</code> and place it anywhere inside the root directory. Normally, you would place it in _posts.</p> <p>When jekyll parses this file, it'll pass it through markdown filter. As an added bonus, you get to save as *.textile and it parses using <a href="http://redcloth.org/hobix.com/textile/" rel="nofollow">textile</a>. And, ofcourse, you can keep it .html so no parsing takes place for markdown.</p></li> <li><p><strong>pygments</strong>: Just do this with your code:</p> <pre><code>{% highlight python %} def yourfunction(): print "Hello World!" {% endhighlight %} </code></pre> <p>You also get linenumbers by doing:</p> <pre><code>{% highlight python linenos %} {% endhighlight %} </code></pre></li> </ul> <p>Edit: And also, <strong>You'll need to generate the syntax stylesheet</strong> using the command</p> <pre><code>pygmentize -S default -f html &gt; style.css </code></pre> <p>as mentioned <a href="http://pygments.org/docs/quickstart/" rel="nofollow">here</a> and by @joshuahornby10. Include style.css in your html, obviously. Then, your code will be syntax-highlighted with pygments.</p> <p>Oh, and you needn't change any settings in _config.yaml for this to work. Just run your site using <code>jekyll --server --auto</code> and see if it's looking good. Side note, when editing the _config file you will need to stop the auto run and re run jekyll for any changes to take place.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload