saberland/saber

Frontmatter asset in prevPost not loading #367

ohiosveryown posted onGitHub

In saber-node.js I have (title, date, architect and permalink all work correctly – when I add first_img, I get an error): <img width="446" alt="01" src="https://user-images.githubusercontent.com/12748054/63228480-84a89380-c1c1-11e9-802a-31fd183520d5.png">

In the Vue file querying the posts, I have: <img width="568" alt="02" src="https://user-images.githubusercontent.com/12748054/63228510-e2d57680-c1c1-11e9-9715-2e722e0bc7d7.png">

Which prompts the following error in the console: 03

(front matter of the post): <img width="312" alt="04" src="https://user-images.githubusercontent.com/12748054/63228533-58414700-c1c2-11e9-953a-6d15d8c546d7.png">

Any help would be appreciated πŸ‘πŸΌ


According to your saber-node.js, you should use page.prevPost.first_img instead of page.prevPost.assets.first_img πŸ€”

posted by egoist over 5 years ago

Knew it was going to be something silly like that πŸ™ƒ – thanks for feedback.

posted by ohiosveryown over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests