Implement Open Graph meta tags in default layout, populate for threads_list

This commit is contained in:
swagg boi 2023-06-04 14:34:10 -04:00
parent bf20cd68f0
commit 0673d2688c
2 changed files with 8 additions and 0 deletions

View file

@ -10,6 +10,7 @@
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#5b90a4">
<%= content 'open_graph' =%>
<%= asset 'app.css' %>
</head>
<body>

View file

@ -1,5 +1,12 @@
% layout 'default';
% title 'Threads List';
% content_for open_graph => begin
<meta property="og:type" content="website">
<meta property="og:url" content="<%= url_for->to_abs %>">
<meta property="og:site_name" content="Post::Text">
<meta property="og:title" content="<%= title %>">
<meta property="og:description" content="In UTF-8 we trust. 🫡">
% end
<h2 class="page-title"><%= title %></h2>
<% if (scalar @{$threads}) { =%>
<main class="pager">