Move title from header to base, so extend from other templates will correctly set the title

This commit is contained in:
Oliver Falk
2018-05-25 11:36:49 +02:00
parent c702ef6bbd
commit d1b195d71b
2 changed files with 4 additions and 2 deletions

View File

@@ -2,8 +2,11 @@
{% load static %} {% load static %}
{% load bootstrap4 %} {% load bootstrap4 %}
{% load i18n %}<!DOCTYPE HTML> {% load i18n %}<!DOCTYPE HTML>
{% block bootstrap4_extra_head %}{% include 'header.html' %}{% endblock bootstrap4_extra_head %}
{% spaceless %}{% block bootstrap4_content %} {% spaceless %}{% block bootstrap4_content %}
{% block bootstrap4_extra_head %}
{% include 'header.html' %}
<title>{% block title %}Libravatar - {% trans 'Freeing the Web, one face at a time!' %}{% endblock title %}</title>
{% endblock bootstrap4_extra_head %}
<div id="header"> <div id="header">
<div> <div>
<div id="logo"> <div id="logo">

View File

@@ -26,5 +26,4 @@
<meta name="application-name" content="ivatar"> <meta name="application-name" content="ivatar">
<meta name="theme-color" content="#fa711f"> <meta name="theme-color" content="#fa711f">
<meta name="flattr:id" content="4j6y0v"> <meta name="flattr:id" content="4j6y0v">
<title>{% block title %}ivatar - {% trans 'Freeing the Web, one face at a time!' %}{% endblock title %}</title>
{% block header %}{% endblock header %} {% block header %}{% endblock header %}