From 7ce3a8bd3ba6a9bcdc8e5f82202952bec8e59d04 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Wed, 12 Oct 2016 15:15:50 +0200
Subject: [PATCH] added semantic web stuff to the player, closes #69, related
 to #12

---
 templates/base.html    | 5 +++--
 templates/lecture.html | 7 +++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index ca484fa..135bdb1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -7,7 +7,8 @@
 <!DOCTYPE html>
 <html>
 	<head>
-		<title>Video AG</title>
+		{% block header %}
+		<title>Video AG {% block title %}{% endblock %}</title>
 		<meta http-equiv="X-UA-Compatible" content="IE=edge">
 		<link rel="icon" type="image/png" href="{{url_for('static', filename='favicon.png')}}">
 		<meta http-equiv="content-language" content="de-DE">
@@ -30,7 +31,7 @@
 		<script src="{{url_for('static', filename='videojs/videojs-resolution-switcher.js')}}"></script>
 		<script src="{{url_for('static', filename='videojs/videojs-contrib-hls.js')}}"></script>
 		<script src="{{url_for('static', filename='videojs/videojs.hotkeys.js')}}"></script>
-
+		{% endblock %}
 	</head>
 	<body>
 	{% block navbar %}
diff --git a/templates/lecture.html b/templates/lecture.html
index 98a9b82..8f5d05c 100644
--- a/templates/lecture.html
+++ b/templates/lecture.html
@@ -8,6 +8,13 @@
 {% set page_border = 0 -%}
 
 {% extends "base.html" %}
+{% block header %}
+{{ super() }}
+
+	<meta property="og:image" content="{{ config.VIDEOPREFIX }}/{{ lecture['titlefile'] }}" />
+	<meta property="og:title" content="{{ course.title }}: {{ lecture.title}}" />
+	<meta property="og:description" content="{{ lecture.comment }}" />
+{% endblock %}
 {% block content %}
 <div class="panel panel-default">
 	<div class="panel-heading">
-- 
GitLab