I wanna add cover_height property to my post. If the post has it, then it will modify cover_detail weight by adding height: item.cover_height
But I don't know why it does not work. Perhaps because it's inside quotation mark? I don't know what I can do to make it work.
using height: 480px works but then I won't be able to adjust the height per post.
And I noticed the height value should be set to actual_height - 150px. I wonder where this number came from.
So it should be height: item.cover_height - 150px but I also don't know if math equation worked there, or how to do it.
Sorry if it might be noob question. I hope I may get guidance.
Thank you for this amazing theme.
Edit: ehh looks like actual_height - 150px is wrong. Uhm, what are the formula? Where is 350px in main.css came from?
And also, if it's possible to adjust weight automatically based on the image that would be even better.
Hello, I am trying to make the post's cover_detail to have adjustable height.
I modify file /layout/_partial/article-full.ejs like this:
however I don't really understand what I'm doing.
I wanna add
cover_height
property to my post. If the post has it, then it will modify cover_detail weight by addingheight: item.cover_height
But I don't know why it does not work. Perhaps because it's inside quotation mark? I don't know what I can do to make it work. using
height: 480px
works but then I won't be able to adjust the height per post.And I noticed the height value should be set to
actual_height - 150px
. I wonder where this number came from. So it should beheight: item.cover_height - 150px
but I also don't know if math equation worked there, or how to do it.Sorry if it might be noob question. I hope I may get guidance.
Thank you for this amazing theme.
Edit: ehh looks like
actual_height - 150px
is wrong. Uhm, what are the formula? Where is350px
inmain.css
came from? And also, if it's possible to adjust weight automatically based on the image that would be even better.