Implement Open Graph meta tags in default layout, populate for threads_list
This commit is contained in:
parent
bf20cd68f0
commit
0673d2688c
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue