Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use jekyll-seo-tag plugin #970

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ defaults:
path: ""
values:
sitemap: false
image:
path: /images/og-image.png
width: 1024
height: 640
alt: "PHP: The Right Way"

# Excludes should be appended to the default
# https://github.com/jekyll/jekyll/blob/master/lib/site_template/_config.yml#L37-L55
Expand All @@ -27,7 +32,9 @@ exclude:
- gemfiles/
- Gemfile
- Gemfile.lock
- Gruntfile.js
- node_modules/
- package.json
- vendor/bundle/
- vendor/cache/
- vendor/gems/
Expand All @@ -39,3 +46,8 @@ exclude:
- pages/example.md

future: true

title: "PHP: The Right Way"
tagline: Reference for PHP best practices
description: An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the Web
logo: /images/og-image.png
14 changes: 4 additions & 10 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>{% if page.title %}{{ page.title }} - {% endif %}PHP: The Right Way</title>
<meta name="description" content="{{ page.description }}"/>

{% seo %}

<meta name="robots" content="index,follow,archive"/>
<meta property="og:image:url" content="https://www.phptherightway.com/images/og-image.png"/>
<meta property="og:image:width" content="1024"/>
<meta property="og:image:height" content="640"/>
<meta property="og:title" content="PHP: The Right Way"/>
<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"/>
<meta property="og:url" content="https://www.phptherightway.com"/>
<meta property="og:site_name" content="PHP: The Right Way"/>
<meta property="og:type" content="website"/>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<link rel="icon" href="{{ site.baseurl }}images/favicon.png" type="image/png"/>
<link rel="stylesheet" href="{{ site.baseurl }}styles/syntax.css">
Expand Down
14 changes: 4 additions & 10 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>{% if page.title %}{{ page.title }} - {% endif %}PHP: The Right Way</title>
<meta name="description" content="{{ page.description }}"/>

{% seo %}

<meta name="robots" content="index,follow,archive"/>
<meta property="og:image:url" content="https://www.phptherightway.com/images/og-image.png"/>
<meta property="og:image:width" content="1024"/>
<meta property="og:image:height" content="640"/>
<meta property="og:title" content="PHP: The Right Way"/>
<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"/>
<meta property="og:url" content="https://www.phptherightway.com"/>
<meta property="og:site_name" content="PHP: The Right Way"/>
<meta property="og:type" content="website"/>

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<link rel="icon" href="{{ site.baseurl }}images/favicon.png" type="image/png"/>
<link rel="stylesheet" href="{{ site.baseurl }}styles/syntax.css">
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: default
description: "An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative PHP tutorials around the Web"
sitemap: true
---

Expand Down