diff --git a/templates/base.html b/templates/base.html index ca484fa6979b7c178db030cc39206b582d5d036d..135bdb140516a987e96285baf2a6b682fb118dbb 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 98a9b823e6bb9a03d13771db20721fb54f85c211..8f5d05c20dab234279793dd6af9a4dba6c34e3fa 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">