2020年3月的第一天,我开始使用Hugo

Markdown渲染

使用 Markdown1可以效率的书写文档, 直接转换成 HTML2

h1

h2

h3

h4

h5
  • 任务一 未完成
  • 任务二 已完成

斜体 粗体 加粗斜体 删除线

我的Github

我经常去的几个网站Googlegithub

1
2
3
4
我经常去的几个网站[Google][1]、[github][2]。

[1]:http://www.google.com 
[2]:https://github.com

C++代码高亮

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <cstdio>
#include <cctype>

const int MAXN = 10000010;

int isPrime[MAXN];

inline int getInt() {
  int sum(0); char _c;
  while (!isdigit(_c = getchar()));
  do sum = sum * 10 + _c - '0';
  while (isdigit(_c = getchar()));
  return sum;
}

inline void sieveSundaram(int n) {
  isPrime[0] = 1;
  for (int i = 1; i <= n; ++i) {
    int upto = (n - i) / (i << 1 | 1);
    for (int j = 1; j <= upto; ++j)
      isPrime[i + j + (i * j << 1)] = 1;
  } return;
}

int main() {
  int n = getInt(), m = getInt();
  sieveSundaram(n >> 1);
  do {
    int num = getInt();
    if (num & 1)
      puts(!isPrime[num >> 1] ? "Yes" : "No");
    else
      puts(num == 2 ? "Yes" : "No");
  } while (--m);
  return 0;
}

Mathjax数学公式

$$\int_{x^2 + y^2 \leq R^2} f(x,y),dx,dy = \int_{\theta=0}^{2\pi} \int_{r=0}^R f(r\cos\theta,r\sin\theta) r,dr,d\theta$$

行内公式$E = mc^2$的说

插入图片


上面是分割线©®¥

先这样吧,还是蛮好玩的

多语言

中文

豫章故郡,洪都新府。星分翼轸,地接衡庐。襟三江而带五湖,控蛮荆而引瓯越。物华天宝,龙光射牛斗之墟;人杰地灵,徐孺下陈蕃之榻。雄州雾列,俊采星驰。台隍枕夷夏之交,宾主尽东南之美。都督阎公之雅望,棨戟遥临;宇文新州之懿范,襜帷暂驻。十旬休假,胜友如云;千里逢迎,高朋满座。腾蛟起凤,孟学士之词宗;紫电青霜,王将军之武库。家君作宰,路出名区;童子何知,躬逢胜饯。

日本語

臣は本布衣にして、南陽に躬耕し、苟も性命を乱世に全うし、聞達を諸侯に求めざりき。先帝臣の卑鄙なるを以てせず、猥に自ら枉屈し、三たび臣を草盧の中に顧みて、臣に諮るに当世の事を以てせり。是に由りて感激し、遂に先帝に許すに駆馳を以てす。後、傾覆に値い、任を敗軍の際に受け、命を危難の間に奉じ、爾来二十有一年なり。

English

At the Penfield mood organ, Iran Deckard sat with her right index finger touching the numbered dial. But she did not dial; she felt too listless and ill to want anything: a burden which closed off the future and any possibilities which it might once have contained. If Rick were here, she thought, he’d get me to dial 3 and that way I’d find myself wanting to dial something important, ebullient joy or if not that then possibly an 888, the desire to watch TV no matter what’s on it. I wonder what is on it, she thought. And then she wondered again where Rick had gone. He may be coming back and on the other hand he may not be, she said to herself, and felt her bones within her shrink with age.

Esperanto

Number Esperanto
0 nulo
1 unu
2 du
3 tri
4 kvar
5 kvin
6 ses
7 sep
8 ok
9 naŭ
10 dek

Arabic

هذه عربية


  1. Markdown是一种纯文本标记语言 ↩︎

  2. HyperText Markup Language 超文本标记语言 ↩︎