Stupid twitter cards
This commit is contained in:
parent
fb0e54fe8a
commit
3abbd3f209
|
@ -13,12 +13,22 @@
|
|||
<%= content 'open_graph' =%>
|
||||
<meta property="og:url" content="<%= url_for->to_abs %>">
|
||||
<meta property="og:site_name" content="Post::Text">
|
||||
<meta property="og:image" content="<%= url_for('/images/logo.png')->to_abs %>">
|
||||
<meta property="og:image"
|
||||
content="<%= url_for('/images/logo.png')->to_abs %>">
|
||||
<meta property="og:image:type" content="image/png">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="1200">
|
||||
<meta property="og:image:alt"
|
||||
content="Post::Text logo; a small nerdy anime girl giving a V sign">
|
||||
<%= content 'twitter_card' =%>
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:creator" content="@swaggboi@eattherich.club">
|
||||
<meta name="twitter:site"
|
||||
content="@posttext@fedi.seriousbusiness.international">
|
||||
<meta name="twitter:image"
|
||||
content="<%= url_for('/images/logo.png')->to_abs %>">
|
||||
<meta name="twitter:image:alt"
|
||||
content="Post::Text logo; a small nerdy anime girl giving a V sign">
|
||||
<%= asset 'app.css' %>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
|
||||
>
|
||||
% end
|
||||
% content_for twitter_card => begin
|
||||
<meta name="twitter:title" content="<%= title %>">
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
|
||||
>
|
||||
% end
|
||||
<h2 class="page-title"><%= title %></h2>
|
||||
<main class="page-body">
|
||||
<p>Post::Text is a
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
|
||||
>
|
||||
% end
|
||||
% content_for twitter_card => begin
|
||||
<meta name="twitter:title" content="<%= title %>">
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
|
||||
>
|
||||
% end
|
||||
<h2 class="page-title"><%= title %></h2>
|
||||
<main class="page-body">
|
||||
<p>The rules here are pretty simple:</p>
|
||||
|
|
|
@ -9,6 +9,12 @@
|
|||
<meta property="og:description"
|
||||
content="<%= truncate_text $remark->{'body'} %>">
|
||||
<% end %>
|
||||
<% content_for twitter_card => begin %>
|
||||
<meta name="twitter:title"
|
||||
content="Thread #<%= $remark->{'thread_id'} %>, <%= title %>">
|
||||
<meta name="twitter:description"
|
||||
content="<%= truncate_text $remark->{'body'} %>">
|
||||
<% end %>
|
||||
<main class="pager">
|
||||
<article class="post">
|
||||
<h4 class="post__title">
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
<meta property="og:description"
|
||||
content="Remark on thread #<%= $thread->{'id'} %>.">
|
||||
<% end %>
|
||||
<% content_for twitter_card => begin %>
|
||||
<meta name="twitter:title" content="<%= title %>">
|
||||
<meta name="twitter:description"
|
||||
content="Remark on thread #<%= $thread->{'id'} %>.">
|
||||
<% end %>
|
||||
<form method="post" class="form-body">
|
||||
<div class="form-field">
|
||||
<% if (my $error = validation->error('author')) { =%>
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
<meta property="og:description"
|
||||
content="<%= truncate_text $thread->{'body'} %>">
|
||||
<% end %>
|
||||
<% content_for twitter_card => begin %>
|
||||
<meta name="twitter:title" content="<%= $thread->{'title'} %>">
|
||||
<meta name="twitter:description"
|
||||
content="<%= truncate_text $thread->{'body'} %>">
|
||||
<% end %>
|
||||
<main class="pager">
|
||||
<article class="post">
|
||||
<h3 class="post__title">
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
<meta property="og:title" content="<%= title %>">
|
||||
<meta property="og:description" content="In UTF-8 we trust. 🫡">
|
||||
% end
|
||||
% content_for twitter_card => begin
|
||||
<meta name="twitter:title" content="<%= title %>">
|
||||
<meta name="twitter:description" content="In UTF-8 we trust. 🫡">
|
||||
% end
|
||||
<h2 class="page-title"><%= title %></h2>
|
||||
<% if (scalar @{$threads}) { =%>
|
||||
<main class="pager">
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
<meta property="og:title" content="<%= title %>">
|
||||
<meta property="og:description" content="Start a new thread.">
|
||||
% end
|
||||
% content_for twitter_card => begin
|
||||
<meta name="twitter:title" content="<%= title %>">
|
||||
<meta name="twitter:description" content="Start a new thread.">
|
||||
% end
|
||||
<h2 class="page-title"><%= title %></h2>
|
||||
<form method="post" class="form-body">
|
||||
<div class="form-field">
|
||||
|
|
Loading…
Reference in New Issue
Block a user