Completed migration from hugo-swift-theme to PaperMod

This commit is contained in:
Siddhartha
2022-01-10 10:41:34 +05:30
parent 54bf845d56
commit 4e712c8f8d
299 changed files with 36691 additions and 78 deletions

View File

@@ -0,0 +1,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>