diff --git a/src/.eleventy.js b/src/.eleventy.js index 8a4f207..8cd7a75 100644 --- a/src/.eleventy.js +++ b/src/.eleventy.js @@ -30,6 +30,7 @@ async function filter_asset(src) { // Determine the file type extension let type = await filetype.fromBuffer(content); + if(typeof type !== "undefined" && type.ext == "xml") type = undefined; if(typeof type === "undefined") { // Failed, try to extract from the URL let match = src.match(/(?<=\.)[a-zA-Z0-9-_]+$/); diff --git a/src/images/post.svg b/src/images/post.svg new file mode 100644 index 0000000..bd0c602 --- /dev/null +++ b/src/images/post.svg @@ -0,0 +1 @@ + diff --git a/src/images/post_edit.svg b/src/images/post_edit.svg new file mode 100644 index 0000000..6660c44 --- /dev/null +++ b/src/images/post_edit.svg @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/index.11tydata.js b/src/index.11tydata.js index 197c739..9f4bfd0 100644 --- a/src/index.11tydata.js +++ b/src/index.11tydata.js @@ -63,6 +63,7 @@ module.exports = async function() { if(temp_image !== null) item.media_image = temp_image[1]; } + item.media_image_notfound = item.media_image == `./images/post.svg`; console.log(`MEDIA IMAGE`, item.media_image); return item; diff --git a/src/index.html b/src/index.html index a40aa8b..ddaf1f8 100644 --- a/src/index.html +++ b/src/index.html @@ -4,7 +4,7 @@ {% for post in pagination.items %}

{{ post.title | striphtml }}

-
+
{{ post.description | striphtml }}…
Read more