这是一个测试博客

本文阅读量:   次

测试

这是一个测试页,顺便翻译一下语法看看


标题 Heading

HTML中的 <h1><h6>元素,可以用对应数目的前导#来实现。

H1

H2

H3

H4

H5
H6

段落 Paragraph

没错,这只是一个平平无奇的段落。


块引用 Blockquote

块引用,没别的,就是块引用,然后可以部分地修改内部。 必须有一个 footer 或者 cite 元素

Blockquote without attribution

随便说点啥. 随便 说点 啥.

Blockquote with attribution

某名人名言 — 某名人1

表 Table

Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.

Name Age
Bob 27
Alice 23

Inline Markdown within tables

Inline    Markdown    In    Table
italics bold strikethrough    code

代码块 Code Blocks

Code block with backticks

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example HTML5 Document</title>
</head>
<body>
  <p>Test</p>
</body>
</html>
1
2
3
# python
a = 1
print(a)
1
2
//java
int[] a = new int[2];
1
2
// kotlin
a : Int = 3
1
2
// c\c++
int a[4] = {1, 2, 3, 4};
1
2
// golang
a := 5

Code block indented with four spaces

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example HTML5 Document</title>
</head>
<body>
  <p>Test</p>
</body>
</html>

Code block with Hugo’s internal highlight shortcode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Example HTML5 Document</title>
</head>
<body>
  <p>Test</p>
</body>
</html>

List Types

Ordered List

  1. First item
  2. Second item
  3. Third item

Unordered List

Nested list

  1. First Sub-item
  2. Second Sub-item

Other Elements — abbr, sub, sup, kbd, mark

GIF is a bitmap image format.

H2O

Xn + Yn = Zn

Press CTRL+ALT+Delete to end the session.

Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.

Math

Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$

Block math:

$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$

emoji

i ❤️ hugo!


  1. The 这句话是某人在xxx说的 talk during Gopherfest, November 18, 2015. ↩︎