fix og type

This commit is contained in:
Ayo 2018-03-05 22:58:41 +08:00
parent ec17657bac
commit a72af9c234
3 changed files with 4 additions and 3 deletions

View file

@ -43,6 +43,7 @@ defaults:
values:
layout: post
author: Ayo
type: "post"
excerpt_separator: <!--more-->
# this goes inside _config.yml. Change as required

View file

@ -14,7 +14,7 @@
<!-- start: fb open graph meta tags -->
<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:description" content="{{ page.description }}" />
<meta property="og:image" content="{{ '/assets/images/' | absolute_url }}{{ page.image }}" />

View file

@ -3,8 +3,8 @@
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
type: home
layout: "home"
type: "home"
title: "Full Hacker: Web Development and Productivity Hacks"
description: "Full hacker is a place to learn new web development and productivity hacks."
image: "hello-world.jpg"