Skip to content

Commit 64725c0

Browse files
committed
blog thumbnail image URL fix
1 parent 3d586f0 commit 64725c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ document
120120
function loadBlogs({ feed }) {
121121
var i = 0;
122122
feed.entry.forEach(function (entry) {
123-
if (i == 3) return;
123+
if (i == 4) return;
124124
var categoryTags = "";
125125
if (entry.category) {
126126
entry.category.forEach(function (category) {
@@ -142,7 +142,7 @@ function loadBlogs({ feed }) {
142142
<a href="${entry.link[0].href}">
143143
<div
144144
class="img-container"
145-
style="background-image: url(${thumbSrc})"
145+
style="background-image: url('${thumbSrc}')"
146146
></div>
147147
<h2>${entry.title.$t}</h2>
148148
<p class="blogCategories">${categoryTags}</p>

0 commit comments

Comments
 (0)