Update head title

This commit is contained in:
Oliver Davies 2018-01-31 01:05:43 +00:00
parent f1e81336a4
commit 8f5163e6bf
2 changed files with 11 additions and 5 deletions

View file

@ -1,5 +1,5 @@
title: 'Oliver Davies' title: Oliver Davies
subtitle: 'Web Developer, System Administrator - PHP, Drupal, Symfony, Linux' subtitle: Full Stack Web Developer (Drupal, Symfony, Laravel, Linux)
description: 'Oliver Davies, Drupal Developer' description: 'Oliver Davies, Drupal Developer'
default_date_format: 'jS F, Y' default_date_format: 'jS F, Y'
fuzzy_date_format: F Y fuzzy_date_format: F Y

View file

@ -1,5 +1,10 @@
<head> <head>
<title>{% if page.url == '/.' %}{{ site.subtitle }} | {{ site.title }}{% else %}{{ page.title }} | {{ site.title }}{% endif %}</title> <title>
{% if page.title is defined and page.url != '/.' %}
{{ page.title }} |
{% endif %}
{{ site.title }} - {{ site.subtitle }}
</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -11,8 +16,9 @@
{% include 'og' with { og: page.meta.og } %} {% include 'og' with { og: page.meta.og } %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ site.url }}/build/css/site.css"> <link rel="stylesheet" href="{{ site.url }}/build/css/site.css">
{% block stylesheets '' %} {% endblock %}
{% for size in site.apple_touch_icon_sizes %} {% for size in site.apple_touch_icon_sizes %}
<link rel="apple-touch-icon" href="{{ site.favicon.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}"> <link rel="apple-touch-icon" href="{{ site.favicon.url }}?s={{ size }}" sizes="{{ size }}x{{ size }}">