phcdevworks_titleseo 1.0.5 → 2.2.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/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 -25
- 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: 67c6a48b2d5aff3ac5bce63292a165361004263c298b5e8d5beda0293f417a62
|
4
|
+
data.tar.gz: 72f5adac9e1c164d4d08406c17454e34aaaf6b7162a8334d23ffc70b42f6fe6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddad3b02bdaf656a6c98870fedc6175709e172b76b5660ac7ee53ee68cfbf685916da35adc62f98c1ae30b5e9bb43fdfc0225d3988001165e921c22025eacafd
|
7
|
+
data.tar.gz: 6c0022c7ee503e373fb3b7590adcd3c28c2b2ea38ee4145d0938e06c891b2950d92ddf120e73e1be8e8e230618f318842afe78090427ae0a483e5ea15c22dde0
|
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:
|
4
|
+
version: 2.2.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-23 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.2
|
22
|
+
version: 6.0.3.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,47 +29,35 @@ dependencies:
|
|
29
29
|
version: '6.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.2
|
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.
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 1.4.2
|
39
|
+
version: '1.8'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
44
|
- - "~>"
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version: '1.
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 1.4.2
|
46
|
+
version: '1.8'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: phcthemes_web_theme_pack
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
51
|
- - "~>"
|
58
52
|
- !ruby/object:Gem::Version
|
59
|
-
version: '1.
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 1.2.9
|
53
|
+
version: '1.8'
|
63
54
|
type: :runtime
|
64
55
|
prerelease: false
|
65
56
|
version_requirements: !ruby/object:Gem::Requirement
|
66
57
|
requirements:
|
67
58
|
- - "~>"
|
68
59
|
- !ruby/object:Gem::Version
|
69
|
-
version: '1.
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 1.2.9
|
60
|
+
version: '1.8'
|
73
61
|
- !ruby/object:Gem::Dependency
|
74
62
|
name: sqlite3
|
75
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,10 +92,9 @@ files:
|
|
104
92
|
- app/mailers/phcdevworks_titleseo/application_mailer.rb
|
105
93
|
- app/models/phcdevworks_titleseo/application_record.rb
|
106
94
|
- app/views/layouts/phcdevworks_titleseo/application.html.erb
|
107
|
-
- app/views/phcdevworks_titleseo/
|
108
|
-
- app/views/phcdevworks_titleseo/
|
109
|
-
- app/views/phcdevworks_titleseo/
|
110
|
-
- 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
|
111
98
|
- lib/phcdevworks_titleseo.rb
|
112
99
|
- lib/phcdevworks_titleseo/engine.rb
|
113
100
|
- lib/phcdevworks_titleseo/version.rb
|
@@ -131,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
118
|
- !ruby/object:Gem::Version
|
132
119
|
version: '0'
|
133
120
|
requirements: []
|
134
|
-
rubygems_version: 3.0.
|
121
|
+
rubygems_version: 3.0.3
|
135
122
|
signing_key:
|
136
123
|
specification_version: 4
|
137
124
|
summary: PHCDevworks - Helpers - Title/SEO
|
File without changes
|