Skip to content

Commit

Permalink
replace placeholder image (old f32 background) with new main background
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertRR11 committed Jan 1, 2025
1 parent 7cfb7df commit 578b411
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function loadAddonPage(addon) {

const headerURL =
addon.files.find((el) => el.use === "header")?.source ||
"https://database.faithfulpack.net/images/website/posts/placeholder.jpg";
"https://database.faithfulpack.net/images/branding/backgrounds/main_background.png";

// replace header if existing
if (headerURL) replacedData.header_img = headerURL;
Expand Down
2 changes: 1 addition & 1 deletion backend/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function loadPostPage(post) {
.replaceAll(
"%header_img%",
post.header_img ||
"https://database.faithfulpack.net/images/website/posts/placeholder.jpg",
"https://database.faithfulpack.net/images/branding/backgrounds/main_background.png",
)
.replaceAll("%postData%", cleanPostData(post));
return data;
Expand Down
2 changes: 1 addition & 1 deletion js/components/article-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
image: {
type: String,
required: false,
default: "https://database.faithfulpack.net/images/website/posts/placeholder.jpg",
default: "https://database.faithfulpack.net/images/branding/backgrounds/main_background.png?w=360",
},
title: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion pages/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 v-if="loading" class="text-center">Loading…</h2>
<div v-else class="news-grid pb-5">
<a class="card img-card" :href="firstPost.permalink">
<img
:src="firstPost.header_img || 'https://database.faithfulpack.net/images/website/posts/placeholder.jpg'"
:src="firstPost.header_img || 'https://database.faithfulpack.net/images/branding/backgrounds/main_background.png?w=360'"
loading="lazy"
>
</a>
Expand Down

0 comments on commit 578b411

Please sign in to comment.