Update meta tags and add talk image
This commit is contained in:
parent
5715ff7730
commit
fad6431124
|
@ -3,7 +3,11 @@
|
||||||
<head>
|
<head>
|
||||||
<title>{% if page.title is defined and page.url != '//' %}{{ page.title }} | {% endif %}{{ site.title }} - {{ site.subtitle }}</title>
|
<title>{% if page.title is defined and page.url != '//' %}{{ page.title }} | {% endif %}{{ site.title }} - {{ site.subtitle }}</title>
|
||||||
{% include 'meta' %}
|
{% 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">
|
<link rel="stylesheet" href="/dist/css/app.css">
|
||||||
{% block stylesheets %}{% endblock %}
|
{% block stylesheets %}{% endblock %}
|
||||||
|
|
|
@ -3,12 +3,9 @@
|
||||||
{% block page_title_wrapper %}{% endblock %}
|
{% block page_title_wrapper %}{% endblock %}
|
||||||
|
|
||||||
{% block metas %}
|
{% block metas %}
|
||||||
<meta name="twitter:card" content="summary">
|
{{ parent() }}
|
||||||
<meta name="twitter:site" content="@{{ site.twitter.name }}">
|
<meta name="og:description" content="{{ page.excerpt }}">
|
||||||
<meta name="twitter:title" content="{{ page.title }}">
|
<meta name="twitter:description" content="{{ page.excerpt }}">
|
||||||
<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 }}">
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content_wrapper %}
|
{% block content_wrapper %}
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
{% extends 'default' %}
|
{% 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 %}
|
{% block content_wrapper %}
|
||||||
<div class="markup spaced-y-4">
|
<div class="markup spaced-y-4">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
|
|
|
@ -9,16 +9,16 @@
|
||||||
<meta property="og:type" content="{{ og.type }}"/>
|
<meta property="og:type" content="{{ og.type }}"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if og.image and og.image.url %}
|
{% if page.image.url %}
|
||||||
<meta property="og:image" content="{{ site.url }}{{ og.image.url }}"/>
|
<meta property="og:image" content="{{ site.url }}{{ page.image.url }}"/>
|
||||||
{% if og.image.type %}
|
{% if page.image.type %}
|
||||||
<meta property="og:image:type" content="{{ og.image.type }}"/>
|
<meta property="og:image:type" content="{{ page.image.type }}"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if og.image.width %}
|
{% if page.image.width %}
|
||||||
<meta property="og:image:width" content="{{ og.image.width }}"/>
|
<meta property="og:image:width" content="{{ page.image.width }}"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if og.image.height %}
|
{% if page.image.height %}
|
||||||
<meta property="og:image:height" content="{{ og.image.height }}"/>
|
<meta property="og:image:height" content="{{ page.image.height }}"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta property="og:image" content="{{ site.url }}{{ site.avatar.url }}"/>
|
<meta property="og:image" content="{{ site.url }}{{ site.avatar.url }}"/>
|
||||||
|
@ -27,18 +27,12 @@
|
||||||
<meta property="og:image:width" content="327"/>
|
<meta property="og:image:width" content="327"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if og.title %}
|
{% if page.image %}
|
||||||
{% if og.image %}
|
<meta name="twitter:card" content="summary_large_image"/>
|
||||||
<meta name="twitter:card" content="summary_large_image"/>
|
<meta name="twitter:image" content="{{ site.url }}{{ page.image.url }}">
|
||||||
<meta name="twitter:image:src" content="{{ site.url }}{{ og.image.url }}">
|
{% else %}
|
||||||
{% else %}
|
<meta name="twitter:card" content="summary"/>
|
||||||
<meta name="twitter:card" content="summary"/>
|
<meta name="twitter:image" content="{{ site.url }}{{ site.avatar.url }}">
|
||||||
<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 }}"/>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.hide_page %}
|
{% if page.hide_page %}
|
||||||
|
|
|
@ -4,6 +4,11 @@ description: A crash course in developing PHP packages and Drupal 8 modules, bas
|
||||||
speakerdeck:
|
speakerdeck:
|
||||||
id: 6e42ae9620bb4e91b3955f8c30d66934
|
id: 6e42ae9620bb4e91b3955f8c30d66934
|
||||||
ratio: '1.77777777777778'
|
ratio: '1.77777777777778'
|
||||||
|
image:
|
||||||
|
url: /images/talks/having-fun-drupalorg-api.png
|
||||||
|
width: 2000
|
||||||
|
height: 1125
|
||||||
|
type: image/png
|
||||||
tags:
|
tags:
|
||||||
- drupal
|
- drupal
|
||||||
- drupal-8
|
- drupal-8
|
||||||
|
|
|
@ -9,16 +9,11 @@ youtube:
|
||||||
id: 3AUhpkxZ7DQ
|
id: 3AUhpkxZ7DQ
|
||||||
tags: [drupalcamp, simpletest, phpunit, testing]
|
tags: [drupalcamp, simpletest, phpunit, testing]
|
||||||
has_tweets: true
|
has_tweets: true
|
||||||
meta:
|
image:
|
||||||
og:
|
url: /images/talks/test-driven-drupal-development.png
|
||||||
title: TDD - Test Driven Drupal
|
width: 2560
|
||||||
description: "How to write tests and follow TDD for Drupal applications."
|
height: 1440
|
||||||
type: website
|
type: image/png
|
||||||
image:
|
|
||||||
url: /images/talks/test-driven-drupal-development.png
|
|
||||||
width: 2560
|
|
||||||
height: 1440
|
|
||||||
type: image/png
|
|
||||||
use: [talks]
|
use: [talks]
|
||||||
events:
|
events:
|
||||||
- event: drupalcamp_london_17
|
- event: drupalcamp_london_17
|
||||||
|
|
BIN
source/images/talks/having-fun-drupalorg-api.png
Normal file
BIN
source/images/talks/having-fun-drupalorg-api.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 KiB |
Reference in a new issue