Skip to content

Commit 6efdbe1

Browse files
committed
Use jekyll-seo-tag plugin
1 parent 45616f9 commit 6efdbe1

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

_config.yml

+12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ defaults:
1818
path: ""
1919
values:
2020
sitemap: false
21+
image:
22+
path: /images/og-image.png
23+
width: 1024
24+
height: 640
25+
alt: "PHP: The Right Way"
2126

2227
# Excludes should be appended to the default
2328
# https://github.com/jekyll/jekyll/blob/master/lib/site_template/_config.yml#L37-L55
@@ -27,7 +32,9 @@ exclude:
2732
- gemfiles/
2833
- Gemfile
2934
- Gemfile.lock
35+
- Gruntfile.js
3036
- node_modules/
37+
- package.json
3138
- vendor/bundle/
3239
- vendor/cache/
3340
- vendor/gems/
@@ -39,3 +46,8 @@ exclude:
3946
- pages/example.md
4047

4148
future: true
49+
50+
title: "PHP: The Right Way"
51+
tagline: Reference for PHP best practices
52+
description: An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the Web
53+
logo: /images/og-image.png

_layouts/default.html

+4-10
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8"/>
5-
<title>{% if page.title %}{{ page.title }} - {% endif %}PHP: The Right Way</title>
6-
<meta name="description" content="{{ page.description }}"/>
5+
6+
{% seo %}
7+
78
<meta name="robots" content="index,follow,archive"/>
8-
<meta property="og:image:url" content="https://www.phptherightway.com/images/og-image.png"/>
9-
<meta property="og:image:width" content="1024"/>
10-
<meta property="og:image:height" content="640"/>
11-
<meta property="og:title" content="PHP: The Right Way"/>
12-
<meta property="og:description" content="An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the Web"/>
13-
<meta property="og:url" content="https://www.phptherightway.com"/>
14-
<meta property="og:site_name" content="PHP: The Right Way"/>
15-
<meta property="og:type" content="website"/>
9+
1610
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
1711
<link rel="icon" href="{{ site.baseurl }}images/favicon.png" type="image/png"/>
1812
<link rel="stylesheet" href="{{ site.baseurl }}styles/syntax.css">

_layouts/page.html

+4-10
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8"/>
5-
<title>{% if page.title %}{{ page.title }} - {% endif %}PHP: The Right Way</title>
6-
<meta name="description" content="{{ page.description }}"/>
5+
6+
{% seo %}
7+
78
<meta name="robots" content="index,follow,archive"/>
8-
<meta property="og:image:url" content="https://www.phptherightway.com/images/og-image.png"/>
9-
<meta property="og:image:width" content="1024"/>
10-
<meta property="og:image:height" content="640"/>
11-
<meta property="og:title" content="PHP: The Right Way"/>
12-
<meta property="og:description" content="An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the Web"/>
13-
<meta property="og:url" content="https://www.phptherightway.com"/>
14-
<meta property="og:site_name" content="PHP: The Right Way"/>
15-
<meta property="og:type" content="website"/>
9+
1610
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
1711
<link rel="icon" href="{{ site.baseurl }}images/favicon.png" type="image/png"/>
1812
<link rel="stylesheet" href="{{ site.baseurl }}styles/syntax.css">

index.html

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
layout: default
3-
description: "An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the Web"
43
sitemap: true
54
---
65

0 commit comments

Comments
 (0)