From 7cfe364b8cdc64f5824daed50e59cf8dea648b1d Mon Sep 17 00:00:00 2001 From: Gunwant Jain Date: Wed, 6 Jan 2021 00:58:10 +0530 Subject: [PATCH] pretty.html: fetch stylesheet only if the var is declared otherwise the app will perform an unnecessary 404 request everytime a theme is not declared Signed-off-by: Gunwant Jain --- src/main.rs | 2 +- templates/pretty.html.tera | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2b1b39a..d992863 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,7 +24,7 @@ fn pretty_retrieve(id: PasteId) -> Option