From 854ae471a01bb13cb73a38143f43d97a9ca62ce5 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 16 Oct 2022 23:51:43 +0200 Subject: Added new draft post --- themes/simple/layouts/partials/comments.html | 2 +- themes/simple/layouts/partials/footer.html | 37 +++++++++++++++++++++++++++- themes/simple/layouts/partials/head.html | 4 ++- themes/simple/layouts/partials/tailwind.html | 14 +++++++++++ 4 files changed, 54 insertions(+), 3 deletions(-) (limited to 'themes/simple/layouts/partials') diff --git a/themes/simple/layouts/partials/comments.html b/themes/simple/layouts/partials/comments.html index 7978917..70b1d94 100755 --- a/themes/simple/layouts/partials/comments.html +++ b/themes/simple/layouts/partials/comments.html @@ -1,9 +1,9 @@
+

Leave a comment

You can write me an email at m@mitjafelicijan.com or comment bellow.

- + + + diff --git a/themes/simple/layouts/partials/head.html b/themes/simple/layouts/partials/head.html index b79a030..9499df6 100755 --- a/themes/simple/layouts/partials/head.html +++ b/themes/simple/layouts/partials/head.html @@ -5,7 +5,9 @@ - + {{.Title}} diff --git a/themes/simple/layouts/partials/tailwind.html b/themes/simple/layouts/partials/tailwind.html index 616ab3a..b6fd763 100755 --- a/themes/simple/layouts/partials/tailwind.html +++ b/themes/simple/layouts/partials/tailwind.html @@ -101,6 +101,20 @@ @apply my-10; } + /* Lazy loading of iframes */ + article.single .ll-iframe { + @apply bg-gray-100 rounded; + } + + article.single .ll-iframe::before { + @apply h-full flex border-2 border-gray-300 rounded justify-center items-center font-medium text-sm cursor-pointer animate-pulse; + content: 'Click here to load resource…'; + } + + article.single .ll-iframe.empty::before { + content: none; + } + /* Cactus Comments */ .comments img { max-width: auto !important; -- cgit v1.2.3