Search Engine Optimization
Advanced SEO for Rails apps with schema tags.
Table of Contents
- Installation
- Usage
- Meta tags
- Schemas
- Nested types
- To Do
- Contributing
- Contributors
- Semantic versioning
- License
Installation
Search Engine Optimization works with Rails 5 onwards. You can add it to your Gemfile
with:
gem 'search-engine-optimization'
And then execute:
$ bundle
Or install it yourself as:
$ gem install search-engine-optimization
If you always want to be up to date fetch the latest from GitHub in your Gemfile
:
gem 'search-engine-optimization', github: 'jonhue/search-engine-optimization'
Usage
Meta tags
Use metamagic to add titles and descriptions to your views.
Schemas
Search Engine Optimization assists you in creating schema tags that will enhance SERPs and click rates.
Use the seo/schema
component:
= component 'seo/schema', type: :article, options
Here is a list of available types:
- AggregateRating
- Article
- Brand
- CreativeWork
- Intangible
- Offer
- Organization
- Person
- Product
- Rating
- Service
- Thing
Nested types
You can nest types in your schema tag:
= component 'seo/schema', type: :person, name: 'Parent', children: [{ type: :person, name: 'Child 1' }, { type: :person, name: 'Child 2' }], parent: { type: :person, name: 'Grandparent' }
To Do
Here is the full list of current projects.
To propose your ideas, initiate the discussion by adding a new issue.
Contributing
We hope that you will consider contributing to Search Engine Optimization. Please read this short overview for some information about how to get started:
Learn more about contributing to this repository, Code of Conduct
Contributors
Give the people some ❤️ who are working on this project. See them all at:
https://github.com/jonhue/search-engine-optimization/graphs/contributors
Semantic Versioning
Search Engine Optimization follows Semantic Versioning 2.0 as defined at http://semver.org.
License
MIT License
Copyright (c) 2018 Jonas Hübotter
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.