From d1558df51ad287a8f2c7876c421ac6f3fb778416 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Thu, 21 Nov 2019 14:27:03 -0600 Subject: [PATCH] now only import libraries to highlight code when code exists in post --- templates/post.html.tera | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/post.html.tera b/templates/post.html.tera index b674a23..edf4af9 100644 --- a/templates/post.html.tera +++ b/templates/post.html.tera @@ -3,7 +3,9 @@ {% block extracss %} +{% if post.content is containing("") %} +{% endif %} {% endblock extracss %} {% block content %} @@ -20,8 +22,10 @@ {% endblock content %} {% block extrajs %} - - +{% if post.content is containing("") %} + + +{% endif %} {% endblock extrajs %}