From 277afd71fcd0b61d0dbdecd35f0295e68a5c41e3 Mon Sep 17 00:00:00 2001 From: swag Date: Sun, 4 Jun 2023 16:36:13 -0400 Subject: [PATCH] Added Open Graph tags for by_id --- templates/layouts/default.html.ep | 2 ++ templates/thread/by_id.html.ep | 6 ++++++ templates/thread/by_page.html.ep | 2 -- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 03165e6..090eeaf 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -11,6 +11,8 @@ <%= content 'open_graph' =%> + + <%= asset 'app.css' %> diff --git a/templates/thread/by_id.html.ep b/templates/thread/by_id.html.ep index 11277a3..c332516 100644 --- a/templates/thread/by_id.html.ep +++ b/templates/thread/by_id.html.ep @@ -2,6 +2,12 @@ % title my $thread_id = $thread->{'id'} ? "Thread #$thread_id" : '?';

<%= title %>

<% if (keys %{$thread}) { =%> +<% content_for open_graph => begin %> + + + +<% end %>

diff --git a/templates/thread/by_page.html.ep b/templates/thread/by_page.html.ep index 9c5c1ef..c037b94 100644 --- a/templates/thread/by_page.html.ep +++ b/templates/thread/by_page.html.ep @@ -2,8 +2,6 @@ % title 'Threads List'; % content_for open_graph => begin - - % end