But I deleted a lot of stuff and the result below worked for me (the photos are low-res and almost thumbnails anyway so this was good enough for this particular exercise):
right - but are you using that site? I think the author is but I think his code is an example, and if you are not using that site then you need to do the url to where your images are.
which is probably correct assuming you are not using that site to serve images. The difference is just the way that person could request a certain size image I think. There are services that you upload your original images to and then you can request them at a certain size like &w=300&h=300&output=jpg for a 300x300 jpg.
The resizing service on images.weserv.nl does not and can not work when you test your web on localhost - because it is necessary for the resizing online service to receive your images which they can not from your localhost. You can check the page source code of your html, find the url generated for the thumbnail image and enter the url into your browser - you should receive a message instead of thumbnail photo: {"status":"error","code":404,"message":"The hostname of the origin is unresolvable (DNS) or blocked by policy."}