diff options
author | Chen Xianmin <xianmin12@gmail.com> | 2018-07-23 11:52:11 +0300 |
---|---|---|
committer | Chen Xianmin <xianmin12@gmail.com> | 2018-07-23 11:52:11 +0300 |
commit | 585a9a7e5ae19cd5240e285ad0a539301230d9a5 (patch) | |
tree | 2a477151697951cf007f050e97ee94f3ff696fdf /exampleSite | |
parent | 667197003d67fb3ceccfe78cc62a42918f5066ae (diff) |
feat: add shortcode notice
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/content/post/shortcode-notice.md | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/exampleSite/content/post/shortcode-notice.md b/exampleSite/content/post/shortcode-notice.md new file mode 100644 index 0000000..68bca0f --- /dev/null +++ b/exampleSite/content/post/shortcode-notice.md @@ -0,0 +1,73 @@ +--- +title: "Shortcodes Notice Preview" +date: 2018-03-03T16:01:23+08:00 +lastmod: 2018-03-04T16:01:23+08:00 +draft: false +tags: ["preview", "shortcodes", "tag-6"] +categories: ["docs", "shortcodes", "index"] +--- + +## normal use +`Note` example: + +```shortcode +{{%/* notice note */%}} +A notice disclaimer +{{%/* /notice */%}} +``` + +**Result:** +{{% notice note %}} +A notice disclaimer +{{% /notice %}} + + +You could **custom title** : + + +```shortcode +{{%/* notice note 笔记 */%}} +A notice disclaimer +{{%/* /notice */%}} +``` + +{{% notice note 笔记 %}} +A notice disclaimer +{{% /notice %}} + + +## tip + +```shortcode +{{%/* notice tip */%}} +A tip disclaimer +{{%/* /tip */%}} +``` + +{{% notice tip %}} +A tip disclaimer +{{% /notice %}} + + +## info +```shortcode +{{%/* notice info */%}} +A info disclaimer +{{%/* /notice */%}} +``` + +{{% notice info %}} +An information disclaimer +{{% /notice %}} + + +## warning +```shortcode +{{%/* notice warning */%}} +A warning disclaimer +{{%/* /notice */%}} +``` + +{{% notice warning %}} +An warning disclaimer +{{% /notice %}} |