From 5a5d0fe0d9d144af434f8d6277a7bdc85eda2db4 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Thu, 1 Feb 2018 21:28:11 +0800 Subject: feat: add `center`, `right`, `left` shortcodes --- layouts/shortcodes/center.html | 3 +++ layouts/shortcodes/left.html | 3 +++ layouts/shortcodes/right.html | 3 +++ src/css/_partial/_post/_content.scss | 12 ++++++++++++ 4 files changed, 21 insertions(+) create mode 100644 layouts/shortcodes/center.html create mode 100644 layouts/shortcodes/left.html create mode 100644 layouts/shortcodes/right.html diff --git a/layouts/shortcodes/center.html b/layouts/shortcodes/center.html new file mode 100644 index 0000000..e9022d0 --- /dev/null +++ b/layouts/shortcodes/center.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/layouts/shortcodes/left.html b/layouts/shortcodes/left.html new file mode 100644 index 0000000..c2c5102 --- /dev/null +++ b/layouts/shortcodes/left.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/layouts/shortcodes/right.html b/layouts/shortcodes/right.html new file mode 100644 index 0000000..37a9a33 --- /dev/null +++ b/layouts/shortcodes/right.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/src/css/_partial/_post/_content.scss b/src/css/_partial/_post/_content.scss index 8bcf700..ddc809e 100644 --- a/src/css/_partial/_post/_content.scss +++ b/src/css/_partial/_post/_content.scss @@ -115,4 +115,16 @@ list-style: none; padding-left: 1.5rem; } + + .align-center { + text-align: center; + } + + .align-right { + text-align: right; + } + + .align-left { + text-align: left; + } } -- cgit v1.2.3