From a62a3e7755579d93ce3a87243dd277575930fffe Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 5 Nov 2018 21:49:16 -0500 Subject: init --- themes/even/layouts/shortcodes/center.html | 3 ++ themes/even/layouts/shortcodes/left.html | 3 ++ themes/even/layouts/shortcodes/music.html | 62 ++++++++++++++++++++++++++++++ themes/even/layouts/shortcodes/right.html | 3 ++ 4 files changed, 71 insertions(+) create mode 100644 themes/even/layouts/shortcodes/center.html create mode 100644 themes/even/layouts/shortcodes/left.html create mode 100644 themes/even/layouts/shortcodes/music.html create mode 100644 themes/even/layouts/shortcodes/right.html (limited to 'themes/even/layouts/shortcodes') diff --git a/themes/even/layouts/shortcodes/center.html b/themes/even/layouts/shortcodes/center.html new file mode 100644 index 0000000..e9022d0 --- /dev/null +++ b/themes/even/layouts/shortcodes/center.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/themes/even/layouts/shortcodes/left.html b/themes/even/layouts/shortcodes/left.html new file mode 100644 index 0000000..c2c5102 --- /dev/null +++ b/themes/even/layouts/shortcodes/left.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/themes/even/layouts/shortcodes/music.html b/themes/even/layouts/shortcodes/music.html new file mode 100644 index 0000000..22b2268 --- /dev/null +++ b/themes/even/layouts/shortcodes/music.html @@ -0,0 +1,62 @@ + {{/* + ## Music 163 + + ### Params: + + - `id` + + required param + you can extract from music url + url format "http://music.163.com/#/song?id=3950552" + + - Fiddle `auto` + + optional param + default value 0 + you can overwrite it with 1 + + ### Examples: + + - Simple + + {{% music "3950552" %}} + {{% music "3950552" "1" %}} + + - Named Params + + {{% music id="3950552" %}} + {{% music id="3950552" auto="1" %}} + + */}} + + {{- /* DEFAULTS */ -}} + {{ $auto := "0" }} + + {{- if .IsNamedParams -}} + + + + {{- else -}} + + + + {{- end -}} + \ No newline at end of file diff --git a/themes/even/layouts/shortcodes/right.html b/themes/even/layouts/shortcodes/right.html new file mode 100644 index 0000000..37a9a33 --- /dev/null +++ b/themes/even/layouts/shortcodes/right.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file -- cgit v1.2.3