diff options
author | Dillon <dillonzq@outlook.com> | 2020-02-03 15:47:49 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-02-03 15:47:49 +0300 |
commit | 77d2decf86ba9e1d3d8d8dab4b6c30c53e573664 (patch) | |
tree | 786595ef3189acb20773cd9c2d0de19901dd9814 /exampleSite | |
parent | 52c7ad29a60cc4ee6c51217d11bb4877ef0cf88a (diff) |
fix(image): fix image safeURL bug
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 4 | ||||
-rw-r--r-- | exampleSite/zh/config.toml | 4 | ||||
-rw-r--r-- | exampleSite/zh/content/posts/Basic-Markdown-Preview.md | 4 | ||||
-rw-r--r-- | exampleSite/zh/content/posts/test.md | 316 |
4 files changed, 324 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index aee4015..925d4d6 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -124,7 +124,7 @@ dateFormatToUse = "2006-01-02" # Footer CopyRight Info ## Site creation time - since = 2018 + since = 2019 ## ICP info only in China (HTML format is allowed) icp = "" ## license info (HTML format is allowed) @@ -133,6 +133,8 @@ dateFormatToUse = "2006-01-02" # public git repo url to link lastmod git commit only then enableGitInfo is true gitRepo = "" + # whether to render mathematical formulas + math = true # whether to show link to Raw Markdown content of the post linkToMarkdown = true diff --git a/exampleSite/zh/config.toml b/exampleSite/zh/config.toml index a9b35d8..beee52f 100644 --- a/exampleSite/zh/config.toml +++ b/exampleSite/zh/config.toml @@ -124,7 +124,7 @@ dateFormatToUse = "2006-01-02" # 页面底部版权信息设置 ## 网站创立年份 - since = 2018 + since = 2019 ## ICP 备案信息,仅在中国使用 (允许使用 HTML 格式) icp = "" ## 许可协议信息 (允许使用 HTML 格式) @@ -133,6 +133,8 @@ dateFormatToUse = "2006-01-02" # 用于生成文章上次修改时间的公共 git 仓库路径,仅在 enableGitInfo 设为 true 时有效 gitRepo = "" + # 是否渲染数学公式 + math = true # 是否在文章页面显示原始 Markdown 文档链接 linkToMarkdown = true diff --git a/exampleSite/zh/content/posts/Basic-Markdown-Preview.md b/exampleSite/zh/content/posts/Basic-Markdown-Preview.md index 94198c9..65c50c7 100644 --- a/exampleSite/zh/content/posts/Basic-Markdown-Preview.md +++ b/exampleSite/zh/content/posts/Basic-Markdown-Preview.md @@ -435,7 +435,7 @@ Web image ![Web Picture](https://static.dillonzq.com/images/20190817130904-U6cPUk.jpg "Web Picture") Local image -![Local Picture](logo-revolunet-carre.jpg "Local Picture") +![Local Picture](/images/Apple-Devices-Preview.png) contact@revolunet.com @@ -456,7 +456,7 @@ Web image ![Web Picture](https://static.dillonzq.com/images/20190817130904-U6cPUk.jpg "Web Picture") Local image -![Local Picture](/苹果-touch-icon.png "Local Picture") +![Local Picture](/images/Apple-Devices-Preview.png) <https://www.google.com> diff --git a/exampleSite/zh/content/posts/test.md b/exampleSite/zh/content/posts/test.md new file mode 100644 index 0000000..513d81e --- /dev/null +++ b/exampleSite/zh/content/posts/test.md @@ -0,0 +1,316 @@ +--- +author: "" +author_link: "" +title: "Test Page" +date: 2019-08-04T22:49:56+08:00 +lastmod: 2019-08-17T22:41:56+08:00 +draft: true +description: "This is a test page." +show_in_homepage: false +show_description: false +license: "" + +tags: [ + "Hugo", + "主题", +] +categories: [ + "预览", +] + +featured_image: "" +featured_image_preview: "" + +comment: false +toc: true +auto_collapse_toc: true +math: true +dev: true +--- + +## This is a test page + +Test all features in development[^link test]. + +[^link test]: https://www.google.com/ + +<!--more--> + +## Test ECharts + +{{< dev/echarts >}} +title : { + text: '某站点用户访问来源', + subtext: '纯属虚构', + x:'center' +}, +tooltip : { + trigger: 'item', + formatter: "{a} <br/>{b} : {c} ({d}%)" +}, +legend: { + orient: 'vertical', + left: 'left', + data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎'] +}, +series : [ + { + name: '访问来源', + type: 'pie', + radius : '55%', + center: ['50%', '60%'], + data:[ + {value:335, name:'直接访问'}, + {value:310, name:'邮件营销'}, + {value:234, name:'联盟广告'}, + {value:135, name:'视频广告'}, + {value:1548, name:'搜索引擎'} + ], + itemStyle: { + emphasis: { + shadowBlur: 10, + shadowOffsetX: 0, + shadowColor: 'rgba(0, 0, 0, 0.5)' + } + } + } +] +{{< /dev/echarts >}} + +## Test Mermaid + +{{< mermaid >}} +classDiagram + Animal <|-- Duck + Animal <|-- Fish + Animal <|-- Zebra + Animal : +int age + Animal : +String gender + Animal: +isMammal() + Animal: +mate() + class Duck{ + +String beakColor + +swim() + +quack() + } + class Fish{ + -int sizeInFeet + -canEat() + } + class Zebra{ + +bool is_wild + +run() + } +{{< /mermaid >}} + +## Test Ruby + +人最重要的特点是会思考,建站初衷无非是保存思维的电子快照。 +当然各种文档工具亦或是简单的文本编辑器也能随时记录点滴, +选择建个人网站无非是想满足 [技术爱好者]^(Technology enthusiast) 的偏执。 + +## Test Music + +## Test Toc + +Toc + +### Toc1 + +Toc + +#### Toc 1-1 + +Toc + +#### Toc 1-2 + +Toc + +#### Toc 1-3 + +Toc + +### Toc2 + +Toc + +#### Toc 2-1 + +Toc + +#### Toc 2-2 + +Toc + +### Toc3 + +Toc + +## Test Table + +| Tables | Are | Cool | +| :------------ |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | + +## Test kbd + +<kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>del</kbd> + +## Test Mixed Lists + +Mixed Lists + +- item 1 + * [X] item A + * [ ] item B + more text + 1. item a + 2. itemb + 3. item c + * [X] item C +- item 2 +- item 3 + +Really Mixed Lists + +- item 1 + * [X] item A + - item B + more text + 1. item a + + itemb + + [ ] item c + 1. item C +1. item 2 +- [X] item 3 + +## Test fa (Font Awesome) + +:(fab fa-weixin fa-2x): + +## Test Footnote + +This is a footnote[^1] + +[^1]: This is a footnote + +## Test Admonition + +{{% admonition quote %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition quote "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition example "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition bug "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition danger "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition failure "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition warning "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition question "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition success "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition tip "I'm title!" false %}} +biu biu biu. +{{% /admonition %}} + +{{% admonition info "I'm title!" true %}} +**biu biu biu.** +{{% /admonition %}} + +{{% admonition note "I'm title!" false %}} +**biu biu biu.** +{{% /admonition %}} + +{{% admonition type="abstract" title="Test Admonition" %}} +This is a Admonition. +{{% /admonition %}} + +## Test Highlight + +`ls` 命令 + +```go +// You can edit this code! +// Click here and start typing. +package main + +import "fmt" + +func main() { + fmt.Println("Hello, 世界", "Hello, 世界", "Hello, 世界", "Hello, 世界", "Hello, 世界", "Hello, 世界", "Hello, 世界", "Hello, 世界") +} +``` + +- This is a list that contains multiple code blocks. + + - Here is an indented block + + ```Code + This will still be parsed + as a normal indented code block. + ``` + + - Here is a fenced code block: + + ```Code + This will still be parsed + as a fenced code block. + ``` + + > ```Code + > Blockquotes? + > Not a problem! + > ``` + +## Test Typeit + +{{< typeit group="test" tag="h3" >}} +Here is a story about love... +{{< /typeit >}} + +{{< typeit group="test" code="java" >}} +u.accepted(); // [2018/01/05](/since/) special +int a = 1; +{{< /typeit >}} + +## Test Img + +![Gif](https://static.dillonzq.com/images/20190817130904-U6cPUk.jpg "Title") + +## Test Align + +{{% align right %}} +**Test Text** +{{% /align %}} + +## Test Katex + +$$ c = \pm\sqrt{a^2 + b^2} $$ + +Left \\( c = \pm\sqrt{a^2 + b^2} \\) Right |