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