doersino / nyum

A simple Pandoc-powered static site generator for your recipe collection – it effortlessly turns a set of Markdown-formatted recipes into a lightweight, responsive, searchable website.
https://doersino.github.io/nyum/_site/index.html
MIT License
182 stars 49 forks source link

Picture in Overview page #17

Closed jlnrrg closed 3 years ago

jlnrrg commented 3 years ago

It might be a neat optical feature to include the image in the overview page if it exists.

Screenshot from 2021-04-20 10-29-49

doersino commented 3 years ago

Already implemented (at your previous suggestion, I believe) – take a look at config.yaml.

The layout you’re proposing is tricky since most images won’t be nearly square – on recipe pages, it looks best when they’re rather wide.

jlnrrg commented 3 years ago

Ok, again sorry. It is hard to keep track of all the new feature you've put in since I last visited :see_no_evil: (it is so much)

Maybe a recipe in your example page where every possible feature is checked might be useful. (I think you tried this with "Pan-Fried Perilla Leaves" already a little)

jlnrrg commented 3 years ago

nvm. I looked at the wrong place.

For everyone else: config.yaml -> show_images_on_index:

jlnrrg commented 3 years ago

@doersino imo the pictures rn get way to big to deliver a pleasant viewing experience. image

Concerning the square part, that was mainly bc of my bad drawing talent. (16:9 is just fine) And for recipes without a picture a placeholder picture could be provided by the user.

doersino commented 3 years ago

Better late than never!

Screenshot 2021-05-25 at 11 18 15