port to gitlab.

This commit is contained in:
Dave G
2018-07-16 21:46:31 -04:00
commit 2c3ba62ee1
231 changed files with 11557 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
---
title: "[中文] 《长恨歌》"
date: 2017-08-30T01:37:56+08:00
lastmod: 2017-08-30T01:37:56+08:00
draft: false
tags: ["preview", "中文", "tag-1"]
categories: ["中文"]
author: "Wikipedia"
contentCopyright: '<a rel="license noopener" href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" target="_blank">Creative Commons Attribution-ShareAlike License</a>'
---
>《长恨歌》是中国唐朝诗人白居易的一首长篇叙事诗。
# 第一段:贵妃受宠爱
汉皇重色思倾国,御宇多年求不得。杨家有女初长成,养在深闺人未识。
天生丽质难自弃,一朝选在君王侧。回眸一笑百媚生,六宫粉黛无颜色。
春寒赐浴华清池,温泉水滑洗凝脂。侍儿扶起娇无力,始是新承恩泽时。
云鬓花颜金步摇,芙蓉帐暖度春宵。春宵苦短日高起,从此君王不早朝。
承欢侍宴无闲暇,春从春游夜专夜。后宫佳丽三千人,三千宠爱在一身。
金屋妆成娇侍夜,玉楼宴罢醉和春。姊妹弟兄皆列士,可怜光彩生门户。
遂令天下父母心,不重生男重生女。骊宫高处入青云,仙乐风飘处处闻。
缓歌慢舞凝丝竹,尽日君王看不足。渔阳鼙鼓动地来,惊破霓裳羽衣曲。
# 第二段:马嵬惊变
九重城阙烟尘生,千乘万骑西南行。翠华摇摇行复止,西出都门百余里。
六军不发无奈何,宛转蛾眉马前死。花钿委地无人收,翠翘金雀玉搔头。
君王掩面救不得,回看血泪相和流。黄埃散漫风萧索,云栈萦纡登剑阁。
峨嵋山下少人行,旌旗无光日色薄。蜀江水碧蜀山青,圣主朝朝暮暮情。
行宫见月伤心色,夜雨闻铃肠断声。
# 第三段:玄宗皇帝思念
天旋地转回龙驭,到此踌躇不能去。马嵬坡下泥土中,不见玉颜空死处。
君臣相顾尽霑衣,东望都门信马归。归来池苑皆依旧,太液芙蓉未央柳。
芙蓉如面柳如眉,对此如何不泪垂。春风桃李花开日,秋雨梧桐叶落时。
西宫南内多秋草,落叶满阶红不扫。梨园弟子白发新,椒房阿监青娥老。
夕殿萤飞思悄然,孤灯挑尽未成眠。迟迟钟鼓初长夜,耿耿星河欲曙天。
鸳鸯瓦冷霜华重,翡翠衾寒谁与共。悠悠生死别经年,魂魄不曾来入梦。
# 第四段:仙界寻妃
临邛道士鸿都客,能以精诚致魂魄。为感君王辗转思,遂教方士殷勤觅。
排空驭气奔如电,升天入地求之遍。上穷碧落下黄泉,两处茫茫皆不见。
忽闻海上有仙山,山在虚无缥缈间。楼阁玲珑五云起,其中绰约多仙子。
中有一人字太真,雪肤花貌参差是。金阙西厢叩玉扃,转教小玉报双成。
闻道汉家天子使,九华帐里梦魂惊。揽衣推枕起徘徊,珠箔银屏迤逦开。
云髻(鬓?)半偏新睡觉,花冠不整下堂来。风吹仙袂飘飘(飖)举,犹似霓裳羽衣舞。
玉容寂寞泪阑干,梨花一枝春带雨。含情凝睇谢君王,一别音容两渺茫。
昭阳殿里恩爱绝,蓬莱宫中日月长。回头下望人寰处,不见长安见尘雾。
唯将旧物表深情,钿合金钗寄将去。钗留一股合一扇,钗擘黄金合分钿。
但教心似金钿坚,天上人间会相见。临别殷勤重寄词,词中有誓两心知。
七月七日长生殿,夜半无人私语时。在天愿作比翼鸟,在地愿为连理枝。
天长地久有时尽,此恨绵绵无绝期。

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,165 @@
---
title: "Theme preview"
date: 2017-08-23T18:03:09+08:00
lastmod: 2017-08-23T18:03:09+08:00
draft: false
tags: ["preview", "Theme preview", "tag-3"]
categories: ["Theme preview", "category-2", "category-3"]
author: '<a href="https://laozhu.me" rel="noopener" target="_blank">米老朱</a>'
weight: 10
contentCopyright: '<a href="https://laozhu.me/post/hugo-nuo-post-preview/" rel="noopener" target="_blank">See origin</a>'
---
> Copy from [《Hugo 主题 Nuo 文章样式预览》](https://laozhu.me/post/hugo-nuo-post-preview/)
这篇文章集中说明主题所支持的 Markdown 语法和 Hugo Shortcodes 插件,你也可以在这里预览到他们的样子。如果你不喜欢某些样式,可以去修改 css/ 文件夹下的 .scss 文件。
# 1.标题
# H1
## H2
### H3
#### H4
##### H5
###### H6
## 2. 段落
使用单引号 `*` 或者单下划线 `_` 标记 *斜体强调* 或者 _斜体强调_
使用两个引号 `**` 或者两个下划线 `__` 标记 **加粗强调** 或者 __加粗强调__
引号和下划线可叠加使用 → **只是加粗 _斜体并加粗_**
使用两个波浪线 `~~` 标记 ~~已删除文字~~
插入文字暂无 `Markdown` 标记,直接使用 `HTML` 标签 `<ins>` 标记 <ins>插入文字</ins>
行内代码使用反引号标记 → `print("hello world")`
上标 X<sup>2</sup> / 下标 X<sub>2</sub>
按键 <kbd>Ctrl</kbd>
外链 [chekun's blog](https://chekun.me)
页面内段落 [图片](#section-07)
*注意:你可以通过 `{#section-id}` 方式自定义段落锚点*
参考资料 <sup>[[1]](#ref01)</sup><sup>[[2]](#ref02)</sup>
## 3. 列表
以下的无序、有序和任务列表均支持二级嵌套,不建议使用二级以上嵌套。
### 3.1 无序列表
* 无序列表
- 嵌套的无序列表
- 嵌套的无序列表
* 无序列表
1. 嵌套的有序列表
2. 嵌套的有序列表
* 无序列表
### 3.2 有序列表
1. 有序列表
1. 嵌套的有序列表
2. 嵌套的有序列表
2. 有序列表
- 嵌套的无序列表
- 嵌套的无序列表
3. 有序列表
### 3.3 定义列表
CSS
: 层叠样式表
### 3.4 任务列表
- [ ] Cmd Markdown 开发
- [ ] 改进 Cmd 渲染算法,使用局部渲染技术提高渲染效率
- [ ] 支持以 PDF 格式导出文稿
- [x] 新增Todo列表功能 [语法参考](https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments)
- [x] 改进 LaTex 功能
- [x] 修复 LaTex 公式渲染问题
- [x] 新增 LaTex 公式编号功能 [语法参考](http://docs.mathjax.org/en/latest/tex.html#tex-eq-numbers)
- [ ] 七月旅行准备
- [ ] 准备邮轮上需要携带的物品
- [ ] 浏览日本免税店的物品
- [x] 购买蓝宝石公主号七月一日的船票
## 4. 引用
> 野火烧不尽,春风吹又生。
>
> <cite>-- 白居易《赋得古原草送别》</cite>
## 5. 代码
以本站的一段 `JavaScript` 代码做演示。
```javascript
// Initialize video.js player
if (document.getElementById('my-player') !== null) {
/* eslint-disable no-undef */
videojs('#my-player', {
aspectRatio: '16:9',
fluid: true,
});
}
```
## 6. 分割线
---
中间能写字的分割线,如果你修改了分割线中字的内容,请配合修改 `CSS` 样式。
## 7. 图片 {#section-07}
不带标题的图片,如下图👇
![hugo even showcase](https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png "showcase.png")
带标题的图片,如下图👇
{{% figure class="center" src="https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png" alt="hugo even showcase" title="showcase.png" %}}
## 8. 表格
使用 `Markdown` 画的表格,如下表👇
| Tables | Are | Cool |
| :------------ |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
## 9. 数学公式
主题使用了 [MathJax](https://www.mathjax.org/) 开源库来实现对数学公式的支持,使用 `$$` 标记。
$$ evidence\_{i}=\sum\_{j}W\_{ij}x\_{j}+b\_{i} $$
## 10. 网易云音乐
主题文章中可以轻松插入 [网易云音乐](https://music.163.com/) 的指定音乐,你可以根据需要将音乐设置为自动播放,在主题目录 `layouts/shortcodes` 文件夹下的 `music.html` 对该标签进行定义。
{{% music "28196554" %}}
## 11. YouTube
由于不明原因可能无法播放。
{{% youtube "wC5pJm8RAu4" %}}
## 参考资料
1. <a id="ref01">[Markdown Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)</a>
2. <a id="ref02">[Markdown 语法手册](https://www.zybuluo.com/EncyKe/note/120103)</a>

View File

@@ -0,0 +1,15 @@
---
title: "This is a hidden post."
date: 2018-03-08T17:40:19+08:00
lastmod: 2018-03-08T22:01:19+08:00
draft: false
author: '<a href="https://halu.lu" target="_blank">Halulu</a>'
hiddenFromHomePage: true
---
This post is hidden from the home page.
<!--more-->
But you can see it in archives, rss or other pages.

View File

@@ -0,0 +1,38 @@
---
title: "[日本語] 敬語体系"
date: 2017-08-30T01:53:34+08:00
lastmod: 2017-08-30T01:53:34+08:00
draft: false
keywords: []
description: ""
tags: ["preview", "日本語", "tag-4"]
categories: ["日本語"]
author: "Wikipedia"
contentCopyright: '<a rel="license noopener" href="https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" target="_blank">Creative Commons Attribution-ShareAlike License</a>'
---
> 日本語の敬語体系は、一般に、大きく尊敬語・謙譲語・丁寧語に分類される。文化審議会国語分科会は、2007年2月に「敬語の指針」を答申し、これに丁重語および美化語を含めた5分類を示している。
# 尊敬語
尊敬語は、動作の主体を高めることで、主体への敬意を表す言い方である。動詞に「お(ご)~になる」を付けた形、また、助動詞「(ら)れる」を付けた形などが用いられる。たとえば、動詞「取る」の尊敬形として、「(先生が)お取りになる」「(先生が)取られる」などが用いられる。
語によっては、特定の尊敬語が対応するものもある。たとえば、「言う」の尊敬語は「おっしゃる」、「食べる」の尊敬語は「召し上がる」、「行く・来る・いる」の尊敬語は「いらっしゃる」である。
# 謙譲語
謙譲語は、古代から基本的に動作の客体への敬意を表す言い方であり、現代では「動作の主体を低める」と解釈するほうがよい場合がある。動詞に「お~する」「お~いたします」(謙譲語+丁寧語)をつけた形などが用いられる。たとえば、「取る」の謙譲形として、「お取りする」などが用いられる。
語によっては、特定の謙譲語が対応するものもある。たとえば、「言う」の謙譲語は「申し上げる」、「食べる」の謙譲語は「いただく」、「(相手の所に)行く」の謙譲語は「伺う」「参上する」「まいる」である。
なお、「夜も更けてまいりました」の「まいり」など、謙譲表現のようでありながら、誰かを低めているわけではない表現がある。これは、「夜も更けてきた」という話題を丁重に表現することによって、聞き手への敬意を表すものである。宮地裕は、この表現に使われる語を、特に「丁重語」と称している[104][105]。丁重語にはほかに「いたし(マス)」「申し(マス)」「存じ(マス)」「小生」「小社」「弊社」などがある。文化審議会の「敬語の指針」でも、「明日から海外へまいります」の「まいり」のように、相手とは関りのない自分側の動作を表現する言い方を丁重語としている。
# 丁寧語
丁寧語は、文末を丁寧にすることで、聞き手への敬意を表すものである。動詞・形容詞の終止形で終わる常体に対して、名詞・形容動詞語幹などに「です」を付けた形(「学生です」「きれいです」)や、動詞に「ます」をつけた形(「行きます」「分かりました」)等の丁寧語を用いた文体を敬体という。
一般に、目上の人には丁寧語を用い、同等・目下の人には丁寧語を用いないといわれる。しかし、実際の言語生活に照らして考えれば、これは事実ではない。母が子を叱るとき、「お母さんはもう知りませんよ」と丁寧語を用いる場合ももある。丁寧語が用いられる多くの場合は、敬意や謝意の表現とされるが、、稀に一歩引いた心理的な距離をとろうとする場合もある。
「お弁当」「ご飯」などの「お」「ご」も、広い意味では丁寧語に含まれるが、宮地裕は特に「美化語」と称して区別する[104][105]。相手への丁寧の意を示すというよりは、話し手が自分の言葉遣いに配慮した表現である。したがって、「お弁当食べようよ。」のように、丁寧体でない文でも美化語を用いることがある。文化審議会の「敬語の指針」でも「美化語」を設けている。

View File

@@ -0,0 +1,131 @@
---
title: "JS Flowchart Diagrams"
date: 2015-03-04T21:57:50+08:00
draft: false
flowchartDiagrams:
enable: true
options: "{
'x': 0,
'y': 0,
'line-width': 3,
'line-length': 50,
'text-margin': 10,
'font-size': 14,
'font-color': 'black',
'line-color': 'black',
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no',
'arrow-end': 'block',
'scale': 1,
'i-am-a-comment-1': 'Do not use //!',
'i-am-a-comment-2': 'style symbol types',
'symbols': {
'start': {
'font-color': 'red',
'element-color': 'green',
'fill': 'yellow'
},
'end': {
'class': 'end-element'
}
},
'i-am-a-comment-3': 'even flowstate support ;-)',
'flowstate': {
'request': {'fill': 'blue'}
}
}"
---
## Usage
```flowchart
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request
st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e
```
<!--more-->
```flowchart
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request
st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e
```
## Configuration
Configure for all home and regular pages:
```toml
[params.flowchartDiagrams]
enable = true
options = ""
```
Configure for a single post in the front matter (**Params in front matter have higher precedence**):
```yml
flowchartDiagrams:
enable: true
options: "{
'x': 0,
'y': 0,
'line-width': 3,
'line-length': 50,
'text-margin': 10,
'font-size': 14,
'font-color': 'black',
'line-color': 'black',
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no',
'arrow-end': 'block',
'scale': 1,
'i-am-a-comment-1': 'Do not use //!',
'i-am-a-comment-2': 'style symbol types',
'symbols': {
'start': {
'font-color': 'red',
'element-color': 'green',
'fill': 'yellow'
},
'end': {
'class': 'end-element'
}
},
'i-am-a-comment-3': 'even flowstate support ;-)',
'flowstate': {
'request': {'fill': 'blue'}
}
}"
```
See more information from https://github.com/adrai/flowchart.js.

View File

@@ -0,0 +1,95 @@
---
title: "JS Sequence Diagrams"
date: 2015-03-04T21:57:45+08:00
draft: false
sequenceDiagrams:
enable: true
options: "{theme: 'hand'}"
---
## Usage
```sequence
Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
```
<!--more-->
```sequence
Andrew->China: Says Hello
Note right of China: China thinks\nabout it
China-->Andrew: How are you?
Andrew->>China: I am good thanks!
```
## Configuration
Configure for all home and regular pages:
```toml
[params.sequenceDiagrams]
enable = true
options = "{theme: 'hand'}"
```
Configure for a single post in the front matter (**Params in front matter have higher precedence**):
```yml
sequenceDiagrams:
enable: true
options: "{theme: 'hand'}"
```
### Options
```js
options = {
// Change the styling of the diagram, typically one of 'simple', 'hand'. New themes can be registered with registerTheme(...).
theme: string,
// CSS style to apply to the diagram's svg tag. (Only supported if using snap.svg)
css_class: string,
}
```
See more information from https://github.com/bramp/js-sequence-diagrams.
## Examples
```sequence
Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
```
```sequence
Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
```
---
```sequence
# Example of a comment.
Note left of A: Note to the\n left of A
Note right of A: Note to the\n right of A
Note over A: Note over A
Note over A,B: Note over both A and B
```
```sequence
# Example of a comment.
Note left of A: Note to the\n left of A
Note right of A: Note to the\n right of A
Note over A: Note over A
Note over A,B: Note over both A and B
```

View File

@@ -0,0 +1,136 @@
---
title: "Shortcodes"
date: 2016-08-30T16:01:23+08:00
lastmod: 2018-02-01T18:01:23+08:00
draft: false
tags: ["shortcodes"]
categories: ["shortcodes"]
---
# center, right, left
```
## default
![img](/path/to/img.gif "img")
{{%/* center */%}}
## center
![img](/path/to/img.gif "img")
{{%/* /center */%}}
{{%/* right */%}}
## right
![img](/path/to/img.gif "img")
{{%/* /right */%}}
{{%/* left */%}}
## left
![img](/path/to/img.gif "img")
{{%/* /left */%}}
```
<!--more-->
## default
![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img")
{{% center %}}
## center
![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img")
{{% /center %}}
{{% right %}}
## right
![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img")
{{% /right %}}
{{% left %}}
## left
![img](https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg "img")
{{% /left %}}
---
## figure with class
```
{{%/* figure src="/path/to/img.gif" title="default" alt="img" */%}}
{{%/* figure class="center" src="/path/to/img.gif" title="center" alt="img" */%}}
{{%/* figure class="right" src="/path/to/img.gif" title="right" alt="img" */%}}
{{%/* figure class="left" src="/path/to/img.gif" title="left" alt="img" */%}}
```
{{% figure src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="default" alt="img" %}}
{{% figure class="center" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="center" alt="img" %}}
{{% figure class="right" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="right" alt="img" %}}
{{% figure class="left" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="left" alt="img" %}}
---
```
{{%/* center */%}}
## hybrid in center
{{%/* figure src="/path/to/img.gif" title="default" alt="img" */%}}
{{%/* figure class="right" src="/path/to/img.gif" title="right" alt="img" */%}}
{{%/* left */%}}
{{%/* figure src="/path/to/img.gif" title="default in left" alt="img" */%}}
{{%/* /left */%}}
{{%/* /center */%}}
```
{{% center %}}
## hybrid in center
{{% figure src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="default" alt="img" %}}
{{% figure class="right" src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="right" alt="img" %}}
{{% left %}}
{{% figure src="https://wx1.sinaimg.cn/small/006SToa6ly1fm07summ2gj30qo0qomzu.jpg" title="default in left" alt="img" %}}
{{% /left %}}
{{% /center %}}
---
# Music 163
## Params
- `id`
- required param
- you can extract from music url
- url format http://music.163.com/#/song?id=28196554
- Fiddle `auto`
- optional param
- default value 0
- you can overwrite it with 1
## Examples
- Simple
```
{{%/* music "28196554" */%}}
{{%/* music "28196554" "1" */%}}
```
- Named Params
```
{{%/* music id="28196554" */%}}
{{%/* music id="28196554" auto="1" */%}}
```
- Example
```
{{%/* music "28196554" */%}}
```
{{% music "28196554" %}}
<style>
.post-content img {
height: 64px;
}
</style>

View File

@@ -0,0 +1,100 @@
---
title: "Syntax Highlighting"
date: 2011-08-30T16:01:23+08:00
lastmod: 2017-08-30T16:01:23+08:00
draft: false
tags: ["preview", "Syntax Highlighting", "tag-5"]
categories: ["Syntax Highlighting"]
toc: false
---
```js
function helloWorld () {
alert("Hello, World!")
}
```
<!--more-->
```java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
```
```kotlin
package hello
fun main(args: Array<String>) {
println("Hello World!")
}
```
```c
#include <stdio.h>
/* Hello */
int main(void){
printf("Hello, World!");
return 0;
}
```
```cpp
// 'Hello World!' program
#include <iostream>
int main(){
std::cout << "Hello World!" << std::endl;
return 0;
}
```
```cs
using System;
class HelloWorld{
public static void Main(){
System.Console.WriteLine("Hello, World!");
}
}
```
```html
<html>
<body>
Hello, World!
</body>
</html>
```
```go
package main
import fmt "fmt"
func main()
{
fmt.Printf("Hello, World!\n");
}
```
```scala
object HelloWorld with Application {
Console.println("Hello, World!");
}
```
```php
<?php
echo 'Hello, World!';
?>
```
```python
print("Hello, World!")
```