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

github.com/jacobsun/edidor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/logo.html')
-rw-r--r--layouts/partials/logo.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html
new file mode 100644
index 0000000..db76482
--- /dev/null
+++ b/layouts/partials/logo.html
@@ -0,0 +1,19 @@
+{{ if (eq .Site.Params.Mode "light") }}
+{{ if (fileExists "static/images/logo_light.svg") }}
+<img class="logo" src="{{ "images/logo_light.svg" | absURL }}" alt="logo" />
+{{ else }}
+<img class="logo" src="{{ "images/logo.svg" | absURL }}" alt="logo" />
+{{ end }}
+{{ else if (eq .Site.Params.Mode "wild") }}
+{{ if (fileExists "static/images/logo_wild.svg") }}
+<img class="logo" src="{{ "images/logo_wild.svg" | absURL }}" alt="logo" />
+{{ else }}
+<img class="logo" src="{{ "images/logo.svg" | absURL }}" alt="logo" />
+{{ end }}
+{{ else }}
+{{ if (fileExists "static/images/logo_dark.svg") }}
+<img class="logo" src="{{ "images/logo_dark.svg" | absURL }}" alt="logo" />
+{{ else }}
+<img class="logo" src="{{ "images/logo.svg" | absURL }}" alt="logo" />
+{{ end }}
+{{ end }}