Skip to content

Commit 5d1f0a0

Browse files
committed
Add og:type and og:title meta tags
1 parent 4c0cf63 commit 5d1f0a0

File tree

1 file changed

+8
-1
lines changed
  • apps/components_guide_web/lib/components_guide_web/templates/layout

1 file changed

+8
-1
lines changed

apps/components_guide_web/lib/components_guide_web/templates/layout/root.html.leex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang=en>
33
<head>
44
<meta charset=utf-8>
@@ -9,6 +9,13 @@
99
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
1010
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/RoyalIcing/tela@2d421cafc1ea99fab91aa4fcbf3b554160bcada5/tela.css"/>
1111

12+
<%= if @conn.path_info == [] do %>
13+
<meta property="og:type" content="website">
14+
<% else %>
15+
<meta property="og:type" content="article">
16+
<% end %>
17+
18+
<meta property="og:title" content="<%= assigns[:page_title] || "Learn accessibility, web standards, testing React & more" %>">
1219
<%
1320
stamp_query = case assigns[:page_title] do
1421
nil ->

0 commit comments

Comments
 (0)