diff --git a/assets/css/_common/_page/post.scss b/assets/css/_common/_page/post.scss index da2d13b..9e1a02d 100644 --- a/assets/css/_common/_page/post.scss +++ b/assets/css/_common/_page/post.scss @@ -196,6 +196,22 @@ color: #7E848F; } } + + .align-center { + text-align: center; + } + + .align-right { + text-align: right; + } + + .align-left { + text-align: left; + } + + .float-right { + float: right; + } } p { diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 772c19f..ec53668 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -36,6 +36,14 @@ {{ $countdown := ` ` }} + +{{ $metingjs := ` + + + + + +` }} {{ $jquery | safeHTML }} {{ $typeit | safeHTML }} @@ -49,8 +57,14 @@ {{ end }} {{ if .IsPage }} - {{ $prettify | safeHTML }} + {{ if .Params.Code }} + {{ $prettify | safeHTML }} + {{ end }} + {{ if .Params.Music }} + {{ $metingjs | safeHTML }} + {{ end }} {{ $countdown | safeHTML }} + {{ $scripts = $scripts | append $dynamicToTop }} {{ if $postHasImages }} diff --git a/layouts/shortcodes/align-center.html b/layouts/shortcodes/align-center.html new file mode 100644 index 0000000..84b6b8b --- /dev/null +++ b/layouts/shortcodes/align-center.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/layouts/shortcodes/align-left.html b/layouts/shortcodes/align-left.html new file mode 100644 index 0000000..e87ce42 --- /dev/null +++ b/layouts/shortcodes/align-left.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/layouts/shortcodes/align-right.html b/layouts/shortcodes/align-right.html new file mode 100644 index 0000000..807741c --- /dev/null +++ b/layouts/shortcodes/align-right.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/layouts/shortcodes/float-right.html b/layouts/shortcodes/float-right.html new file mode 100644 index 0000000..6dbefe0 --- /dev/null +++ b/layouts/shortcodes/float-right.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
diff --git a/layouts/shortcodes/music.html b/layouts/shortcodes/music.html new file mode 100644 index 0000000..719d5c2 --- /dev/null +++ b/layouts/shortcodes/music.html @@ -0,0 +1,21 @@ +{{ if .IsNamedParams }} + +{{ else }} + > +{{ end }}