Skip to content

Thomas-Malh/easymeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy Meta helps rails developer to organize the default metadata of a website.

Setup

Add the gem to your Gemfile:

# Gemfile
gem "easymeta"

Then create the metadata file in your Ruby on Rails app config/meta.yml:

# example content
description: "My website description"
og:description: "My website OpenGraph description"
viewport: "width=device-width,initial-scale=1"

An ActionView helper will now be available to render all metadata tags from the template:

<%-# app/views/layouts/application.html.erb -%>
<%= meta_tags %>