seo_fuel 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.md +13 -2
- data/app/views/seo_tags/_seo_options.html.erb +1 -1
- data/lib/seo_fuel/version.rb +1 -1
- metadata +1 -1
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,14 @@ _This gem is still in early development. Described features work, but some featu
|
|
4
4
|
|
5
5
|
SEO Fuel is a super easy way to manage SEO tags in your Rails app. It doesn't require any adjustments to existing models or controllers.
|
6
6
|
|
7
|
-
|
7
|
+
![Edit SEO right in your browser](lib/images/example.jpg "Optional title")
|
8
|
+
|
9
|
+
## Philosophy
|
10
|
+
Where to put SEO? The main idea behind this gem is that end users often want to be able to fine tune SEO settings right in the browser, without going to some sort of backend or options file.
|
11
|
+
|
12
|
+
SEO Fuel works by adding a form with SEO settings (title, description, etc.) to every single page of your app. This form is hidden, but pops up when you hit the button. The SEO settings are stored in their own table and aren't linked to a page by complicated foreign keys, but rather by path ('/articles/1-article-title').
|
13
|
+
|
14
|
+
SEO Fuel makes it realy easy to have total control of the meta tags, while still keeping it just as easy to set great default SEO values.
|
8
15
|
|
9
16
|
## Installation
|
10
17
|
|
@@ -47,6 +54,10 @@ Display the edit button and the form on every page, by including these commands
|
|
47
54
|
|
48
55
|
<%= edit_seo_dialog %>
|
49
56
|
|
57
|
+
or, if you wish to only let signed in users be able to see the form (using devse in this example):
|
58
|
+
|
59
|
+
<%= edit_seo_dialog if admin_signed_in? %>
|
60
|
+
|
50
61
|
### Setting default values
|
51
62
|
By default, all titles are blank. If a title is blank, the one specified in `seo_fuel_settings.yml` should be used (NOT YET IMPLEMENTED). Per template, you can specify a default value by adding a line of code to your view template. This value takes precedence over the default title.
|
52
63
|
The 'in browser' added SEO settings take precedence over all default values.
|
@@ -55,7 +66,7 @@ The 'in browser' added SEO settings take precedence over all default values.
|
|
55
66
|
|
56
67
|
|
57
68
|
### I18n
|
58
|
-
This gem is fully I18n adjustable. Just edit the locale file, placed in the
|
69
|
+
This gem is fully I18n adjustable. Just edit the locale file, placed in the locales directory of your Rails app.
|
59
70
|
|
60
71
|
## TODO
|
61
72
|
This gem is in early development, there are still some things to do:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= link_to I18n.t('seo.button_text'), "#", class: "seo_fuel", id: "edit_seo_btn" unless SeoFuel::VERSION
|
1
|
+
<%= link_to I18n.t('seo.button_text'), "#", class: "seo_fuel", id: "edit_seo_btn" unless SeoFuel::VERSION < "0.0.5" %>
|
2
2
|
<div id="edit_seo_dialog" class="seo_fuel" style="display: none;">
|
3
3
|
<%= form_for SeoTag.find_or_initialize_by_path(request.path), remote: true, html: {class: "seo_form"} do |f|%>
|
4
4
|
<%= f.hidden_field :path %>
|
data/lib/seo_fuel/version.rb
CHANGED