From 16d35e2f692590853c6edfd4fa93b8c87379a099 Mon Sep 17 00:00:00 2001 From: casual Date: Sun, 11 Aug 2024 04:40:47 +0300 Subject: [PATCH] image preview --- content/hidden/preview/{test2.md => test3.md} | 1 + themes/anubis2/layouts/partials/post-info.html | 3 +++ 2 files changed, 4 insertions(+) rename content/hidden/preview/{test2.md => test3.md} (98%) diff --git a/content/hidden/preview/test2.md b/content/hidden/preview/test3.md similarity index 98% rename from content/hidden/preview/test2.md rename to content/hidden/preview/test3.md index 525292f..9be19e6 100644 --- a/content/hidden/preview/test2.md +++ b/content/hidden/preview/test3.md @@ -1,6 +1,7 @@ +++ title = 'test' hidden = true +image = "https://i.extremetech.com/imagery/content-types/017c7K9UIE7N2VnHK8XqLds/images-5.jpg" +++ diff --git a/themes/anubis2/layouts/partials/post-info.html b/themes/anubis2/layouts/partials/post-info.html index 641b66a..5d43a09 100644 --- a/themes/anubis2/layouts/partials/post-info.html +++ b/themes/anubis2/layouts/partials/post-info.html @@ -4,6 +4,9 @@ {{ end }} {{ $machineDateFormat := "2006-01-02" }} +{{ template "_internal/opengraph.html" . }} +{{ template "_internal/twitter_cards.html" . }} +
{{ if .Params.date }}