Skip to content

Commit e42fac2

Browse files
committed
Actually use the Jekyll SEO plugin
It was being duplicated because I forgot to remove the old title and description etc first and I added a description to the welcome post since otherwise it'll use the site wide description. Also updated the config to create excerpts automatically.
1 parent 8771192 commit e42fac2

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

generators/jekyll/templates/app/_includes/head.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55

6-
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7-
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
6+
<!-- SEO -->
7+
{% seo %}
98

109
<!-- CSS -->
1110
<!-- inject:css -->
@@ -17,7 +16,4 @@
1716

1817
<!-- RSS -->
1918
{% feed_meta %}
20-
21-
<!-- SEO -->
22-
{% seo %}
2319
</head>

generators/jekyll/templates/app/_posts/2014-03-03-welcome-to-jekyll.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: post
33
date: 2015-02-03
44
title: Welcome to Jekyll!
5+
description: A post welcoming you to Jekyll
56
categories: jekyll
67
---
78

generators/jekyll/templates/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ limit_posts: 10
3333
permalink: <%= jekyllPermalinks %>
3434
paginate: 10
3535
paginate_path: 'page:num'
36-
excerpt_separator: '<!--more-->'
36+
excerpt_separator: ''
3737

3838
# Markdown library and options
3939
markdown: redcarpet

0 commit comments

Comments
 (0)