From 3d4335a7879180b12ea34dfc9fba0d76fd5700ae Mon Sep 17 00:00:00 2001
From: Artem Khvastunov <art.spb@gmail.com>
Date: Mon, 07 Jan 2019 15:26:43 +0000
Subject: [PATCH] Add Twitter Cards to each page (#133)
---
layouts/_default/baseof.html | 2 ++
archetypes/posts.md | 1 +
exampleSite/content/posts/migrate-from-jekyll.md | 1 +
exampleSite/content/posts/theme-demo.md | 2 ++
CONTRIBUTORS.md | 1 +
5 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 2a947f0..835a587 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -26,3 +26,4 @@
- [Martin Kiesel](https://github.com/Kyslik)
- [John Tobin](https://www.johntobin.ie/)
- [Thomas Nys](https://thomasnys.com)
+- [Artem Khvastunov](https://artspb.me)
diff --git a/archetypes/posts.md b/archetypes/posts.md
index a3ea93e..92f352a 100644
--- a/archetypes/posts.md
+++ b/archetypes/posts.md
@@ -2,6 +2,7 @@
draft = true
date = {{ .Date }}
title = ""
+description = ""
slug = ""
tags = []
categories = []
diff --git a/exampleSite/content/posts/migrate-from-jekyll.md b/exampleSite/content/posts/migrate-from-jekyll.md
index 80086e7..8e23c0f 100644
--- a/exampleSite/content/posts/migrate-from-jekyll.md
+++ b/exampleSite/content/posts/migrate-from-jekyll.md
@@ -1,6 +1,7 @@
+++
date = "2014-03-10"
title = "Migrate to Hugo from Jekyll"
+description = "The post explains how to migrate from from Jekyll to Hugo."
+++
Table of Contents
diff --git a/exampleSite/content/posts/theme-demo.md b/exampleSite/content/posts/theme-demo.md
index 39c8c69..7ccec9d 100644
--- a/exampleSite/content/posts/theme-demo.md
+++ b/exampleSite/content/posts/theme-demo.md
@@ -1,6 +1,8 @@
+++
date = "2017-01-08"
title = "Theme Demo"
+description = "The post demonstrates features of the coder theme."
+images = ["/images/N90.jpg"]
math = "true"
+++
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 40c8778..7a59a32 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,6 +9,8 @@
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
+ {{ template "_internal/twitter_cards.html" . }}
+
<base href="{{ .Permalink }}">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
--
Gitblit v1.10.0