dashboard
repositories
filestore
activity
search
login
external-software
/
github_gohugo_theme_compose
mirror of
https://github.com/onweru/compose.git
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
Update from Forestry.io - Updated Forestry configuration
weru
10.02.2020
33ea50a96079522e6b2c519d2b4ce4fd1ae2ca37
[external-software/github_gohugo_theme_compose.git]
/
layouts
/
shortcodes
/
picture.html
1
2
3
4
5
6
7
8
9
{{- $normal := .Get 0 }}
{{- $dark := .Get 1 }}
{{- $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>