Skip to content

Commit 4d08714

Browse files
authored
Merge pull request jekyll#139 from jekyll/jekyll-seo-tag-dependency
Add jekyll-seo-tag dependency
2 parents f816ddb + f67bcaf commit 4d08714

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Contains the `main.scss` that imports sass files from within the `_sass` directo
6565

6666
This directory can include sub-directories to manage assets of similar type, and will be copied over as is, to the final transformed site directory.
6767

68+
### Plugins
69+
70+
Minima comes with [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) plugin preinstalled to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag#usage) to know how to set it up.
6871

6972
## Usage
7073

_includes/head.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
<meta charset="utf-8">
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
5-
6-
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7-
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8-
5+
{% seo %}
96
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
10-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
117
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
12-
138
{% if jekyll.environment == 'production' and site.google_analytics %}
14-
{% include google-analytics.html %}
9+
{% include google-analytics.html %}
1510
{% endif %}
1611
</head>

minima.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
1919
spec.bindir = "exe"
2020
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2121

22-
spec.add_runtime_dependency "jekyll", "~> 3.3"
22+
spec.add_runtime_dependency "jekyll", "~> 3.5"
23+
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.1"
24+
2325
spec.add_development_dependency "bundler", "~> 1.12"
2426
end

0 commit comments

Comments
 (0)