diff options
author | Adam Carpenter <gitlab@53hor.net> | 2019-10-25 19:13:32 -0400 |
---|---|---|
committer | Adam Carpenter <gitlab@53hor.net> | 2019-10-25 19:13:32 -0400 |
commit | f5d67ea11aa1a116d28d922d2de02d5234b909ab (patch) | |
tree | 74cbbfd5cdc97da48c76cbd09139040476668e18 | |
parent | e4fdab8dd54fd7c4f0e90dfbe586587b700b600f (diff) | |
download | cobalt-site-f5d67ea11aa1a116d28d922d2de02d5234b909ab.tar.xz cobalt-site-f5d67ea11aa1a116d28d922d2de02d5234b909ab.zip |
Moved OGP tags into included header.
-rw-r--r-- | _includes/head.liquid | 10 | ||||
-rw-r--r-- | _layouts/post.liquid | 5 |
2 files changed, 9 insertions, 6 deletions
diff --git a/_includes/head.liquid b/_includes/head.liquid index 57befda..f1b4ffa 100644 --- a/_includes/head.liquid +++ b/_includes/head.liquid @@ -1,4 +1,12 @@ <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> -<title>{{ page.title }}</title> <link rel="stylesheet" href="/public/css/styles.css"> +<title>{{ page.title }}</title> + +<!-- Open Graph Protocol --> +<meta property="og:title" content="{{ page.title }}"/> +<meta property="og:description" content="{{ page.description }}"/> +<meta property="og:type" content="website"/> +<meta property="og:image" content="https://53hor.net/public/images/logo.png"/> +<meta property="og:url" content="{{ page.permalink }}"/> +<meta property="og:site_name" content="53hornet"/> diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 8caa31d..a23d51f 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -2,11 +2,6 @@ <html> <head> {% include "head.liquid" %} - <!-- Open Graph Protocol --> - <meta property="og:title" content="{{ page.title }}"/> - <meta property="og:type" content="website"/> - <meta property="og:image" content="/public/images/logo.png"/> - <meta property="og:url" content="{{ page.permalink }}"/> </head> <body> |