Filtr pro kládání videa do obsahu

master
Emil Miler 5 years ago
parent a46742a83a
commit 039c5a4891

@ -1,3 +1,5 @@
+++
title="Page 1"
+++
{{ video(title="Video title",src="",author="Jane Doe",date="2019-12-24") }}

@ -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%;
}
}

@ -0,0 +1,4 @@
{% if title %}<div class="title">{{ title }}</div>{% endif %}
<video controls><source src="{{ src }}"></video>
{% if author %}<div class="metadata">{{ author }}</div>{% endif %}
{% if date %}<div class="metadata">{{ date }}</div>{% endif %}