aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-04-01 22:16:46 -0400
committerThedro Neely <thedroneely@gmail.com>2022-04-01 22:17:47 -0400
commit1d5066b30c8793034bea113ab85a536928dbffa5 (patch)
tree4fd43461f5c7ebe2fbefbdd85f32dd4164f15d97
parent1c043d1b0b08074bfe31ec8c91f85934268ff6b3 (diff)
downloadthedroneely.com-1d5066b30c8793034bea113ab85a536928dbffa5.tar.gz
thedroneely.com-1d5066b30c8793034bea113ab85a536928dbffa5.tar.bz2
thedroneely.com-1d5066b30c8793034bea113ab85a536928dbffa5.zip
generators/hugo: Add static and placeholder image
Source: https://www.pngkey.com/detail/u2w7r5y3a9o0w7t4_image-500580-placeholder-transparent/
-rw-r--r--generators/hugo/static/images/thumbnails/placeholder.pngbin0 -> 5751 bytes
-rw-r--r--generators/hugo/themes/tdro/layouts/partials/thumbnail-image.html4
2 files changed, 2 insertions, 2 deletions
diff --git a/generators/hugo/static/images/thumbnails/placeholder.png b/generators/hugo/static/images/thumbnails/placeholder.png
new file mode 100644
index 0000000..f25801e
--- /dev/null
+++ b/generators/hugo/static/images/thumbnails/placeholder.png
Binary files differ
diff --git a/generators/hugo/themes/tdro/layouts/partials/thumbnail-image.html b/generators/hugo/themes/tdro/layouts/partials/thumbnail-image.html
index b577f37..857e01f 100644
--- a/generators/hugo/themes/tdro/layouts/partials/thumbnail-image.html
+++ b/generators/hugo/themes/tdro/layouts/partials/thumbnail-image.html
@@ -10,8 +10,8 @@
</picture>
</a>
{{ else }}
-{{ $image := imageConfig "public/images/thumbnails/personal-portfolio.png" }}
+{{ $image := imageConfig "public/images/thumbnails/placeholder.png" }}
<a href="{{ .Permalink }}">
- <img class="image__thumbnail" alt="{{ .Title }}" src="/images/thumbnails/personal-portfolio.png" height="{{ $image.Height }}" width="{{ $image.Width }}"/>
+ <img class="image__thumbnail" alt="{{ .Title }}" src="/images/thumbnails/placeholder.png" height="{{ $image.Height }}" width="{{ $image.Width }}"/>
</a>
{{ end }}