https://github.com/libmir/blog
Mir official blog
https://github.com/libmir/blog
Last synced: about 1 year ago
JSON representation
Mir official blog
- Host: GitHub
- URL: https://github.com/libmir/blog
- Owner: libmir
- Created: 2016-08-17T14:15:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-10T08:18:28.000Z (almost 9 years ago)
- Last Synced: 2025-03-24T01:17:40.847Z (about 1 year ago)
- Language: HTML
- Homepage: http://blog.mir.dlang.io
- Size: 349 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)
for more featurs. Github-flavored markdown is supported.
Plugins
-------
### [jekyll-katex-block](https://github.com/drewsberry/jekyll-katex-block)
- 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)
### [jekyll-figure](https://github.com/paulrobertlloyd/jekyll-figure)
- `{% figure %}`
### Other
- needs rouge `>= 1.11.0` for the [D lexer](https://github.com/jneen/rouge/pull/435)
How to add figures
------------------
- generate `.svg`s (e.g. `inkscape --export-plain-svg=expo.svg expo.pdf`)