Fixing meta tags

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-02-23 20:13:20 -08:00
parent 2cea44a5c8
commit f34fca152a
5 changed files with 12 additions and 9 deletions

View File

@ -117,6 +117,7 @@ exports.write = async function writePageContent ({ prod }) {
: siteInfo.title, : siteInfo.title,
description: page.meta.description || siteInfo.description, description: page.meta.description || siteInfo.description,
}, },
site: siteInfo,
local: { local: {
cwd: page.cwd, cwd: page.cwd,
root: ROOT, root: ROOT,

View File

@ -14,6 +14,8 @@
"domain": "genderdysphoria.fyi", "domain": "genderdysphoria.fyi",
"siteUrl": "https://genderdysphoria.fyi", "siteUrl": "https://genderdysphoria.fyi",
"description": "A resource for those questioning their gender, already on a gender journey, or simply wanting to learn more about what it is to be transgender.", "description": "A resource for those questioning their gender, already on a gender journey, or simply wanting to learn more about what it is to be transgender.",
"creator": "TwippingVanilla",
"author": "Jocelyn Badgley",
"rss": { "rss": {
"title": "That's Gender Dysphoria, FYI", "title": "That's Gender Dysphoria, FYI",
"feed_url": "https://genderdysphoria.fyi/atom.xml", "feed_url": "https://genderdysphoria.fyi/atom.xml",

View File

@ -1,12 +1,12 @@
{{#extend "layout"}} {{#extend "layout"}}
{{#content "meta"}} {{#content "meta"}}
<meta property="og:title" content="{{meta.title}}"> <meta property="og:title" content="{{page.title}}">
<meta property="og:description" content="{{meta.description}}"> <meta property="og:description" content="{{page.description}}">
<meta property="og:image" content="https://{{page.domain}}{{rev '/images/titlecard.jpg'}}"> <meta property="og:image" content="https://{{page.domain}}{{rev '/images/titlecard.jpg'}}">
<meta property="og:url" content="https://{{page.domain}}"> <meta property="og:url" content="https://{{page.domain}}">
<meta name="twitter:title" content="{{meta.title}}"> <meta name="twitter:title" content="{{page.title}}">
<meta name="twitter:description" content="{{meta.description}}"> <meta name="twitter:description" content="{{page.description}}">
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://{{page.domain}}{{rev '/images/titlecard.jpg'}}"> <meta name="twitter:image" content="https://{{page.domain}}{{rev '/images/titlecard.jpg'}}">
{{/content}} {{/content}}

View File

@ -4,11 +4,11 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="author" content="Jocelyn Badgley"> <meta name="author" content="{{site.author}}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta property="og:site_name" content="That's GenderDysphoria, FYI"> <meta property="og:site_name" content="{{site.title}}">
<meta name="twitter:site" content="That's GenderDysphoria, FYI"> <meta name="twitter:site" content="{{site.title}}">
<meta name="twitter:creator" content="TwippingVanilla"> <meta name="twitter:creator" content="{{site.creator}}">
{{block "meta"}} {{block "meta"}}
<title>{{page.title}}</title> <title>{{page.title}}</title>

View File

@ -11,7 +11,7 @@
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://{{page.domain}}{{rev titlecard}}"> <meta name="twitter:image" content="https://{{page.domain}}{{rev titlecard}}">
{{/if}} {{/if}}
<link rel="canonical" href="https://{{page.domain}}{{url}}">{{/content}} <link rel="canonical" href="{{#if canonical}}{{canonical}}{{else}}https://{{page.domain}}{{url}}{{/if}}">{{/content}}
{{#append 'post-header'}} {{#append 'post-header'}}
<div class="disclaimer"><div> <div class="disclaimer"><div>