Skip to content

Commit

Permalink
Merge pull request jekyll#139 from jekyll/jekyll-seo-tag-dependency
Browse files Browse the repository at this point in the history
Add jekyll-seo-tag dependency
  • Loading branch information
DirtyF authored Aug 17, 2017
2 parents f816ddb + f67bcaf commit 4d08714
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Contains the `main.scss` that imports sass files from within the `_sass` directo

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.

### Plugins

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.

## Usage

Expand Down
9 changes: 2 additions & 7 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">

{% seo %}
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">

{% if jekyll.environment == 'production' and site.google_analytics %}
{% include google-analytics.html %}
{% include google-analytics.html %}
{% endif %}
</head>
4 changes: 3 additions & 1 deletion minima.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

spec.add_runtime_dependency "jekyll", "~> 3.3"
spec.add_runtime_dependency "jekyll", "~> 3.5"
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.1"

spec.add_development_dependency "bundler", "~> 1.12"
end

0 comments on commit 4d08714

Please sign in to comment.