jekyll-seo-tag/README.md

51 lines
1.9 KiB
Markdown
Raw Normal View History

2015-10-25 21:21:46 +00:00
# Jekyll SEO Tag
A Jekyll plugin to add metadata tags for search engines and social networks to better index and display your site's content.
[![Gem Version](https://badge.fury.io/rb/jekyll-seo-tag.svg)](https://badge.fury.io/rb/jekyll-seo-tag) [![Build Status](https://travis-ci.org/jekyll/jekyll-seo-tag.svg)](https://travis-ci.org/jekyll/jekyll-seo-tag)
2015-10-30 16:16:21 +00:00
2015-10-25 21:21:46 +00:00
## What it does
Jekyll SEO Tag adds the following meta tags to your site:
* Page title, with site title or description appended
2015-10-25 21:21:46 +00:00
* Page description
* Canonical URL
* Next and previous URLs on paginated pages
2015-10-25 21:21:46 +00:00
* [JSON-LD Site and post metadata](https://developers.google.com/structured-data/) for richer indexing
* [Open Graph](http://ogp.me/) title, description, site title, and URL (for Facebook, LinkedIn, etc.)
* [Twitter Summary Card](https://dev.twitter.com/cards/overview) metadata
2015-10-25 21:21:46 +00:00
2015-10-25 21:47:47 +00:00
While you could theoretically add the necessary metadata tags yourself, Jekyll SEO Tag provides a battle-tested template of crowdsourced best-practices.
2015-10-25 21:21:46 +00:00
## What it doesn't do
Jekyll SEO tag is designed to output machine-readable metadata for search engines and social networks to index and display. If you're looking for something to analyze your Jekyll site's structure and content (e.g., more traditional SEO optimization), take a look at [The Jekyll SEO Gem](https://github.com/pmarsceill/jekyll-seo-gem).
2015-10-25 21:47:47 +00:00
Jekyll SEO tag isn't designed to accommodate every possible use case. It should work for most site out of the box and without a laundry list of configuration options that serve only to confuse most users.
2015-10-25 21:21:46 +00:00
## Installation
1. Add the following to your site's `Gemfile`:
```ruby
gem 'jekyll-seo-tag'
```
2. Add the following to your site's `_config.yml`:
```yml
gems:
- jekyll-seo-tag
```
3. Add the following right before `</head>` in your site's template(s):
```liquid
2016-03-01 07:18:13 +00:00
{% seo %}
2015-10-25 21:21:46 +00:00
```
2017-05-25 13:50:01 +00:00
## Documentation
2015-10-25 21:21:46 +00:00
2017-05-25 13:50:01 +00:00
See [the documentation](https://jekyll.github.io/jekyll-seo-tag) for more information.