Update main wrapper classes

This commit is contained in:
Oliver Davies 2019-05-07 17:18:56 +01:00
parent 80e33cd3fe
commit 71c249d25b
2 changed files with 15 additions and 7 deletions

View file

@ -1,13 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html class="tw-h-full" lang="en" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# schema: http://schema.org/ sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# "> <html lang="en" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# schema: http://schema.org/ sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# ">
<head> <head>
{% include 'meta' %} {% include 'meta' %}
</head> </head>
<body class="path-frontpage tw-h-full"> <body class="path-frontpage">
<a href="#main-content" class="visually-hidden focusable skip-link"> <a href="#main-content" class="visually-hidden focusable skip-link">
Skip to main content Skip to main content
</a> </a>
<div class="{% block body_classes '' %}"> <div class="tw-min-h-screen tw-flex tw-flex-col {% block body_classes '' %}">
{% include 'banner' %} {% include 'banner' %}
{% block content_wrapper %} {% block content_wrapper %}

View file

@ -1,11 +1,19 @@
{% extends 'base' %} {% extends 'base' %}
{% block content_wrapper %} {% block content_wrapper %}
<main class="tw-max-w-6xl tw-px-6 tw-mx-auto tw-my-10"> <main>
<h1 class="tw-mt-0">{{ page.title }}</h1> <div class="tw-max-w-6xl tw-px-6 tw-mx-auto tw-my-10">
<h1 class="tw-mt-0">
{% block title %}{{ page.title }}{% endblock %}
</h1>
<div class="markup"> {% block content_wrapper_inner %}
{% block content %}{% endblock %} <div class="markup">
{% block content %}{% endblock %}
</div>
{% endblock %}
{% block content_bottom %}{% endblock %}
</div> </div>
</main> </main>
{% endblock %} {% endblock %}