Skip to content

Instantly share code, notes, and snippets.

@newswim
Last active October 26, 2015 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newswim/bf0ec8ef5d0d1317c381 to your computer and use it in GitHub Desktop.
Save newswim/bf0ec8ef5d0d1317c381 to your computer and use it in GitHub Desktop.
Meteor SEO Settings and
<script>
onAfterAction: function(){
document.title = 'my awesome site: ' + Router.current().route.getName();
}
</script>
<!-- I use a head.html that includes various SEO settings: -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="fragment" content="!"/>
<meta name="description" content="your description"/>
<meta property="og:title" content="your site title"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="https://yourimageurl"/>
<meta property="og:url" content="https://hostname"/>
<meta property="og:description" content="your description"/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:url" content="https://hostname"/>
<meta name="twitter:title" content="your site title"/>
<meta name="twitter:description" content="your site description"/>
<meta name="twitter:image" content="https://yourimageurl">
<noscript>You must have Javascript enabled in order to use this site</noscript>
<link rel="shortcut icon" href="/your-ico" type="image/x-icon" />
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment