Add twitter:url, and split out display_meta_tags

This commit is contained in:
Robert Richter 2016-09-05 00:31:00 -05:00
parent c629bcf719
commit 92a269185d
No known key found for this signature in database
GPG Key ID: BEC39BF873A0103B

View File

@ -2,28 +2,25 @@
<link rel="publisher" href="https://plus.google.com/118076966717703203223" />
<%=
<%
# Make sure description is no longer than 155 characters
site_name = "Notebook"
site_description = "Notebook is a set of tools for writers, game designers, and roleplayers to create magnificent universes, and everything within them."
site_url = request.host
site_image = "http://www.notebook.ai/assets/card-headers/hero-d5161eb41a02535f6656af83cacbdb8c.jpg"
display_meta_tags description: site_description,
set_meta_tags description: site_description,
# Recommended keywords tag length: up to 255 characters, 20 words.
keywords: %w[writing author fiction character universe location nanowrimo],
canonical: site_url,
twitter: {
card: "summary_large_image",
card: "summary",
title: site_name,
# Page description must be less than 200 characters
description: site_description,
url: site_url,
description: site_description, # Page description must be less than 200 characters
creator: "@IndentLabs",
# Twitter summary card with large image must be at least 280x150px
image: {
# Twitter summary card with large image must be at least 280x150px
src: site_image
}
},
@ -36,6 +33,7 @@
site_name: site_name,
}
%>
<%= display_meta_tags %>
<script type="application/ld+json">
{
"@context": "http://schema.org/",