From 95991cb07f52fd6d0c179f4e1bbaa036ef8c85ef19fee246a27010a77afdb7e8 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Thu, 8 Dec 2022 00:00:00 +0000 Subject: Make logo optional --- layouts/partials/header.gmi | 4 +++- layouts/partials/header.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/header.gmi b/layouts/partials/header.gmi index 072ffae..9f5aa21 100644 --- a/layouts/partials/header.gmi +++ b/layouts/partials/header.gmi @@ -1,3 +1,5 @@ +{{ if fileExists "templates/logo.txt" -}} ```nicksphere logo {{ readFile "templates/logo.txt" | safeHTML }} -``` \ No newline at end of file +``` +{{- end }} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2379d84..a0c7194 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,3 +1,5 @@ +{{ if fileExists "templates/logo.txt" -}} \ No newline at end of file + +{{- end }} \ No newline at end of file -- cgit v1.2.3