fix og type
This commit is contained in:
parent
ec17657bac
commit
a72af9c234
3 changed files with 4 additions and 3 deletions
|
@ -43,6 +43,7 @@ defaults:
|
||||||
values:
|
values:
|
||||||
layout: post
|
layout: post
|
||||||
author: Ayo
|
author: Ayo
|
||||||
|
type: "post"
|
||||||
excerpt_separator: <!--more-->
|
excerpt_separator: <!--more-->
|
||||||
|
|
||||||
# this goes inside _config.yml. Change as required
|
# this goes inside _config.yml. Change as required
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<!-- start: fb open graph meta tags -->
|
<!-- start: fb open graph meta tags -->
|
||||||
<meta property="og:url" content="{{ page.url | absolute_url }}" />
|
<meta property="og:url" content="{{ page.url | absolute_url }}" />
|
||||||
<meta property="og:type" content="article" />
|
{% if page.type == "post" %}<meta property="og:type" content="article" />{% else %}<meta property="og:type" content="website" />{% endif %}
|
||||||
<meta property="og:title" content="{{ page.title }}" />
|
<meta property="og:title" content="{{ page.title }}" />
|
||||||
<meta property="og:description" content="{{ page.description }}" />
|
<meta property="og:description" content="{{ page.description }}" />
|
||||||
<meta property="og:image" content="{{ '/assets/images/' | absolute_url }}{{ page.image }}" />
|
<meta property="og:image" content="{{ '/assets/images/' | absolute_url }}{{ page.image }}" />
|
||||||
|
|
4
index.md
4
index.md
|
@ -3,8 +3,8 @@
|
||||||
# Edit theme's home layout instead if you wanna make some changes
|
# Edit theme's home layout instead if you wanna make some changes
|
||||||
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
|
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
|
||||||
|
|
||||||
layout: home
|
layout: "home"
|
||||||
type: home
|
type: "home"
|
||||||
title: "Full Hacker: Web Development and Productivity Hacks"
|
title: "Full Hacker: Web Development and Productivity Hacks"
|
||||||
description: "Full hacker is a place to learn new web development and productivity hacks."
|
description: "Full hacker is a place to learn new web development and productivity hacks."
|
||||||
image: "hello-world.jpg"
|
image: "hello-world.jpg"
|
||||||
|
|
Loading…
Reference in a new issue