Testing

2013 Apr 17

This is a test of Jekyll. If it works I’ll move all my blogs to github. Let’s test a referencesee below Let’s test a footnote.1

This sentence contains some underscores, some of which are in_side words. Now some words are italicised.

Here, have a table:

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

TODO

  • Posts don't seem to be interpreted as Markdown. Hmm.
  • Include RSS feeds
  • Add Disqus comments

Reference Material

  • http://cobyism.com/jekyll/docs/home/
  • http://paulstamatiou.com/how-to-wordpress-to-jekyll
  • http://spparker.com/posts/2011-04-26-keeping-jekyll-classy
  • http://help.github.com/articles/github-flavored-markdown.html

Code highlighting test

Can we

We can highlight Erlang code:

start([Config]) ->
    File = (atom_to_list(Config)),
    io:format("ws start:~p~n",[File]),
    Conf = read_config(File),
    start_link(Conf).

or Python:

def phi(n):
    """Computes the Euler's totient function φ(n) -
    number of positive numbers less than or
    equal to n which are relatively prime to n."""
    from functools import reduce
    from operator  import mul
    return n * reduce(mul, [(1 - 1 / p) for p in prime_factors(n)], 1)

Quotes test

Quotes seem to work properly. I can make “curly quotes” but not ``regular quotes’’. Not a big deal for the time being.

Stuff that is broken

  • Autolinking
  • For a static site, it seems I’ve managed to make it pretty slow.

Making Autolinking work

To get autolinking to work, add to _config.yml:

rdiscount:
    extensions: [smart, autolink]

Comments

Will use Disqus for this. It seems to work nicely in other blogs like Joe Armstrong’s. If anybody knows how to make a tweet link please add a comment. When possible. Of course.

Tests

Page.title = (Testing)

Page.url = (/2013/04/17/Testing.html)

Citation: A dream I once had.

  1. Whatever, right? 

« Past Future »

Tagged : Jekyll, Bootstrap, GitHub


Comments:

comments powered by Disqus