Skip to content

Commit

Permalink
Merge pull request #225 from qubyte/meta-description
Browse files Browse the repository at this point in the history
Add a meta-description to the about page.
  • Loading branch information
qubyte committed May 5, 2020
2 parents e544626 + 3e648dd commit ad88d1e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion index.js
Expand Up @@ -261,7 +261,14 @@ exports.build = async function build({ baseUrl, baseTitle, dev, syndications })
renderedAbout: {
dependencies: ['css', 'templates'],
action({ templates, css: cssPath }) {
return templates.about({ cssPath, dev, baseUrl, localUrl: '/', title: 'About' });
return templates.about({
cssPath,
dev,
baseUrl,
localUrl: '/',
title: 'About',
description: 'The personal site of Mark Stanley Everitt.'
});
}
},
renderedPublications: {
Expand Down
4 changes: 3 additions & 1 deletion src/templates/partials/head.html.handlebars
Expand Up @@ -24,14 +24,16 @@
{{#if localUrl}}
<link href={{baseUrl}}{{localUrl}} rel="canonical">
{{/if}}
{{#if description}}
<meta name="description" content="{{description}}">
{{/if}}
{{#isBlogEntry}}
{{#if prevLink}}
<link href="{{prevLink}}" rel="prev">
{{/if}}
{{#if nextLink}}
<link href="{{nextLink}}" rel="next">
{{/if}}
<meta name="description" content="{{description}}">
<meta name="twitter:card" content="summary">
<meta property="og:type" content="blog">
<meta name="twitter:site" content="@qubyte">
Expand Down

0 comments on commit ad88d1e

Please sign in to comment.