Skip to content

Commit 0cf4d54

Browse files
Add X and Facebook meta tags
1 parent 7d8c3c0 commit 0cf4d54

File tree

8 files changed

+21
-0
lines changed

8 files changed

+21
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

app/.DS_Store

0 Bytes
Binary file not shown.

app/assets/.DS_Store

0 Bytes
Binary file not shown.

app/assets/images/.DS_Store

0 Bytes
Binary file not shown.

app/assets/images/phlexy_ui_logo_horizontal_bright_screen.svg.svg

Lines changed: 1 addition & 0 deletions
Loading

app/assets/images/phlexy_ui_logo_horizontal_dark_screen.svg

Lines changed: 1 addition & 0 deletions
Loading

app/assets/images/phlexy_ui_og.png

60.9 KB
Loading

app/views/layouts/application_layout.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class ApplicationLayout < ApplicationView
55
include Phlex::Rails::Helpers::TurboRefreshesWith
66
include Phlex::Rails::Helpers::Flash
77
include Phlex::Rails::Helpers::TurboFrameTag
8+
include Phlex::Rails::Helpers::ImagePath
89

910
def view_template(&block)
1011
doctype
@@ -85,6 +86,24 @@ def view_template(&block)
8586
content: "#ffffff"
8687
)
8788

89+
# OG tags
90+
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."
91+
92+
# Facebook meta tags
93+
meta property: "og:url", content: "https://phlexyui.com/"
94+
meta property: "og:type", content: "website"
95+
meta property: "og:title", content: "PhlexyUI Docs"
96+
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."
97+
meta property: "og:image", content: image_path("phlexy_ui_og.png")
98+
99+
# X meta tags
100+
meta name: "twitter:card", content: "summary_large_image"
101+
meta property: "twitter:domain", content: "phlexyui.com"
102+
meta property: "twitter:url", content: "https://phlexyui.com/"
103+
meta name: "twitter:title", content: "PhlexyUI Docs"
104+
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."
105+
meta name: "twitter:image", content: image_path("phlexy_ui_og.png")
106+
88107
yield :head
89108
end
90109

0 commit comments

Comments
 (0)