diff --git a/.gitignore b/.gitignore index 910eb0a..fe55a03 100644 --- a/.gitignore +++ b/.gitignore @@ -122,4 +122,4 @@ typings/ # End of https://www.gitignore.io/api/node,macos -/public/ +/dist/ diff --git a/config.yaml b/config.yaml index 20031c8..fb77cef 100644 --- a/config.yaml +++ b/config.yaml @@ -20,4 +20,5 @@ pages: author: login: polvcode avatar: 'https://en.gravatar.com/userimage/35152960/7140205ee2a71cbe54d3f2ac43c0370d.jpg?size=24' - link: https://polvcode.dev \ No newline at end of file + link: https://polvcode.dev +output: dist/ \ No newline at end of file diff --git a/deploy.js b/deploy.js index 7856c01..5a6497c 100644 --- a/deploy.js +++ b/deploy.js @@ -1,5 +1,4 @@ const ghPages = require("gh-pages"); -const fs = require("fs"); const {spawnSync} = require("child_process"); const rimraf = require("rimraf"); @@ -9,9 +8,7 @@ spawnSync("cogear", ["build"], { stdio: "inherit" }); -fs.writeFileSync("public/index.php", ""); - -ghPages.publish("public", { +ghPages.publish("dist", { branch: "master", repo: "https://git.heroku.com/zhdiary.git" }, (err) => { diff --git a/src/pages/p/2019/08/千字文2.2.pug b/src/pages/p/2019/08/千字文2.2.pug new file mode 100644 index 0000000..68e2edf --- /dev/null +++ b/src/pages/p/2019/08/千字文2.2.pug @@ -0,0 +1,118 @@ +--- +title: "千字文 - 2/2" +date: "2019-08-21" +tags: + - 千字文 + - 汉字 +--- + +.w-100.mt-3: h3.text-center 始制文字,乃服衣裳。 +.w-100 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/22987.gif" height=100) + figcaption.text-center shi3 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/21046.gif" height=100) + figcaption.text-center zhi4 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/25991.gif" height=100) + figcaption.text-center wen2 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/23383.gif" height=100) + figcaption.text-center zi4 +.w-100 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/20035.gif" height=100) + figcaption.text-center nai3 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/26381.gif" height=100) + figcaption.text-center fu2 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/34915.gif" height=100) + figcaption.text-center yi1 + figure.d-inline-block + img(src="https://www.mdbg.net/chinese/rsc/img/stroke_anim/35059.gif" height=100) + figcaption.text-center chang2 + +| === + +.w-100.mt-3 + :markdown + 开始 (開始) | kāishǐ | to begin / beginning / to start / initial / CL: 個|个 + 始终 (始終) | shǐzhōng | from beginning to end / all along + 初始 | chūshǐ | initial / starting (point) + 创始 (創始) | chuàngshǐ | to initiate / to found + 控制 | kòngzhì | control / to exercise control over / to contain + 制造 (製造) | zhìzào | to manufacture / to make + 制作 (製作) | zhìzuò | to make / to manufacture + 制度 | zhìdù | system (e.g. political, adminstrative etc) / institution / CL: 個|个 + 复制 (複製) | fùzhì | to duplicate / to make a copy of / to copy / to reproduce / to clone + 制品 (製品) | zhìpǐn | products / goods + 编制 (編制) | biānzhì | to establish (a unit or department) / staffing structure (excluding temporary and casual staff) + 编制 (編製) | biānzhì | to weave / to plait / to compile / to put together (a lesson plan, budget etc) + 强制 (強制) | qiángzhì | to enforce / enforcement / forcibly / compulsory + 法制 | fǎzhì | legal system and institutions + 法制 (法製) | Fǎzhì | made in France + 制药 (制藥) | zhìyào | to manufacture medicine + 限制 | xiànzhì | to restrict / to limit / to confine / restriction / limit / CL: 個|个 + 文件 | wénjiàn | document / file / CL: 份 + 英文 | Yīngwén | English (language) + 文字 | wénzì | character / script / writing / written language / writing style / phraseology / CL: 個|个 + 文化 | wénhuà | culture / civilization / cultural / CL: 個|个, 種|种 + 文章 | wénzhāng | article / essay / literary works / writings / hidden meaning / CL: 篇, 段, 頁|页 + 文明 | wénmíng | civilized / civilization / culture / CL: 個|个 + 文库 (文庫) | wénkù | collection of documents / library / book series / sequence of data, esp. genome + 文学 (文學) | wénxué | literature / CL: 種|种 + 人文 | rénwén | humanities / human affairs / culture + 字符 | zìfú | character (computing) + 文字 | wénzì | character / script / writing / written language / writing style / phraseology / CL: 個|个 + 名字 | míngzi | name (of a person or thing) / CL: 個|个 + 数字 (數字) | shùzì | numeral / digit / number / figure / amount / digital (electronics etc) / CL: 個|个 + 字典 | zìdiǎn | dictionary / character dictionary / CL: 本 + 字母 | zìmǔ | letter (of the alphabet) / CL: 個|个 + 字体 (字體) | zìtǐ | calligraphic style / typeface / font + 汉字 (漢字) | hànzì | Chinese character / CL: 個|个 / Japanese: kanji / Korean: hanja / Vietnamese: hán tự + 关键字 (關鍵字) | guānjiànzì | keyword + 字词 (字詞) | zìcí | letters or words / words or phrase + 数字化 (數字化) | shùzìhuà | to digitalize / digital + 写字楼 (寫字樓) | xiězìlóu | office building + 字号 (字號) | zìhào | characters and numbers (as used in a code) / alphanumeric code / serial number + 字号 (字號) | zìhao | character size / font size / fame / reputation / shop / name of a shop + 写字 (寫字) | xiězì | to write characters + 字幕 | zìmù | caption / subtitle + 字节 (字節) | zìjié | byte + 字符串 | zìfúchuàn | string (computer science) + 乃至 | nǎizhì | and even / to go so far as to + 木乃伊 | mùnǎiyī | mummy (preserved corpse) (loanword) + 乃是 | nǎishì | equivalent to either 是 or 就是 + 康乃馨 | kāngnǎixīn | carnation or clove pink / Dianthus caryophyllus (botany) + 乃尔 (乃爾) | nǎi'ěr | thus / like this + 服务 (服務) | fúwù | to serve / service / CL: 項|项 + 服务器 (服務器) | fúwùqì | server (computer) / CL: 臺|台 + 服装 (服裝) | fúzhuāng | dress / clothing / costume / clothes / CL: 身 + 衣服 | yīfu | clothes / CL: 件, 套 + 服饰 (服飾) | fúshì | apparel / clothing and personal adornment + 服务业 (服務業) | fúwùyè | service industry + 伺服 | sìfú | servo (small electric motor) / computer server + 征服 | zhēngfú | to conquer / to subdue / to vanquish + 舒服 | shūfu | comfortable / feeling well + 内衣 (內衣) | nèiyī | undergarment / underwear / CL: 件 + 衣柜 (衣櫃) | yīguì | wardrobe / armoire / CL: 個|个 + 洗衣 | xǐyī | laundry + 连衣裙 (連衣裙) | liányīqún | woman's dress / frock / gown + 制衣 | zhìyī | clothing manufacture + 睡衣 | shuìyī | night clothes / pajamas + 卫衣 (衛衣) | wèiyī | sweatshirt + 成衣 | chéngyī | ready-made clothes + 穿衣 | chuānyī | to wear clothes / clothing + 上衣 | shàngyī | jacket / upper outer garment / CL: 件 + 大衣 | dàyī | overcoat / topcoat / cloak / CL: 件 + 裳 | cháng | lower garment / skirts / petticoats / garments + 霓裳 | Nícháng | Nichang, abbr. for the Tang Dynasty song "Raiment of Rainbows and Feathers" 霓裳羽衣曲 or 霓裳羽衣舞 + 霓裳 | nícháng | nichang, rainbow colored clothes worn by the Eight Immortals 八仙 + 衣裳 | yīshang | clothes + 衣裳钩儿 (衣裳鈎兒) | yīshanggōur | clothes hook + style. + table td:first-child { + width: 10em; + } diff --git a/src/resources/static.json b/src/resources/static.json new file mode 100644 index 0000000..4cf4657 --- /dev/null +++ b/src/resources/static.json @@ -0,0 +1,3 @@ +{ + "root": "." +} \ No newline at end of file