From 039c5a4891f13a09ebaf3566aed58b3349d76394 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sat, 21 Mar 2020 17:51:03 +0100 Subject: [PATCH] =?UTF-8?q?Filtr=20pro=20kl=C3=A1d=C3=A1n=C3=AD=20videa=20?= =?UTF-8?q?do=20obsahu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/section1/page1.md | 2 ++ sass/style.scss | 14 ++++++++++++++ templates/shortcodes/document.html | 0 templates/shortcodes/video.html | 4 ++++ 4 files changed, 20 insertions(+) create mode 100644 templates/shortcodes/document.html create mode 100644 templates/shortcodes/video.html diff --git a/content/section1/page1.md b/content/section1/page1.md index 4200a2a..4ac75fb 100644 --- a/content/section1/page1.md +++ b/content/section1/page1.md @@ -1,3 +1,5 @@ +++ title="Page 1" +++ + +{{ video(title="Video title",src="",author="Jane Doe",date="2019-12-24") }} diff --git a/sass/style.scss b/sass/style.scss index d5c4d18..7c10a1b 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -69,4 +69,18 @@ body { #main { padding: 1.5em; margin-left: 200px; + + .title { + font-size: 1.2em; + font-weight: bold; + margin: 1em 0 .2em 0; + } + + .metadata { + text-align: right; + } + + video { + width: 100%; + } } diff --git a/templates/shortcodes/document.html b/templates/shortcodes/document.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/shortcodes/video.html b/templates/shortcodes/video.html new file mode 100644 index 0000000..9ce6f5d --- /dev/null +++ b/templates/shortcodes/video.html @@ -0,0 +1,4 @@ +{% if title %}
{{ title }}
{% endif %} + +{% if author %}
{{ author }}
{% endif %} +{% if date %}
{{ date }}
{% endif %}