Awesome
APIQ SEO
Adds SEO support to APIQ: additional fields for Pages (meta tags, h1), sitemap.xml generating, redirects, special {{ seo }} variable.
Use "seo" object for accessing SEO settings for page or object.
<title>{{ seo.title }}</title>
<meta name="keywords" content="{{ seo.keywords }}">
<meta name="description" content="{{ seo.description }}">
...
<h1>{{ seo.h1 }}</h1>
Also, this adds sitemap generation support (at /sitemap.xml)
Installation
-
Add to Gemfile
gem "kms_seo" # or for edge version: gem "kms_seo", github: "webgradus/kms_seo"
-
Run generator:
bundle exec rails g kms_seo:install
-
Copy migrations:
bundle exec rails kms_seo:install:migrations
-
Migrate:
bundle exec rails db:migrate
-
Recompile assets (if on production):
bundle exec rails assets:precompile
-
Restart APIQ instance
Contributing
Please follow CONTRIBUTING.md.