|
@@ -1,26 +1,40 @@
|
|
|
{% extends "/html/base.html" %}
|
|
|
-{%block subtitle %}: {{page.title}}{% endblock %}
|
|
|
-{% block content %}
|
|
|
+{%block subtitle %}: {{post.title}}{% endblock %}
|
|
|
+
|
|
|
+{% block head %}
|
|
|
+<meta name="twitter:card" content="summary_large_image">
|
|
|
+<meta name="twitter:site" content="@ispoogedaily">
|
|
|
+<meta name="twitter:creator" content="@harlanji">
|
|
|
+
|
|
|
+<meta property="og:url" content="{{site-url}}{{uri}}">
|
|
|
+<meta property="og:title" content="{{post.title}}">
|
|
|
+<meta property="og:description" content="VIDEO - {{post.title}}.">
|
|
|
+<meta property="og:image" content="{{site-url}}{{post.video-thumbnail-url}}">
|
|
|
|
|
|
<link rel="stylesheet" href="/assets/videojs/video-js.css">
|
|
|
<script src="/assets/videojs/video.js"></script>
|
|
|
<script src="/assets/videojs/videojs-contrib-hls.js"></script>
|
|
|
<script src="/assets/videojs/videojs-media-session.js"></script>
|
|
|
+
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
+{% block content %}
|
|
|
+
|
|
|
+
|
|
|
<div id="custom-page">
|
|
|
<div id="page-header">
|
|
|
- <h2>{{page.title}}</h2>
|
|
|
+ <h2>{{post.title}}</h2>
|
|
|
</div>
|
|
|
- {% if page.toc %}{{page.toc|safe}}{% endif %}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<video id="video-player" width="640" height="360" class="video-js vjs-default-skin"
|
|
|
-controls poster="{{page.video-thumbnail-url}}" data-setyp='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
|
|
|
- <source src="{{page.video-url}}" type="application/x-mpegURL">
|
|
|
+controls poster="{{post.video-thumbnail-url}}" data-setyp='{"controls": "true", "loop": "false", "autoplay": "false", "preload": "false"}'>
|
|
|
+ <source src="{{post.video-url}}" type="application/x-mpegURL">
|
|
|
</source>
|
|
|
<p class="vjs-no-js">The browser doesn't seem to support our video player... new browsers should.</p>
|
|
|
</video>
|
|
|
|
|
|
-<p>{{page.video-description}}</p>
|
|
|
-
|
|
|
<script>
|
|
|
var player = videojs('video-player');
|
|
|
|
|
@@ -31,19 +45,16 @@ var player = videojs('video-player');
|
|
|
//player.play();
|
|
|
</script>
|
|
|
|
|
|
- {{page.content|safe}}
|
|
|
+ {{post.content|safe}}
|
|
|
|
|
|
|
|
|
|
|
|
<div id="prev-next">
|
|
|
- {% if page.prev %}
|
|
|
- <a href="{{page.prev.uri}}">« {{page.prev.title}}</a>
|
|
|
- {% endif %}
|
|
|
- {% if all page.prev page.next %}
|
|
|
- ||
|
|
|
+ {% if post.prev %}
|
|
|
+ <a href="{{post.prev.uri}}">« {{post.prev.title}}</a>
|
|
|
{% endif %}
|
|
|
- {% if page.next %}
|
|
|
- <a href="{{page.next.uri}}">{{page.next.title}} »</a>
|
|
|
+ {% if post.next %}
|
|
|
+ <a class="right" href="{{post.next.uri}}">{{post.next.title}} »</a>
|
|
|
{% endif %}
|
|
|
</div>
|
|
|
</div>
|