phcdevworks_titleseo 1.1.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +45 -9
- data/app/helpers/phcdevworks_titleseo/application_helper.rb +75 -33
- data/app/views/phcdevworks_titleseo/_template_2_breadcrumbs.html.erb +2 -0
- data/app/views/phcdevworks_titleseo/_template_3_breadcrumbs.html.erb +3 -0
- data/app/views/phcdevworks_titleseo/{_page_seo.html.erb → _template_seo.html.erb} +0 -0
- data/lib/phcdevworks_titleseo/version.rb +1 -1
- metadata +12 -13
- data/app/views/phcdevworks_titleseo/_page_breadcrumbs.html.erb +0 -5
- data/app/views/phcdevworks_titleseo/_page_buttons.html.erb +0 -0
- data/app/views/phcdevworks_titleseo/_page_titles.html.erb +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f58c2b02a86ccd7cf2475822850b8666da8e1a308abeda68933519f7afc30d6
|
4
|
+
data.tar.gz: b9169b422ebe14dd241872b5a38a62c05cd4468a1b5adc9862e7a9edfbd36c82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cb753816dcfac067b97367aa5dd280aba918710320a416c9748e958e90e81fae7e8f7acbc0fbf3c854bf8d9c521971015c911aacd1424da28309abf82b94c46
|
7
|
+
data.tar.gz: 3f24a591d9e2ecb3296005862be1e5d47c95c38d715a2ffb21c585afb2c9258f80ebf358298206cebe44132cad477316971a0975216160eaf7c9b0475de3671c
|
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
|
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
|
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_twitter_type) %>">
|
81
|
+
<meta property="twitter:url" content="<%= yield(:phc_seo_twitter_url) %>">
|
82
|
+
<meta property="twitter:title" content="<%= yield(:phc_seo_twitter_title) %>">
|
83
|
+
<meta property="twitter:description" content="<%= yield(:phc_seo_twitter_description) %>">
|
84
|
+
<meta property="twitter:image" content="<%= yield(:phc_seo_twitter_image) %>">
|
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
|
-
|
2
|
+
module ApplicationHelper
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
10
|
-
|
11
|
-
|
9
|
+
def phc_seo_description(phc_page_description)
|
10
|
+
content_for :phc_seo_description, phc_page_description.to_s
|
11
|
+
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
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
|
File without changes
|
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:
|
4
|
+
version: 2.4.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-
|
11
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '6.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 6.0.
|
22
|
+
version: 6.0.3.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,35 +29,35 @@ dependencies:
|
|
29
29
|
version: '6.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.
|
32
|
+
version: 6.0.3.2
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: phcthemes_admin_panel_pack
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.10'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.10'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: phcthemes_web_theme_pack
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.10'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
60
|
+
version: '1.10'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: sqlite3
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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/
|
96
|
-
- app/views/phcdevworks_titleseo/
|
97
|
-
- app/views/phcdevworks_titleseo/
|
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
|
@@ -119,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
118
|
- !ruby/object:Gem::Version
|
120
119
|
version: '0'
|
121
120
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
121
|
+
rubygems_version: 3.0.3
|
123
122
|
signing_key:
|
124
123
|
specification_version: 4
|
125
124
|
summary: PHCDevworks - Helpers - Title/SEO
|
File without changes
|