summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--layouts/partials/header.gmi4
-rw-r--r--layouts/partials/header.html4
3 files changed, 6 insertions, 3 deletions
diff --git a/TODO b/TODO
index 686026f..8e63c04 100644
--- a/TODO
+++ b/TODO
@@ -2,4 +2,3 @@
- add tag support
- fix "layouts/_default/single.gmi" changing preformatted text
- add support for inline elements for HTML
-- make logo, header, intro text, etc. optional
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" -}}
<header class="logo">
<pre class="logo__text">{{ readFile "templates/logo.txt" }}</pre>
-</header> \ No newline at end of file
+</header>
+{{- end }} \ No newline at end of file