Update meta tags
This commit is contained in:
parent
f46549889c
commit
d598232ecf
|
@ -12,6 +12,7 @@
|
|||
<head>
|
||||
<title>{{ helpers.htmlTitle(site, page) }}</title>
|
||||
{% include 'meta' %}
|
||||
{% block metaTags %}{% endblock %}
|
||||
|
||||
<link rel="stylesheet" href="/css/app.css">
|
||||
{% block stylesheets %}{% endblock %}
|
||||
|
@ -33,10 +34,6 @@
|
|||
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script>
|
||||
{% endif %}
|
||||
|
||||
{% if page.has_tweets %}
|
||||
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||
{% endif %}
|
||||
|
||||
<script src="/js/all.js"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
|
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
{% block page_title %}{% endblock %}
|
||||
|
||||
{% block metaTags %}
|
||||
<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="{{ page.meta.image ?: site.url ~ site.avatar.url }}">
|
||||
{% if page.meta.description %}<meta name="twitter:description" content="{{ page.meta.description }}">{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_wrapper %}
|
||||
{% include 'post/header' %}
|
||||
{% include 'post/intro-image' %}
|
||||
|
@ -22,5 +31,9 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% if page.has_tweets %}
|
||||
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||
{% endif %}
|
||||
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
---
|
||||
title: Rebuilding Bartik (Drupal’s Default Theme) with Vue.js and Tailwind CSS
|
||||
meta:
|
||||
description: How I rebuilt Drupal’s Bartik theme using Vue.js and Tailwind CSS.
|
||||
image: ~
|
||||
tags:
|
||||
- drupal
|
||||
- tailwind-css
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
---
|
||||
title: Rebuilding Bartik (Drupal’s Default Theme) with Vue.js and Tailwind CSS - part 2
|
||||
meta:
|
||||
description: How I rebuilt Drupal’s Bartik theme using Vue.js and Tailwind CSS.
|
||||
image: ~
|
||||
tags:
|
||||
- drupal
|
||||
- tailwind-css
|
||||
|
|
Reference in a new issue