templates: Added blog article title to <title>

Closes #1628.

Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
rascencio 2015-06-16 00:25:21 -06:00
parent e230ee0ae8
commit 85e452490e
2 changed files with 6 additions and 3 deletions

View file

@ -2,7 +2,11 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<title>{% page_attribute "page_title" %}</title> <title>
{% block title %}
{% page_attribute "page_title" %}
{% endblock %}
</title>
{% addtoblock "external-css" %} {% addtoblock "external-css" %}
{% bootstrap_css %} {% bootstrap_css %}

View file

@ -1,11 +1,10 @@
{% extends "djangocms_blog/base.html" %} {% extends "djangocms_blog/base.html" %}
{% load i18n thumbnail cms_tags %} {% load i18n thumbnail cms_tags %}
{% load url from future %} {% load url from future %}
{% block meta_description %}{{ post.meta_description }}{% endblock meta_description %} {% block meta_description %}{{ post.meta_description }}{% endblock meta_description %}
{% block meta_keywords %}{{ post.meta_keywords }}{% endblock meta_keywords %} {% block meta_keywords %}{{ post.meta_keywords }}{% endblock meta_keywords %}
{% block canonical_url %}<link rel="canonical" href="{{ SITE.domain }}{{ view.get_view_url }}"/>{% endblock canonical_url %} {% block canonical_url %}<link rel="canonical" href="{{ SITE.domain }}{{ view.get_view_url }}"/>{% endblock canonical_url %}
{% block title %}{{ post.get_title }}{% endblock %} {% block title %}{% page_attribute "page_title" %} - {{ post.get_title }}{% endblock %}
<!-- page header --> <!-- page header -->
{% block base_header %} {% block base_header %}
{% include "djangocms_blog/_header_post_detail.html" %} {% include "djangocms_blog/_header_post_detail.html" %}