From 7dd9d3665099acb72ac8cfc6cca96fdc3852648c Mon Sep 17 00:00:00 2001
From: weru <onewesh@gmail.com>
Date: Wed, 21 Oct 2020 17:01:36 +0000
Subject: [PATCH] edit template
---
layouts/shortcodes/picture.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/shortcodes/picture.html b/layouts/shortcodes/picture.html
index 6edce63..6fa8a76 100644
--- a/layouts/shortcodes/picture.html
+++ b/layouts/shortcodes/picture.html
@@ -1,9 +1,9 @@
{{- $normal := .Get 0 }}
{{- $dark := .Get 1 }}
{{- $alt := .Get 2 }}
-{{- $normalPath := absURL (printf "images/%s" $normal) }}
+{{- $litPath := absURL (printf "images/%s" $normal) }}
{{- $darkPath := absURL (printf "images/%s" $dark) }}
-<picture class="nav_logo">
+<picture class="nav_logo" data-lit="{{ $litPath }}" data-dark="{{ $darkPath }}">
<source srcset="{{ $darkPath }}" media="(prefers-color-scheme: dark)">
- <img srcset="{{ $normalPath }}" alt="{{ $alt }}">
+ <img srcset="{{ $litPath }}" alt="{{ $alt }}">
</picture>
--
Gitblit v1.10.0