Skip to content

Commit 81b581a

Browse files
Add X and Facebook meta tags
1 parent 7d8c3c0 commit 81b581a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

app/views/layouts/application_layout.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,24 @@ def view_template(&block)
8585
content: "#ffffff"
8686
)
8787

88+
# OG tags
89+
meta name: "description", content: "PhlexyUI is a component library built with Phlex, a Ruby gem for building fast object-oriented HTML components. On top of DaisyUI, the most popular component library for Tailwind CSS."
90+
91+
# Facebook meta tags
92+
meta property: "og:url", content: "https://phlexyui.com/"
93+
meta property: "og:type", content: "website"
94+
meta property: "og:title", content: "PhlexyUI Docs"
95+
meta property: "og:description", content: "PhlexyUI is a component library built with Phlex, a Ruby gem for building fast object-oriented HTML components. On top of DaisyUI, the most popular component library for Tailwind CSS."
96+
meta property: "og:image", content: "https://opengraph.b-cdn.net/production/images/1f21cf05-5869-44cb-84aa-2bf4d9ecf8a5.png?token=iTG5qqsVBcjjPUvnJBM9vnqnz01gLbsp_g5ICWGuPFY&height=630&width=1200&expires=33263021548"
97+
98+
# X meta tags
99+
meta name: "twitter:card", content: "summary_large_image"
100+
meta property: "twitter:domain", content: "phlexyui.com"
101+
meta property: "twitter:url", content: "https://phlexyui.com/"
102+
meta name: "twitter:title", content: "PhlexyUI Docs"
103+
meta name: "twitter:description", content: "PhlexyUI is a component library built with Phlex, a Ruby gem for building fast object-oriented HTML components. On top of DaisyUI, the most popular component library for Tailwind CSS."
104+
meta name: "twitter:image", content: "https://opengraph.b-cdn.net/production/images/1f21cf05-5869-44cb-84aa-2bf4d9ecf8a5.png?token=iTG5qqsVBcjjPUvnJBM9vnqnz01gLbsp_g5ICWGuPFY&height=630&width=1200&expires=33263021548"
105+
88106
yield :head
89107
end
90108

0 commit comments

Comments
 (0)