fix: override front page meta title

This commit is contained in:
Oliver Davies 2021-09-20 08:24:34 +01:00
parent 97ff6af158
commit 793d8bab1c
2 changed files with 6 additions and 0 deletions

View file

@ -3,6 +3,8 @@ title: Oliver Davies - UK-based Lead Software Developer, PHP and Drupal speciali
permalink: /
is_front: true
exclude_from_sitemap: true
meta:
title: Lead Drupal and PHP Software Developer | Oliver Davies
---
<div class="markdown" markdown="1">

View file

@ -6,6 +6,10 @@
{% set pageTitle = [page.title, '-', site.name]|join(' ') %}
{% endif %}
{% if page.meta.title %}
{% set pageTitle = page.meta.title %}
{% endif %}
{% set metaDescription = site.description %}
{% if page.meta.description %}
{% set metaDescription = page.meta.description|e('html') %}