phcdevworks_titleseo 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1326ca97a95a8427619b5dde276ccd703a14b3b06aa26a13765cab19055e8e3e
4
- data.tar.gz: 776ea10e71959d0d811f89a514b2b812e969a13c4a68ec2b0040701570756795
3
+ metadata.gz: 63e097f46b4fb79a3913db1a40e2db0ba01ef36227ce0ceefce5b222d160fb08
4
+ data.tar.gz: f4361a6c48e4f54e6926ea10e490950080957383f653bda61b153286f4ee5592
5
5
  SHA512:
6
- metadata.gz: 1bffc2e21d9db6e84d85ea842661394277ec81444ea0c7e2c2a7f07ed54ed4fb82284bb7bae5bdece2c065dc45074021e2c39a4c294620d3801a4ffe127d463e
7
- data.tar.gz: ea040d32883502c294459c638e7e25ff1881a11926570ae5109775e02f0b6a69c6149e165ecbbbad611d85d4c06dc7610087cfc302ba769b1a22f3ef6f06e19e
6
+ metadata.gz: e40e13b39ea382bbeb765af3079fcbdb1829cc6fbe716ccfb725fefbb9262b2c796752a7dc38ba333d6df5d00987681901f5f51597e292ebbf228d561f7e4360
7
+ data.tar.gz: 273c626ee1c917830f52ebcdd92dd07b2c759d7f2629398da2c2f5ea7bbc7fa147682608a59a988a55efc59833b54efc16883751d4974582207561dc08f54f95
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  ### PHCDevworks Title/SEO for Rails6 (Page SEO, Titles & Title Tags)
2
2
 
3
- PHCDevworks Title/SEO Rails6 engine with helpers for page headings, taglines, SEO and title tags.
3
+ PHCDevworks Title/SEO Rails6 engine with helpers for page headings, taglines, SEO, Social Media and title tags.
4
4
 
5
- * A dynamic way to add different page headings, taglines, SEO and title tags.
5
+ * A dynamic way to add different page headings, taglines, SEO and title tags to your layout file.
6
+ * Standardize a template for your serach engine marketing and optimization efforts.
6
7
  * Setup in seconds with only one line of code in the application_controller file.
7
8
  * Save time and keep your rails projects manageable, multiple views tidy and secure.
8
9
 
@@ -17,22 +18,40 @@ Add the line of code below into your app/controllers/application_controller.rb (
17
18
  helper PhcdevworksTitleseo::Engine.helpers
18
19
 
19
20
  #### Step 3 - Provide values for Titles & Subtitles
21
+
20
22
  **Page Titles** - At the top of the page, view add the hidden lines of code below.
21
23
 
22
24
  <% phc_title "Example Title" %>
23
25
  <% phc_title_tagline "Example Tagline" %>
24
-
25
- **Page SEO** - At the top of your layout view file add the hidden lines of code below.
26
+
27
+ **Page SEO Normail Meta Tags** - At the top of your layout view file add the hidden lines of code below.
26
28
 
27
29
  <% phc_seo_title "Example SEO Page Title" %>
28
30
  <% phc_seo_description "Example SEO Page Description" %>
29
-
30
- **Page Static BreadCrumbs** - At the top of the page, view add the hidden lines of code below.
31
+
32
+ **Page SEO Open Graph/Facebook Meta Tags** - At the top of your layout view file add the hidden lines of code below.
33
+
34
+ <% phc_seo_open_graph_type "" %>
35
+ <% phc_seo_open_graph_url "" %>
36
+ <% phc_seo_open_graph_title "" %>
37
+ <% phc_seo_open_graph_description "" %>
38
+ <% phc_seo_open_graph_image "" %>
39
+
40
+ **Page SEO Twitter Meta Tags** - At the top of your layout view file add the hidden lines of code below.
41
+
42
+ <% phc_seo_twitter_type "" %>
43
+ <% phc_seo_twitter_url "" %>
44
+ <% phc_seo_twitter_title "" %>
45
+ <% phc_seo_twitter_description "" %>
46
+ <% phc_seo_twitter_image "" %>
47
+
48
+
49
+ **Page BreadCrumbs** - At the top of the page, view add the hidden lines of code below.
31
50
 
32
51
  <% phc_breadcrumb_one "Example News" %>
33
52
  <% phc_breadcrumb_two "Article" %>
34
53
  <% phc_breadcrumb_three "Index" %>
35
-
54
+
36
55
  #### Add Titles to a Page
37
56
  Add the code below in your views whenever page titles are required (can be used unlimited number of times).
38
57
 
@@ -46,8 +65,24 @@ Add the code below to your views whenever page subtitles are required (can also
46
65
  #### Add SEO Tags to your Layout file
47
66
 
48
67
  <title><%= yield(:phc_seo_title) %></title>
49
- <meta name="description" content=<%= yield(:phc_seo_description) %>"">
50
-
68
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
69
+
70
+ #### Add Open Graph and Facebook Social Media Tags to your Layout file
71
+
72
+ <meta property="og:type" content="<%= yield(:phc_seo_open_graph_type) %>">
73
+ <meta property="og:url" content="<%= yield(:phc_seo_open_graph_url) %>">
74
+ <meta property="og:title" content="<%= yield(:phc_seo_open_graph_title) %>">
75
+ <meta property="og:description" content="<%= yield(phc_seo_open_graph_description) %>">
76
+ <meta property="og:image" content="<%= yield(:phc_seo_open_graph_image) %>">
77
+
78
+ #### Add Twitter Media Tags to your Layout file
79
+
80
+ <meta property="twitter:card" content="<%= yield(:phc_seo_open_graph_type) %>">
81
+ <meta property="twitter:url" content="<%= yield(:phc_seo_open_graph_type) %>">
82
+ <meta property="twitter:title" content="<%= yield(:phc_seo_open_graph_type) %>">
83
+ <meta property="twitter:description" content="<%= yield(:phc_seo_open_graph_type) %>">
84
+ <meta property="twitter:image" content="<%= yield(:phc_seo_open_graph_type) %>">
85
+
51
86
  #### Add static BreadCrumbs to your Pagefile
52
87
 
53
88
  <ol class="breadcrumb">
@@ -55,3 +90,4 @@ Add the code below to your views whenever page subtitles are required (can also
55
90
  <li><%= yield(:phc_breadcrumb_two) %></li>
56
91
  <li class="active"><%= yield(:phc_breadcrumb_three) %></li>
57
92
  </ol>
93
+
@@ -1,45 +1,87 @@
1
1
  module PhcdevworksTitleseo
2
- module ApplicationHelper
2
+ module ApplicationHelper
3
3
 
4
- # Helpers for Page SEO
5
- def phc_seo_title(phc_page_seo_title)
6
- content_for :phc_seo_title, phc_page_seo_title.to_s
7
- end
4
+ # Helpers for Page SEO Meta Tags
5
+ def phc_seo_title(phc_page_title)
6
+ content_for :phc_seo_title, phc_page_title.to_s
7
+ end
8
8
 
9
- def phc_seo_description(phc_page_seo_description)
10
- content_for :phc_seo_description, phc_page_seo_description.to_s
11
- end
9
+ def phc_seo_description(phc_page_description)
10
+ content_for :phc_seo_description, phc_page_description.to_s
11
+ end
12
12
 
13
- # Helpers for Page Title & Sub Title
14
- def phc_title(phc_page_title)
15
- content_for :phc_title, phc_page_title.to_s
16
- end
13
+ # Helpers Open Graph and Facebook Meta Tags
14
+ def phc_seo_open_graph_type(phc_page_seo_open_graph_type)
15
+ content_for :phc_seo_open_graph_type, phc_page_seo_open_graph_type.to_s
16
+ end
17
17
 
18
- def phc_title_tagline(phc_page_title_tagline)
19
- content_for :phc_title_tagline, phc_page_title_tagline.to_s
20
- end
18
+ def phc_seo_open_graph_url(phc_page_seo_open_graph_url)
19
+ content_for :phc_seo_open_graph_url, phc_page_seo_open_graph_url.to_s
20
+ end
21
21
 
22
- # Helpers for BreadCrumbs
23
- def phc_breadcrumb_one(phc_page_breadcrumb_one)
24
- content_for :phc_breadcrumb_one, phc_page_breadcrumb_one.to_s
25
- end
22
+ def phc_seo_open_graph_title(phc_page_seo_open_graph_title)
23
+ content_for :phc_seo_open_graph_title, phc_page_seo_open_graph_title.to_s
24
+ end
26
25
 
27
- def phc_breadcrumb_two(phc_page_breadcrumb_two)
28
- content_for :phc_breadcrumb_two, phc_page_breadcrumb_two.to_s
29
- end
26
+ def phc_seo_open_graph_description(phc_page_seo_open_graph_description)
27
+ content_for :phc_seo_open_graph_description, phc_page_seo_open_graph_description.to_s
28
+ end
30
29
 
31
- def phc_breadcrumb_three(phc_page_breadcrumb_three)
32
- content_for :phc_breadcrumb_three, phc_page_breadcrumb_three.to_s
33
- end
30
+ def phc_seo_open_graph_image(phc_page_seo_open_graph_image)
31
+ content_for :phc_seo_open_graph_image, phc_page_seo_open_graph_image.to_s
32
+ end
34
33
 
35
- # Helpers for BreadCrumbs
36
- def phc_button_one(phc_button_one)
37
- content_for :phc_button_one, phc_button_one.to_s
38
- end
34
+ # Helper Twitter Meta Tags
35
+ def phc_seo_twitter_type(phc_page_seo_twitter_type)
36
+ content_for :phc_seo_twitter_type, phc_page_seo_twitter_type.to_s
37
+ end
39
38
 
40
- def phc_button_two(phc_button_two)
41
- content_for :phc_button_two, phc_button_two.to_s
42
- end
39
+ def phc_seo_twitter_url(phc_page_seo_twitter_url)
40
+ content_for :phc_seo_twitter_url, phc_page_seo_twitter_url.to_s
41
+ end
42
+
43
+ def phc_seo_twitter_title(phc_page_seo_twitter_title)
44
+ content_for :phc_seo_twitter_title, phc_page_seo_twitter_title.to_s
45
+ end
43
46
 
44
- end
47
+ def phc_seo_twitter_description(phc_page_seo_twitter_description)
48
+ content_for :phc_seo_twitter_description, phc_page_seo_twitter_description.to_s
49
+ end
50
+
51
+ def phc_seo_twitter_image(phc_page_seo_twitter_image)
52
+ content_for :phc_seo_twitter_image, phc_page_seo_twitter_image.to_s
53
+ end
54
+
55
+ # Helpers for Page Title & Sub Title
56
+ def phc_title(phc_page_title)
57
+ content_for :phc_title, phc_page_title.to_s
58
+ end
59
+
60
+ def phc_title_tagline(phc_page_title_tagline)
61
+ content_for :phc_title_tagline, phc_page_title_tagline.to_s
62
+ end
63
+
64
+ # Helpers for BreadCrumbs
65
+ def phc_breadcrumb_one(phc_page_breadcrumb_one)
66
+ content_for :phc_breadcrumb_one, phc_page_breadcrumb_one.to_s
67
+ end
68
+
69
+ def phc_breadcrumb_two(phc_page_breadcrumb_two)
70
+ content_for :phc_breadcrumb_two, phc_page_breadcrumb_two.to_s
71
+ end
72
+
73
+ def phc_breadcrumb_three(phc_page_breadcrumb_three)
74
+ content_for :phc_breadcrumb_three, phc_page_breadcrumb_three.to_s
75
+ end
76
+
77
+ # Helpers for Buttons
78
+ def phc_button_one(phc_page_button_one)
79
+ content_for :phc_button_one, phc_page_button_one.to_s
80
+ end
81
+
82
+ def phc_button_two(phc_page_button_two)
83
+ content_for :phc_button_two, phc_page_button_two.to_s
84
+ end
85
+
86
+ end
45
87
  end
@@ -0,0 +1,2 @@
1
+ <li><%= yield(:phc_breadcrumb_one) %></li>
2
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
@@ -0,0 +1,3 @@
1
+ <li><%= yield(:phc_breadcrumb_one) %></li>
2
+ <li><%= yield(:phc_breadcrumb_two) %></li>
3
+ <li class="active"><%= yield(:phc_breadcrumb_three) %></li>
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksTitleseo
2
- VERSION = "1.1.0"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_titleseo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-26 00:00:00.000000000 Z
11
+ date: 2020-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -92,10 +92,9 @@ files:
92
92
  - app/mailers/phcdevworks_titleseo/application_mailer.rb
93
93
  - app/models/phcdevworks_titleseo/application_record.rb
94
94
  - app/views/layouts/phcdevworks_titleseo/application.html.erb
95
- - app/views/phcdevworks_titleseo/_page_breadcrumbs.html.erb
96
- - app/views/phcdevworks_titleseo/_page_buttons.html.erb
97
- - app/views/phcdevworks_titleseo/_page_seo.html.erb
98
- - app/views/phcdevworks_titleseo/_page_titles.html.erb
95
+ - app/views/phcdevworks_titleseo/_template_2_breadcrumbs.html.erb
96
+ - app/views/phcdevworks_titleseo/_template_3_breadcrumbs.html.erb
97
+ - app/views/phcdevworks_titleseo/_template_seo.html.erb
99
98
  - lib/phcdevworks_titleseo.rb
100
99
  - lib/phcdevworks_titleseo/engine.rb
101
100
  - lib/phcdevworks_titleseo/version.rb
@@ -1,5 +0,0 @@
1
- <ol class="breadcrumb">
2
- <li><%= yield(:phc_breadcrumb_one) %></li>
3
- <li><%= yield(:phc_breadcrumb_two) %></li>
4
- <li class="active"><%= yield(:phc_breadcrumb_three) %></li>
5
- </ol>
@@ -1,2 +0,0 @@
1
- <h1><%= yield(:phc_title) %></h1>
2
- <span><%= yield(:phc_title_tagline) %></span>