John-Colvin / blog

Official blog

Home Page:http://blog.mir.dlang.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blog

Install

bundler install --path vendor/bundle
bundle exec jekyll serve

To compile:

bundle exec jekyll build

Latex

Inline

A inline formulate: {% latex %} E = mc^2 {% endlatex %}.

Separate line

{% latex centered %}
E = mc^2
{% endlatex %}

Syntax highlighting

```d
var s = "JavaScript syntax highlighting";
alert(s);
```

With line numbers (WIP)

{% highlight d linenos %}
void main()
{
	writeln("aa");
}
{% endhighlight %}

See the Markdown cheatsheet for more featurs. Github-flavored markdown is supported.

Plugins

  • allows server-side rendering of LaTeX formulas (-> extremely fast)
  • KaTeX files in js and css should be updated from time to time (it's still under heavy development)
  • {% figure %}

Other

  • needs rouge >= 1.11.0 for the D lexer

How to add figures

  • generate .svgs (e.g. inkscape --export-plain-svg=expo.svg expo.pdf)

About

Official blog

http://blog.mir.dlang.io


Languages

Language:CSS 41.9%Language:Ruby 37.5%Language:HTML 20.6%