diff --git a/.forestry/front_matter/templates/newslinks.yml b/.forestry/front_matter/templates/newslinks.yml index 913937dc..5d6f0802 100644 --- a/.forestry/front_matter/templates/newslinks.yml +++ b/.forestry/front_matter/templates/newslinks.yml @@ -21,6 +21,9 @@ fields: - type: text name: path label: path + - type: file + name: card_image + label: card_image - type: datetime name: date label: date diff --git a/src/.vuepress/public/academic-paper-placeholder.png b/src/.vuepress/public/academic-paper-placeholder.png new file mode 100644 index 00000000..d0da0916 Binary files /dev/null and b/src/.vuepress/public/academic-paper-placeholder.png differ diff --git a/src/.vuepress/public/event-placeholder.png b/src/.vuepress/public/event-placeholder.png new file mode 100644 index 00000000..ce94b048 Binary files /dev/null and b/src/.vuepress/public/event-placeholder.png differ diff --git a/src/.vuepress/public/news-coverage-placeholder.png b/src/.vuepress/public/news-coverage-placeholder.png new file mode 100644 index 00000000..0d4c9f10 Binary files /dev/null and b/src/.vuepress/public/news-coverage-placeholder.png differ diff --git a/src/.vuepress/public/release-notes-placeholder.png b/src/.vuepress/public/release-notes-placeholder.png new file mode 100644 index 00000000..ca3604f7 Binary files /dev/null and b/src/.vuepress/public/release-notes-placeholder.png differ diff --git a/src/.vuepress/public/tutorial-placeholder.png b/src/.vuepress/public/tutorial-placeholder.png new file mode 100644 index 00000000..5e41ba15 Binary files /dev/null and b/src/.vuepress/public/tutorial-placeholder.png differ diff --git a/src/.vuepress/theme/components/blog/LinkCard.vue b/src/.vuepress/theme/components/blog/LinkCard.vue index a82d1aec..f7840c52 100644 --- a/src/.vuepress/theme/components/blog/LinkCard.vue +++ b/src/.vuepress/theme/components/blog/LinkCard.vue @@ -19,11 +19,14 @@ img-class="h-full" itemprop="image" :alt="title" - :src="`${ - frontmatter.header_image - ? frontmatter.header_image - : '/header-image-placeholder.png' - }`" + :src=" + frontmatter.card_image + ? frontmatter.card_image + : `/${frontmatter.type + .toLowerCase() + .split(' ') + .join('-')}-placeholder.png` + " />