diff options
author | Hadi Sinaee <sinaee.hadi@gmail.com> | 2019-08-28 19:23:54 +0300 |
---|---|---|
committer | Hadi Sinaee <sinaee.hadi@gmail.com> | 2019-08-28 19:23:54 +0300 |
commit | 1899214780bcb0e6173c9bd5a907d24ed1612100 (patch) | |
tree | bed85ea6e2dc0f14c1b4945ddefd0e7e011157c0 | |
parent | 7bd581c50e6e2f73678e78de38671e88e531f025 (diff) |
update: add support for default publication logo
-rw-r--r-- | layouts/_default/single.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dde1a8b..3f7a645 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,11 @@ {{ define "main" }} <div class="header"> - <img src="logo.png" class="logo"> + {{ if (fileExists "logo.png") -}} + <img src="logo.png" class="logo"> + {{- else }} + <img src={{ "images/default_publications.png" | absURL }} class="logo"> + {{- end }} </div> <div class="content wrapper"> |