listen’s blog

  • 首页
  • 归档

MathJax with Jekyll

发表于 2015-12-24 | 分类于 opinion

One of the rewards of switching my website to Jekyll is the ability to support MathJax, which means I can write LaTeX-like equations that get nicely displayed in a web browser, like this one \( \sqrt{\frac{n!}{k!(n-k)!}} \) or this one \( x^2 + y^2 = r^2 \).

阅读全文 »

Elements

发表于 2015-12-23 | 分类于 Foo

The purpose of this post is to help you make sure all of HTML elements can display properly. If you use CSS reset, don’t forget to redefine the style by yourself.

阅读全文 »

Gallery Post

发表于 2015-12-22 | 分类于 Photo
Gallery Post Test. 测试图片类文章的显示。
阅读全文 »

中文測試

发表于 2015-12-21 | 分类于 test/test

This is a Chinese test post.

阅读全文 »

日本語テスト

发表于 2015-12-20

This is a Japanese test post.

阅读全文 »

Excerpts

发表于 2015-12-19

The following contents should be invisible in home/archive page.

阅读全文 »

Block

发表于 2015-12-18 | 分类于 Foo

This post is used for testing tag plugins. See docs for more info.

阅读全文 »

Highlight Test

发表于 2015-12-17 | 分类于 Test

This is a highlight test.

Normal block

1
alert('Hello World!');
1
print 'helloworld'

Highlight block

1
alert( 'Hello, world!' );
1
print 'helloworld'
1
2
3
def foo
  puts 'foo'
end
def foo
  puts 'foo'
end
1
2
3
def foo
  puts 'foo'
end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>

using namespace std;

void foo(int arg1, int arg2)
{

}

int main()
{
  string str;
  foo(1, 2);
  cout << "Hello World" << endl;
  return 0;
}
阅读全文 »

Images

发表于 2015-12-16

This is a image test post.

阅读全文 »

Emoji Test

发表于 2015-12-15

This is an emoji test. :smile: lol.

阅读全文 »
1 2 3
listen

listen

a programmer’s tech world

© 2019 listen