diff options
-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> |