Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadi Sinaee <sinaee.hadi@gmail.com>2019-08-28 19:23:54 +0300
committerHadi Sinaee <sinaee.hadi@gmail.com>2019-08-28 19:23:54 +0300
commit1899214780bcb0e6173c9bd5a907d24ed1612100 (patch)
treebed85ea6e2dc0f14c1b4945ddefd0e7e011157c0
parent7bd581c50e6e2f73678e78de38671e88e531f025 (diff)
update: add support for default publication logo
-rw-r--r--layouts/_default/single.html6
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">