Update meta tags and add talk image

This commit is contained in:
Oliver Davies 2019-03-04 20:57:04 +00:00
parent 5715ff7730
commit fad6431124
7 changed files with 40 additions and 37 deletions

View file

@ -3,7 +3,11 @@
<head>
<title>{% if page.title is defined and page.url != '//' %}{{ page.title }} | {% endif %}{{ site.title }} - {{ site.subtitle }}</title>
{% include 'meta' %}
{% block metas %}{% endblock %}
{% block metas %}
<meta name="twitter:site" content="@{{ site.twitter.name }}">
<meta name="twitter:title" content="{{ page.title }}">
<meta name="twitter:creator" content="@{{ site.twitter.name }}">
{% endblock %}
<link rel="stylesheet" href="/dist/css/app.css">
{% block stylesheets %}{% endblock %}

View file

@ -3,12 +3,9 @@
{% block page_title_wrapper %}{% endblock %}
{% block metas %}
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@{{ site.twitter.name }}">
<meta name="twitter:title" content="{{ page.title }}">
<meta name="twitter:creator" content="@{{ site.twitter.name }}">
<meta name="twitter:image" content="{{ site.url ~ site.avatar.url }}">
<meta name="twitter:description" content="{{ page.excerpt }}">
{{ parent() }}
<meta name="og:description" content="{{ page.excerpt }}">
<meta name="twitter:description" content="{{ page.excerpt }}">
{% endblock %}
{% block content_wrapper %}

View file

@ -1,5 +1,13 @@
{% extends 'default' %}
{% block metas %}
{{ parent() }}
<meta name="og:description" content="{{ page.description }}">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="{{ page.description }}">
{% endblock %}
{% block content_wrapper %}
<div class="markup spaced-y-4">
{% block content %}{% endblock %}

View file

@ -9,16 +9,16 @@
<meta property="og:type" content="{{ og.type }}"/>
{% endif %}
{% if og.image and og.image.url %}
<meta property="og:image" content="{{ site.url }}{{ og.image.url }}"/>
{% if og.image.type %}
<meta property="og:image:type" content="{{ og.image.type }}"/>
{% if page.image.url %}
<meta property="og:image" content="{{ site.url }}{{ page.image.url }}"/>
{% if page.image.type %}
<meta property="og:image:type" content="{{ page.image.type }}"/>
{% endif %}
{% if og.image.width %}
<meta property="og:image:width" content="{{ og.image.width }}"/>
{% if page.image.width %}
<meta property="og:image:width" content="{{ page.image.width }}"/>
{% endif %}
{% if og.image.height %}
<meta property="og:image:height" content="{{ og.image.height }}"/>
{% if page.image.height %}
<meta property="og:image:height" content="{{ page.image.height }}"/>
{% endif %}
{% else %}
<meta property="og:image" content="{{ site.url }}{{ site.avatar.url }}"/>
@ -27,18 +27,12 @@
<meta property="og:image:width" content="327"/>
{% endif %}
{% if og.title %}
{% if og.image %}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image:src" content="{{ site.url }}{{ og.image.url }}">
{% else %}
<meta name="twitter:card" content="summary"/>
<meta name="twitter:image:src" content="{{ site.url }}{{ site.avatar.url }}">
{% endif %}
<meta name="twitter:creator" content="@{{ site.twitter.name }}"/>
<meta name="twitter:title" content="{{ og.title|raw }}"/>
<meta name="twitter:text:description" content="{{ og.description|raw }}"/>
<meta name="twitter:site" content="@{{ site.twitter.name }}"/>
{% if page.image %}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ site.url }}{{ page.image.url }}">
{% else %}
<meta name="twitter:card" content="summary"/>
<meta name="twitter:image" content="{{ site.url }}{{ site.avatar.url }}">
{% endif %}
{% if page.hide_page %}

View file

@ -4,6 +4,11 @@ description: A crash course in developing PHP packages and Drupal 8 modules, bas
speakerdeck:
id: 6e42ae9620bb4e91b3955f8c30d66934
ratio: '1.77777777777778'
image:
url: /images/talks/having-fun-drupalorg-api.png
width: 2000
height: 1125
type: image/png
tags:
- drupal
- drupal-8

View file

@ -9,16 +9,11 @@ youtube:
id: 3AUhpkxZ7DQ
tags: [drupalcamp, simpletest, phpunit, testing]
has_tweets: true
meta:
og:
title: TDD - Test Driven Drupal
description: "How to write tests and follow TDD for Drupal applications."
type: website
image:
url: /images/talks/test-driven-drupal-development.png
width: 2560
height: 1440
type: image/png
image:
url: /images/talks/test-driven-drupal-development.png
width: 2560
height: 1440
type: image/png
use: [talks]
events:
- event: drupalcamp_london_17

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB