You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 21, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 21, 2019. It is now read-only.
check for organizer image files if they are claimed to exist #573
i can help with that :)
just a question, what do you think is better: fail silently simply skipping the img tag or use errorf to make an error log and fail the build?
i'm tending to fail the build, but i think it's always better to ask when in doubt
We wouldn't fail the build if they left off an image - we fail it if they enter an image in the config but then the image is not there (i.e., I specify matt-stratton.png but forget to put the file in the repo, or misspell the file name, etc).
So I vote for failing the build. It's an error that is being caught, so it should fail.
Activity
mattstratton commentedon Jul 25, 2017
This likely should be extended to include speaker images, as well as sharing images (and some others that it hasn't occurred to me yet).
bridgetkromhout commentedon Sep 5, 2018
Makes sense!
somatorio commentedon Oct 24, 2018
i can help with that :)
just a question, what do you think is better: fail silently simply skipping the img tag or use errorf to make an error log and fail the build?
i'm tending to fail the build, but i think it's always better to ask when in doubt
Add check for image files (organizer, speaker and sponsor) - Fix devo…
bridgetkromhout commentedon Nov 3, 2018
I am not sure we'd want to fail a build - I'd rather display a default image (which, if they don't like, they can replace).
mattstratton commentedon Nov 3, 2018
We wouldn't fail the build if they left off an image - we fail it if they enter an image in the config but then the image is not there (i.e., I specify
matt-stratton.pngbut forget to put the file in the repo, or misspell the file name, etc).So I vote for failing the build. It's an error that is being caught, so it should fail.
somatorio commentedon Nov 5, 2018
yeah, if the image is not set at data/events/yyyy-city.yml the theme already uses a default image as far as i could see :)
Add a second check for image files (checking "content/") - Fix devops…