Add title block, override for pages

This commit is contained in:
Oliver Davies 2018-10-05 09:02:07 +01:00
parent b840a2f068
commit c11b10b3d0
2 changed files with 3 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{{ site.title }}</title> <title>{% block title %}{{ site.title }}{% endblock %}</title>
<link href="/dist/css/app.css" rel="stylesheet"> <link href="/dist/css/app.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,900" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,900" rel="stylesheet">

View file

@ -1,5 +1,7 @@
{% extends 'base' %} {% extends 'base' %}
{% block title %}{{ page.title }} | {{ site.title }}{% endblock %}
{% block body %} {% block body %}
{% include 'layout/header' %} {% include 'layout/header' %}
{% include 'layout/main-menu' %} {% include 'layout/main-menu' %}