A jekyll website for photographer cum developer
If you're a developer and love taking pictures then this open-source project may help you setup a website to showcase all your creations without effort. And not just that, with this you need not pay a single dime to host your website as it's hosted by GitHub for FREE.
Just follow the below steps and your website would be live in no time:
- Fork this repo by hitting the
Forkbutton at the top right corner. - Enable github pages from the repo settings.
- Upload your pictures to
images/fullsandimages/thumbsdirectory. You can do that on github.com itself or you can clone and push the images to your repo. - Add your own custom domain in
CNAMEfile or just remove the file if you don't own a domain. You can use the default domain that github provides. - And that's it, your website is set. To view, go to photography.ramswaroop.me (or whatever you have in the CNAME file) and if you don't have one, you can go to yourusername.github.io/photography
I have made this as an npm package with gulp to automate my image resizing and thumbnail generation. So if you're lazy like me then you can just do the following before you push your images to github.
- Go inside the project
$ cd photography - Install all dependencies by
$ npm install - Copy all your pictures (the largest size available, straight from your camera) and put it inside
images/fullsdirectory $ gulpto resize the images and to generate thumbnails for faster page loads- Push your changes to github.com by
$ git commit -am "a nice commit message"and then$ git push origin master
Thanks to AJ for the website template which I enhanced for jekyll.