phcdevworks_titleseo 1.0.4 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +2 -2
- 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 -19
- 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: 646e68d9c05628c8e6afc410b7200b0d5b2d1ddeb21720b002a7b8e809844887
|
4
|
+
data.tar.gz: ee149ecedcb6cf8365f2f5bd60b6cec3ec602711bee76548794e12439dab6dcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f84f79c1a9b7d32f1253313f3c235300703deee0005a209b3f7e10150de785d51f0417c5ebfe3324bc704ecd0af237bbe0358a5521e797adf5fa34e68da5c4
|
7
|
+
data.tar.gz: 350e1b35343277c912997e3834b9c98a08f4d1a5c83ff84cc1567a681eb5a817b66acbeeb3c13789bc3da294933d98eecf7f4d771362d171b556355eb1a2ae69
|
data/MIT-LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright
|
1
|
+
Copyright 2010-2020 BradPotts - PHCDevworks
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
17
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
18
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
19
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
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: 1.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-01 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.1
|
22
|
+
version: 6.0.3.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,41 +29,35 @@ dependencies:
|
|
29
29
|
version: '6.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.1
|
32
|
+
version: 6.0.3.1
|
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.7'
|
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.7'
|
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.
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: 1.2.1
|
53
|
+
version: '1.7'
|
57
54
|
type: :runtime
|
58
55
|
prerelease: false
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
60
57
|
requirements:
|
61
58
|
- - "~>"
|
62
59
|
- !ruby/object:Gem::Version
|
63
|
-
version: '1.
|
64
|
-
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 1.2.1
|
60
|
+
version: '1.7'
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
62
|
name: sqlite3
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,10 +92,9 @@ files:
|
|
98
92
|
- app/mailers/phcdevworks_titleseo/application_mailer.rb
|
99
93
|
- app/models/phcdevworks_titleseo/application_record.rb
|
100
94
|
- app/views/layouts/phcdevworks_titleseo/application.html.erb
|
101
|
-
- app/views/phcdevworks_titleseo/
|
102
|
-
- app/views/phcdevworks_titleseo/
|
103
|
-
- app/views/phcdevworks_titleseo/
|
104
|
-
- 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
|
105
98
|
- lib/phcdevworks_titleseo.rb
|
106
99
|
- lib/phcdevworks_titleseo/engine.rb
|
107
100
|
- lib/phcdevworks_titleseo/version.rb
|
@@ -125,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
118
|
- !ruby/object:Gem::Version
|
126
119
|
version: '0'
|
127
120
|
requirements: []
|
128
|
-
rubygems_version: 3.0.
|
121
|
+
rubygems_version: 3.0.3
|
129
122
|
signing_key:
|
130
123
|
specification_version: 4
|
131
124
|
summary: PHCDevworks - Helpers - Title/SEO
|
File without changes
|