From 0673d2688cf76ee7442f76a19916c00744810a54 Mon Sep 17 00:00:00 2001 From: swag Date: Sun, 4 Jun 2023 14:34:10 -0400 Subject: [PATCH] Implement Open Graph meta tags in default layout, populate for threads_list --- templates/layouts/default.html.ep | 1 + templates/thread/by_page.html.ep | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 7773f14..03165e6 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -10,6 +10,7 @@ + <%= content 'open_graph' =%> <%= asset 'app.css' %> diff --git a/templates/thread/by_page.html.ep b/templates/thread/by_page.html.ep index 4e43fbe..9c5c1ef 100644 --- a/templates/thread/by_page.html.ep +++ b/templates/thread/by_page.html.ep @@ -1,5 +1,12 @@ % layout 'default'; % title 'Threads List'; +% content_for open_graph => begin + + + + + +% end

<%= title %>

<% if (scalar @{$threads}) { =%>