Merge app.html.twig and default.html.twig

This commit is contained in:
Oliver Davies 2018-09-27 23:47:15 +01:00
parent 8a35a18bbf
commit 83ed930cb1
13 changed files with 43 additions and 52 deletions

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
title: Page Not Found
permalink: /404.html
use: [posts]

View file

@ -23,7 +23,37 @@
</head>
<body class="font-sans text-black text-sm leading-normal">
<div id="app" v-cloak>
{% block body %}{% endblock %}
{% include 'layout/navbar' %}
<div class="container mx-auto px-4">
<div class="md:flex -mx-4">
<main class="md:w-2/3 lg:w-3/4 px-4 mb-8 lg:mb-0" role="main">
{% block content_top %}{% endblock %}
{% block content_wrapper %}{% block content %}{% endblock %}{% endblock %}
{% block content_bottom %}{% endblock %}
</main>
{% block sidebar_wrapper %}
<div class="md:w-1/3 lg:w-1/4 px-4" role="complementary">
{% block sidebar %}
{% include 'availability' %}
{% include 'posts/latest' %}
{% include 'badges' %}
{% endblock %}
</div>
{% endblock %}
</div>
<footer class="border-t border-grey-light pt-4 mt-4" role="contentinfo">
<p>
&copy; 2010-{{ 'now'|date('Y') }} {{ site.title }}.
Built with <a class="link" href="https://sculpin.io">Sculpin</a> and <a class="link" href="https://tailwindcss.com">Tailwind CSS</a>.
Hosted on <a class="link" href="https://www.netlify.com">Netlify</a>.
</p>
{% include 'meetups' %}
</footer>
</div>
</div>
{% if site.google_analytics_tracking_id %}

View file

@ -1,35 +0,0 @@
{% extends 'app' %}
{% block body %}
{% include 'layout/navbar' %}
<div class="container mx-auto px-4">
<div class="md:flex -mx-4">
<main class="md:w-3/4 px-4 mb-8 lg:mb-0" role="main">
{% block content_top %}{% endblock %}
{% block content_wrapper %}{% block content %}{% endblock %}{% endblock %}
{% block content_bottom %}{% endblock %}
</main>
{% block sidebar_wrapper %}
<div class="md:w-1/4 px-4" role="complementary">
{% block sidebar %}
{% include 'availability' %}
{% include 'posts/latest' %}
{% include 'badges' %}
{% endblock %}
</div>
{% endblock %}
</div>
<footer class="border-t border-grey-light pt-4 mt-4" role="contentinfo">
<p>
&copy; 2010-{{ 'now'|date('Y') }} {{ site.title }}.
Built with <a class="link" href="https://sculpin.io">Sculpin</a> and <a class="link" href="https://tailwindcss.com">Tailwind CSS</a>.
Hosted on <a class="link" href="https://www.netlify.com">Netlify</a>.
</p>
{% include 'meetups' %}
</footer>
</div>
{% endblock %}

View file

@ -1,4 +1,4 @@
{% extends 'default' %}
{% extends 'base' %}
{% block content_top %}
<h1>{{ page.title }}</h1>

View file

@ -1,4 +1,4 @@
{% extends 'default' %}
{% extends 'base' %}
{% block content_wrapper %}
{% include 'post/header' %}

View file

@ -1,6 +1,6 @@
---
layout: default
title: About
layout: page
title: About Me
meta:
og:
title: 'Oliver Davies - Full Stack Developer, System Administrator, PHP and Drupal specialist'
@ -12,8 +12,6 @@ use:
permalink: /
---
<div class="markdown" markdown="1">
# About Me
<div class="mb-4 w-1/3 sm:w-1/4 lg:w-1/6">
<img
src="{{ site.avatar.url }}"

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
title: Accessibility
use: [posts]
---

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
title: Blog
generator: pagination
pagination:
@ -7,8 +7,6 @@ pagination:
use: [posts]
---
{% block content %}
<h1>Blog</h1>
<ul class="list-reset">
{% for post in page.pagination.items %}
<li class="mb-12">

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
nav: blog
title: Tags
use:

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
nav: blog
title: Tag Archive
generator:

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
title: Company Information
meta:
description: 'Company information for Oliver Davies Ltd.'

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
title: Experience
use: [posts]
experiences:

View file

@ -1,5 +1,5 @@
---
layout: default
layout: page
title: Development Terms
use: [posts]
---