Commit ec4b00f9 authored by David Haynes's avatar David Haynes 🙆

Dynamic meta tags for OG and Twitter

- pulls descriptions and other data dynamically
- DRY

Closes #12
parent 3182bbf7
......@@ -2,7 +2,8 @@
locale : "en-US"
title : "SRCT"
email : "srct@gmu.edu"
description : "SRCTs home on the internet"
description : "Mason SRCT is a student organization at George Mason University that establishes and maintains systems which provide specific services for Mason's community."
author : "Mason SRCT"
# the subpath of your site, e.g. /blog
baseurl : ""
......
......@@ -5,6 +5,25 @@
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>{{ site.title }}{% if page.permalink != '/' %} | {{ page.title }}{% endif %}</title>
<meta name="description" content="{{ site.description }}">
<!-- Chrome on Android navbar color -->
<meta name="theme-color" content="#006633">
<!-- Opengraph tags -->
<meta property="og:url" content="{{ site.url }}{{ page.permalink }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ site.title }}{% if page.permalink != '/' %} | {{ page.title }}{% endif %}">
<meta property="og:image" content="{{ site.url }}/assets/img/SRCT_sq_white_shadow.png">
<meta property="og:description" content="{{ page.description }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:locale" content="{{ site.locale }}">
<meta property="article:author" content="{{ site.author }}">
<!-- Twitter card tags -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@MasonSRCT">
<meta name="twitter:creator" content="@MasonSRCT">
<meta name="twitter:url" content="{{ site.url }}{{ page.permalink }}">
<meta name="twitter:title" content="{{ site.title }}{% if page.permalink != '/' %} | {{ page.title }}{% endif %}">
<meta name="twitter:description" content="{{ page.description }}">
<meta name="twitter:image" content="{{ site.url }}/assets/img/SRCT_sq_white_shadow.png">
<!-- Load stylesheets -->
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" media="screen">
......
......@@ -2,7 +2,7 @@
layout: default
permalink: /
title: SRCT
description: "test"
description: "Mason SRCT is a student organization at George Mason University that establishes and maintains systems which provide specific services for Mason's community."
jumbotron: true
---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment