Open lewisl opened 4 years ago
Feature_image requires parentheses and a path to the image
I’ll try it. That is very different than any other use of images as a value in front matter.
Would be nice to get themes to be more consistent in their basic “syntax” even as layouts and features enabled and structure can be very different.
Thanks for the response and practical suggestion. I’ll give it a try.
From: PeterPandaluki notifications@github.com Reply-To: jonathanjanssens/hugo-casper3-demo reply@reply.github.com Date: Saturday, June 20, 2020 at 3:57 PM To: jonathanjanssens/hugo-casper3-demo hugo-casper3-demo@noreply.github.com Cc: Lewis Levin lewis@neilson-levin.org, Author author@noreply.github.com Subject: Re: [jonathanjanssens/hugo-casper3-demo] Post images do not show up (#2)
Feature_image requires parentheses and a path to the image
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jonathanjanssens/hugo-casper3-demo/issues/2#issuecomment-647054413, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIYWLPX2H56NDZYI46SY4DRXU5EPANCNFSM4OCFKNTA.
Did you try to change feature_image
to this?
---
feature_image: /post/doing-business/conf.png
---
...
Hi I have a related question:
First, thanks for the great theme! this look awesome. About the image for the cover, where can we specify this? I tried
cover = "/images/cover.png"
in the [params] section of config.toml (as per casper2), but it does not work.
Thanks a lot!
The markdown of a post has this front matter:
The markdown and the png file are in a directory with the name of the post:
doing-business
.The feature_image front matter requires the underscore. The image appears when the post is viewed individually. But, it does not appear in the post-card view on any page that lists multiple posts. Instead of the image, a light gray background swatch is displayed with the name of the post in darker gray as the foreground.
The only difference I can see between my site and your demo is that I have the image in the same folder as the index.md, while you have all images linked from the static/image directory. Seems like that should not matter.
This works very differently than the Casper-two them e that really was a dead ringer for the Ghost theme Casper.
Hard to get it to work reverse-engineering the demo.