Fetch page_title and meta_description dynamically in glasfaser CMS template

This commit is contained in:
PCoder 2017-10-21 11:40:59 +02:00
parent ed87762ff0
commit 12278fc5af

View file

@ -2,15 +2,14 @@
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="de">
<html lang="{{LANGUAGE_CODE}}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>ungleich GmbH</title>
<meta name="author" content="ungleich GmbH">
<meta name="description" content="{% page_attribute 'meta_description' %}">
<title>{% page_attribute "page_title" %}</title>
<!-- Bootstrap Core CSS -->
<link href="{% static 'ungleich_page/css/bootstrap.min.css' %}" rel="stylesheet">