Open grauschnabel opened 2 years ago
Hi there, as we talked on https://github.com/rbuchberger/jekyll_picture_tag/issues/198 I did just another output format.
I'm not the best ruby programmer, but for me this works just fine.
Inside my <head></head> u do like
<head></head>
<style type='text/css'> {% picture css {{ overlay_img_path }} css page__hero_css %} .page__hero_css { background-size: cover; background-position: center center; background-repeat: no-repeat; } </style>
And later in the body just using the page__hero_css class for the div I want it to have. The _data/picture.yml contains like:
page__hero_css
div
_data/picture.yml
presets: css: markup: css widths: [400, 600, 800, 1200, 1600]
Feel free to discuss or use that with adjustments...
Hi there, as we talked on https://github.com/rbuchberger/jekyll_picture_tag/issues/198 I did just another output format.
I'm not the best ruby programmer, but for me this works just fine.
Inside my
<head></head>
u do likeAnd later in the body just using the
page__hero_css
class for thediv
I want it to have.The
_data/picture.yml
contains like:Feel free to discuss or use that with adjustments...