Skip to content

Commit 01dca79

Browse files
committed
feat(SEO): add nofollow, noindex
1 parent c333202 commit 01dca79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/helpers/meta_tag_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def set_meta(data = {})
1717
}
1818
data[:og][:image] = data[:image] if data[:image]
1919
data[:og][:image] = default_og_image unless data[:og][:image]
20+
data[:nofollow] = true if options[:nofollow] == true
21+
data[:noindex] = true if options[:noindex] == true
2022
set_meta_tags(data.merge(
2123
reverse: default_meta[:reverse],
2224
separator: default_meta[:separator],

0 commit comments

Comments
 (0)