Based on https://github.com/ramswaroop/photography/ (Did some heavy history-rewriting to keep this repository's size down) https://schaepers.it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.0 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Photography
  2. A jekyll website for photographers
  3. ## Chris Notes
  4. build.sh says how to build the page (locally or so), resize.sh creates full images and thumbnails (to be run from root)
  5. ## Highlights
  6. 1. Easy setup and you get a site of your own for __free__.
  7. 2. To add new pictures, you need to just upload them. __No code__ changes required.
  8. 3. This I like the most, you get to see EXIF data like __aperture, shutter speed, iso__ etc when you click on any image automagically.
  9. ## Quick Start
  10. If you know a tad about tech and love taking pictures then this open-source project may help you setup a website to showcase
  11. all your creations without effort. And not just that, with this you need not pay a single dime to host your website as
  12. it's hosted by GitHub for __free__.
  13. **Just follow the below steps and your website would be live in no time:**
  14. 1. Fork this repo by hitting the `Fork` button at the top right corner.
  15. 2. Enable github pages from the repo settings.
  16. 3. Upload your pictures to `images/fulls` and `images/thumbs` directory. _You can do that on github.com itself or you can clone and push the images to your repo._
  17. 4. Add your own custom domain in `CNAME` file or just remove the file if you don't own a domain and use the default domain that github provides ([yourusername].github.io/photography).
  18. 5. Update `baseurl` field in `_config.yml` file with whatever domain you used in step 4.
  19. 6. And that's it, your website is set. To view, go to [photography.rampatra.com](http://photography.rampatra.com) (or whatever you have in the CNAME file) and if you don't have one, you can go to [[yourusername].github.io/photography](http://yourusername.github.io/photography)
  20. And of course, you don't want my name at the bottom to show up. You can change it in `_config.yml` file as well as few other settings like your google analytics etc.
  21. ## ProTips
  22. I have made this as an [npm](https://www.npmjs.com) package with [gulp](http://gulpjs.com/) to __automate image resizing
  23. and thumbnail generation__. So if you're lazy like me then you can just do the following before you push your images to github.
  24. 1. Fork and then clone the project to your computer
  25. 2. Go inside the project `$ cd photography`
  26. 3. Install all dependencies by `$ npm install`
  27. 4. Copy all your pictures (possibly jpg, the largest size available, straight from your camera) and put it inside `images` directory
  28. 5. Run `$ gulp` to resize the images and to generate thumbnails automatically
  29. 6. Push your changes to github.com by `$ git add --all` and `$ git commit -m "a nice commit message"` and then finally `$ git push origin master`
  30. ### Contact Form
  31. You can make the contact form work without the need of any server-side code. Just follow this [article on github](https://github.com/dwyl/html-form-send-email-via-google-script-without-server) which uses a simple google script to send emails or to upload to a google spreadsheet when someone submits the form.
  32. ## Credits
  33. Thanks to [AJ](https://twitter.com/ajlkn) for the website template which I enhanced for [jekyll](http://jekyllrb.com/).