diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2022-12-08 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2022-12-08 00:00:00 +0000 |
commit | 95991cb07f52fd6d0c179f4e1bbaa036ef8c85ef19fee246a27010a77afdb7e8 (patch) | |
tree | 2c072336296e93b7a8c7dc28b142502fe32b805034f6dc97a203f4f017f3ce03 | |
parent | 9627676ae51c63d626354c3caeba0476a1ab62004026d99807cb4ed0814ada4a (diff) | |
download | hugo-theme-journal-95991cb07f52fd6d0c179f4e1bbaa036ef8c85ef19fee246a27010a77afdb7e8.tar.gz hugo-theme-journal-95991cb07f52fd6d0c179f4e1bbaa036ef8c85ef19fee246a27010a77afdb7e8.zip |
Make logo optional
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | layouts/partials/header.gmi | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 |
3 files changed, 6 insertions, 3 deletions
@@ -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 |