mirror of https://github.com/onweru/compose.git

weru
06.07.2020 89a1fd5dee1d5620b0458276ad44aea714e6939a
layouts/shortcodes/picture.html
@@ -3,7 +3,7 @@
{{- $alt := .Get 2 }}
{{- $normalPath := absURL (printf "images/%s" $normal) }}
{{- $darkPath := absURL (printf "images/%s" $dark) }}
<picture class = 'nav_logo'>
  <source srcset = '{{ $darkPath }}' media="(prefers-color-scheme: dark)">
  <img srcset = '{{ $normalPath }}' alt = '{{ $alt }}'>
<picture class="nav_logo">
  <source srcset="{{ $darkPath }}" media="(prefers-color-scheme: dark)">
  <img srcset="{{ $normalPath }}" alt="{{ $alt }}">
</picture>