Revert "Refactor page titles, fix podcast episode page"

This reverts commit 18305da0a6.
This commit is contained in:
Oliver Davies 2024-01-10 08:53:43 +00:00
parent 92df9b43d6
commit d79f08e05d
2 changed files with 8 additions and 8 deletions

View file

@ -25,15 +25,15 @@
<meta name="description" content="{{ site.meta.description }}" /> <meta name="description" content="{{ site.meta.description }}" />
{% endif %} {% endif %}
{% set page_title = page.title %}
{% if page.meta.title %} {% if page.meta.title %}
{% set page_title = page.meta.title %} <title>{{ page.meta.title }}</title>
{% elseif block('page_title') %} <meta property="og:title" content="{{ page.meta.title }}" />
{% set page_title = block('page_title') %} <meta property="twitter:title" content="{{ page.meta.title }}" />
{% else %}
<title>{{ page.title }} | {{ site.name }}</title>
<meta property="og:title" content="{{ page.title }} | {{ site.name }}" />
<meta property="twitter:title" content="{{ page.title }} | {{ site.name }}" />
{% endif %} {% endif %}
<title>{{ page_title }} | {{ site.name }}</title>
<meta property="og:title" content="{{ page_title }} | {{ site.name }}" />
<meta property="twitter:title" content="{{ page_title }} | {{ site.name }}" />
</head> </head>
<body> <body>
{% block body %}{% endblock %} {% block body %}{% endblock %}

View file

@ -2,7 +2,7 @@
title: Do you need a certified Drupal expert, core contributor and module maintainer? title: Do you need a certified Drupal expert, core contributor and module maintainer?
permalink: / permalink: /
meta: meta:
title: '%site.slogan%' title: '%site.slogan% | %site.name%'
--- ---
{% block meta_title %}Certified Drupal expert, Developer and Consultant | {{ site.name }}{% endblock %} {% block meta_title %}Certified Drupal expert, Developer and Consultant | {{ site.name }}{% endblock %}