Browse Source

Squashed Commits #1

master
ramswaroop 2 years ago
parent
commit
e15416d586
83 changed files with 140 additions and 70 deletions
  1. +40
    -0
      .gitignore
  2. +4
    -0
      .travis.yml
  3. +4
    -0
      Gemfile
  4. +30
    -2
      README.md
  5. +2
    -0
      _config.yml
  6. +17
    -0
      gulpfile.js
  7. BIN
      images/fulls/01.jpg
  8. BIN
      images/fulls/02.jpg
  9. BIN
      images/fulls/03.jpg
  10. BIN
      images/fulls/04.jpg
  11. BIN
      images/fulls/05.jpg
  12. BIN
      images/fulls/06.jpg
  13. BIN
      images/fulls/07.jpg
  14. BIN
      images/fulls/08.jpg
  15. BIN
      images/fulls/09.jpg
  16. BIN
      images/fulls/10.jpg
  17. BIN
      images/fulls/11.jpg
  18. BIN
      images/fulls/12.jpg
  19. BIN
      images/fulls/DSC_0068.jpg
  20. BIN
      images/fulls/DSC_0069.jpg
  21. BIN
      images/fulls/DSC_0071.jpg
  22. BIN
      images/fulls/DSC_0076.jpg
  23. BIN
      images/fulls/DSC_0079.jpg
  24. BIN
      images/fulls/DSC_0082.jpg
  25. BIN
      images/fulls/DSC_0084.jpg
  26. BIN
      images/fulls/DSC_0085.jpg
  27. BIN
      images/fulls/DSC_0088.jpg
  28. BIN
      images/fulls/DSC_0096.jpg
  29. BIN
      images/fulls/DSC_0126.jpg
  30. BIN
      images/fulls/DSC_0163.jpg
  31. BIN
      images/fulls/DSC_0181.jpg
  32. BIN
      images/fulls/DSC_0208.jpg
  33. BIN
      images/fulls/DSC_0272.jpg
  34. BIN
      images/fulls/DSC_0310.jpg
  35. BIN
      images/fulls/DSC_0320.jpg
  36. BIN
      images/fulls/DSC_0326.jpg
  37. BIN
      images/fulls/DSC_0327.jpg
  38. BIN
      images/fulls/DSC_0334.jpg
  39. BIN
      images/fulls/DSC_0336.jpg
  40. BIN
      images/fulls/DSC_0343.jpg
  41. BIN
      images/fulls/DSC_0352.jpg
  42. BIN
      images/fulls/DSC_0355.jpg
  43. BIN
      images/fulls/DSC_0360.jpg
  44. BIN
      images/fulls/DSC_0361.jpg
  45. BIN
      images/thumbs/01.jpg
  46. BIN
      images/thumbs/02.jpg
  47. BIN
      images/thumbs/03.jpg
  48. BIN
      images/thumbs/04.jpg
  49. BIN
      images/thumbs/05.jpg
  50. BIN
      images/thumbs/06.jpg
  51. BIN
      images/thumbs/07.jpg
  52. BIN
      images/thumbs/08.jpg
  53. BIN
      images/thumbs/09.jpg
  54. BIN
      images/thumbs/10.jpg
  55. BIN
      images/thumbs/11.jpg
  56. BIN
      images/thumbs/12.jpg
  57. BIN
      images/thumbs/DSC_0069.jpg
  58. BIN
      images/thumbs/DSC_0071.jpg
  59. BIN
      images/thumbs/DSC_0076.jpg
  60. BIN
      images/thumbs/DSC_0079.jpg
  61. BIN
      images/thumbs/DSC_0082.jpg
  62. BIN
      images/thumbs/DSC_0084.jpg
  63. BIN
      images/thumbs/DSC_0085.jpg
  64. BIN
      images/thumbs/DSC_0088.jpg
  65. BIN
      images/thumbs/DSC_0096.jpg
  66. BIN
      images/thumbs/DSC_0126.jpg
  67. BIN
      images/thumbs/DSC_0181.jpg
  68. BIN
      images/thumbs/DSC_0208.jpg
  69. BIN
      images/thumbs/DSC_0272.jpg
  70. BIN
      images/thumbs/DSC_0310.jpg
  71. BIN
      images/thumbs/DSC_0320.jpg
  72. BIN
      images/thumbs/DSC_0326.jpg
  73. BIN
      images/thumbs/DSC_0327.jpg
  74. BIN
      images/thumbs/DSC_0334.jpg
  75. BIN
      images/thumbs/DSC_0336.jpg
  76. BIN
      images/thumbs/DSC_0343.jpg
  77. BIN
      images/thumbs/DSC_0352.jpg
  78. BIN
      images/thumbs/DSC_0355.jpg
  79. BIN
      images/thumbs/DSC_0360.jpg
  80. BIN
      images/thumbs/DSC_0361.jpg
  81. +8
    -68
      index.html
  82. +3
    -0
      npmfile.js
  83. +32
    -0
      package.json

+ 40
- 0
.gitignore View File

@@ -54,3 +54,43 @@ _site/
.sass-cache/
.jekyll-metadata

### Node template
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

/Gemfile.lock

+ 4
- 0
.travis.yml View File

@@ -0,0 +1,4 @@
language: ruby
rvm:
- 2.1
script: "bundle exec jekyll build"

+ 4
- 0
Gemfile View File

@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'jekyll'
gem 'github-pages'

+ 30
- 2
README.md View File

@@ -1,2 +1,30 @@
# photography
See the world through my eyes!
# Photography
A jekyll website for photographer cum developer

## Quick Start
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:**

1. Fork this repo by hitting the `Fork` button at the top right corner.
2. Enable github pages from the repo settings.
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._
4. Add your own custom domain in `CNAME` file or just remove the file if you don't own a domain. _You can use the default domain that github provides._
5. And that's it, your website is set. To view, go to [photography.ramswaroop.me](http://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](http://yourusername.github.io/photography)
## ProTips
I have made this as an [npm](https://www.npmjs.com) package with [gulp](http://gulpjs.com/) 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.

1. Go inside the project `$ cd photography`
2. Install all dependencies by `$ npm install`
3. Copy all your pictures (the largest size available, straight from your camera) and put it inside `images/fulls` directory
4. `$ gulp` to resize the images and to generate thumbnails for faster page loads
5. Push your changes to github.com by `$ git commit -am "a nice commit message"` and then `$ git push origin master`

## Contributors
Thanks to [AJ](https://twitter.com/ajlkn) for the website template which I enhanced for [jekyll](http://jekyllrb.com/).



+ 2
- 0
_config.yml View File

@@ -5,6 +5,8 @@ subtitle: "See the world through my eyes!"
author: "Ram Patra"
bio: "I am a developer and a tech aficionado from India. Love making teeny tiny apps solving tiny problems in life and now learning photography."
web_design: "AJ"
image_fulls_loc: "images/fulls/"
image_thumbs_loc: "images/thumbs/"
social_urls:
facebook: "https://www.facebook.com/ramswaroop"
twitter: "https://www.twitter.com/ramswarooppatra"

+ 17
- 0
gulpfile.js View File

@@ -0,0 +1,17 @@
var gulp = require('gulp');
var imageResize = require('gulp-image-resize');

gulp.task('default', function () {
gulp.src('images/fulls/*')
.pipe(imageResize({
width: 1024,
imageMagick: true
}))
.pipe(gulp.dest('images/fulls'));
gulp.src('images/fulls/*')
.pipe(imageResize({
width: 512,
imageMagick: true
}))
.pipe(gulp.dest('images/thumbs'));
});

BIN
images/fulls/01.jpg View File

Before After
Width: 1024  |  Height: 683  |  Size: 48KB

BIN
images/fulls/02.jpg View File

Before After
Width: 1024  |  Height: 683  |  Size: 47KB

BIN
images/fulls/03.jpg View File

Before After
Width: 1024  |  Height: 683  |  Size: 45KB

BIN
images/fulls/04.jpg View File

Before After
Width: 683  |  Height: 1024  |  Size: 47KB

BIN
images/fulls/05.jpg View File

Before After
Width: 1024  |  Height: 682  |  Size: 46KB

BIN
images/fulls/06.jpg View File

Before After
Width: 1024  |  Height: 684  |  Size: 47KB

BIN
images/fulls/07.jpg View File

Before After
Width: 1024  |  Height: 583  |  Size: 39KB

BIN
images/fulls/08.jpg View File

Before After
Width: 1024  |  Height: 583  |  Size: 37KB

BIN
images/fulls/09.jpg View File

Before After
Width: 1024  |  Height: 683  |  Size: 46KB

BIN
images/fulls/10.jpg View File

Before After
Width: 1024  |  Height: 583  |  Size: 40KB

BIN
images/fulls/11.jpg View File

Before After
Width: 1024  |  Height: 583  |  Size: 42KB

BIN
images/fulls/12.jpg View File

Before After
Width: 1024  |  Height: 583  |  Size: 39KB

BIN
images/fulls/DSC_0068.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 8.0MB

BIN
images/fulls/DSC_0069.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 5.7MB Width: 1024  |  Height: 683  |  Size: 488KB

BIN
images/fulls/DSC_0071.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 12MB Width: 1024  |  Height: 683  |  Size: 562KB

BIN
images/fulls/DSC_0076.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 10MB Width: 1024  |  Height: 683  |  Size: 562KB

BIN
images/fulls/DSC_0079.jpg View File

Before After
Width: 3723  |  Height: 5585  |  Size: 9.5MB Width: 1024  |  Height: 1536  |  Size: 1.4MB

BIN
images/fulls/DSC_0082.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 14MB Width: 1024  |  Height: 683  |  Size: 902KB

BIN
images/fulls/DSC_0084.jpg View File

Before After
Width: 3697  |  Height: 5545  |  Size: 9.1MB Width: 1024  |  Height: 1536  |  Size: 878KB

BIN
images/fulls/DSC_0085.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 18MB Width: 1024  |  Height: 683  |  Size: 1.1MB

BIN
images/fulls/DSC_0088.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 9.9MB Width: 1024  |  Height: 683  |  Size: 490KB

BIN
images/fulls/DSC_0096.jpg View File

Before After
Width: 1024  |  Height: 1536  |  Size: 1.2MB

BIN
images/fulls/DSC_0126.jpg View File

Before After
Width: 2786  |  Height: 4179  |  Size: 4.0MB Width: 1024  |  Height: 1536  |  Size: 815KB

BIN
images/fulls/DSC_0163.jpg View File

Before After
Width: 4000  |  Height: 6000  |  Size: 8.8MB

BIN
images/fulls/DSC_0181.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 13MB Width: 1024  |  Height: 683  |  Size: 719KB

BIN
images/fulls/DSC_0208.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 11MB Width: 1024  |  Height: 683  |  Size: 703KB

BIN
images/fulls/DSC_0272.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 11MB Width: 1024  |  Height: 683  |  Size: 656KB

BIN
images/fulls/DSC_0310.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 19MB Width: 1024  |  Height: 683  |  Size: 320KB

BIN
images/fulls/DSC_0320.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 9.3MB Width: 1024  |  Height: 683  |  Size: 316KB

BIN
images/fulls/DSC_0326.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 12MB Width: 1024  |  Height: 683  |  Size: 604KB

BIN
images/fulls/DSC_0327.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 11MB Width: 1024  |  Height: 683  |  Size: 606KB

BIN
images/fulls/DSC_0334.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 9.2MB Width: 1024  |  Height: 683  |  Size: 504KB

BIN
images/fulls/DSC_0336.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 8.5MB Width: 1024  |  Height: 683  |  Size: 575KB

BIN
images/fulls/DSC_0343.jpg View File

Before After
Width: 3905  |  Height: 5857  |  Size: 10MB Width: 1024  |  Height: 1536  |  Size: 971KB

BIN
images/fulls/DSC_0352.jpg View File

Before After
Width: 3471  |  Height: 5206  |  Size: 6.4MB Width: 1024  |  Height: 1536  |  Size: 812KB

BIN
images/fulls/DSC_0355.jpg View File

Before After
Width: 4000  |  Height: 6000  |  Size: 20MB Width: 1024  |  Height: 1536  |  Size: 2.5MB

BIN
images/fulls/DSC_0360.jpg View File

Before After
Width: 6000  |  Height: 4000  |  Size: 20MB Width: 1024  |  Height: 683  |  Size: 1.2MB

BIN
images/fulls/DSC_0361.jpg View File

Before After
Width: 3693  |  Height: 5540  |  Size: 7.8MB Width: 1024  |  Height: 1536  |  Size: 905KB

BIN
images/thumbs/01.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 8.3KB

BIN
images/thumbs/02.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 8.1KB

BIN
images/thumbs/03.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 6.9KB

BIN
images/thumbs/04.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 8.2KB

BIN
images/thumbs/05.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 7.7KB

BIN
images/thumbs/06.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 7.8KB

BIN
images/thumbs/07.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 7.4KB

BIN
images/thumbs/08.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 6.7KB

BIN
images/thumbs/09.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 8.1KB

BIN
images/thumbs/10.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 8.0KB

BIN
images/thumbs/11.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 11KB

BIN
images/thumbs/12.jpg View File

Before After
Width: 360  |  Height: 247  |  Size: 7.3KB

BIN
images/thumbs/DSC_0069.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 214KB

BIN
images/thumbs/DSC_0071.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 203KB

BIN
images/thumbs/DSC_0076.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 208KB

BIN
images/thumbs/DSC_0079.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 473KB

BIN
images/thumbs/DSC_0082.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 280KB

BIN
images/thumbs/DSC_0084.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 270KB

BIN
images/thumbs/DSC_0085.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 338KB

BIN
images/thumbs/DSC_0088.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 173KB

BIN
images/thumbs/DSC_0096.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 346KB

BIN
images/thumbs/DSC_0126.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 267KB

BIN
images/thumbs/DSC_0181.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 229KB

BIN
images/thumbs/DSC_0208.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 290KB

BIN
images/thumbs/DSC_0272.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 204KB

BIN
images/thumbs/DSC_0310.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 77KB

BIN
images/thumbs/DSC_0320.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 122KB

BIN
images/thumbs/DSC_0326.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 194KB

BIN
images/thumbs/DSC_0327.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 228KB

BIN
images/thumbs/DSC_0334.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 195KB

BIN
images/thumbs/DSC_0336.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 179KB

BIN
images/thumbs/DSC_0343.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 279KB

BIN
images/thumbs/DSC_0352.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 242KB

BIN
images/thumbs/DSC_0355.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 727KB

BIN
images/thumbs/DSC_0360.jpg View File

Before After
Width: 512  |  Height: 341  |  Size: 376KB

BIN
images/thumbs/DSC_0361.jpg View File

Before After
Width: 512  |  Height: 768  |  Size: 272KB

+ 8
- 68
index.html View File

@@ -18,75 +18,15 @@ layout: default
<!-- Main -->
<div id="main">
{% for image in site.static_files %}
{% if image.path contains 'DSC_' %}
<article class="thumb">
<a href="{{ site.baseurl }}{{ image.path }}" class="image"><img src="{{ site.baseurl }}{{ image.path }}"
alt=""/></a>
<h2></h2>
<p></p>
</article>
{% endif %}
{% if image.path contains 'fulls' %}
<article class="thumb">
<a href="{{ site.baseurl }}{{ site.image_fulls_loc }}{{ image.name }}" class="image">
<img src="{{ site.baseurl }}{{ site.image_thumbs_loc }}{{ image.name }}" alt=""/></a>
<h2></h2>
<p></p>
</article>
{% endif %}
{% endfor %}
<!--<article class="thumb">
<a href="images/fulls/01.jpg" class="image"><img src="images/thumbs/01.jpg" alt=""/></a>
<h2>Magna feugiat lorem</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/02.jpg" class="image"><img src="images/thumbs/02.jpg" alt=""/></a>
<h2>Nisl adipiscing</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/03.jpg" class="image"><img src="images/thumbs/03.jpg" alt=""/></a>
<h2>Tempus aliquam veroeros</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/04.jpg" class="image"><img src="images/thumbs/04.jpg" alt=""/></a>
<h2>Aliquam ipsum sed dolore</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/05.jpg" class="image"><img src="images/thumbs/05.jpg" alt=""/></a>
<h2>Cursis aliquam nisl</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/06.jpg" class="image"><img src="images/thumbs/06.jpg" alt=""/></a>
<h2>Sed consequat phasellus</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/07.jpg" class="image"><img src="images/thumbs/07.jpg" alt=""/></a>
<h2>Mauris id tellus arcu</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/08.jpg" class="image"><img src="images/thumbs/08.jpg" alt=""/></a>
<h2>Nunc vehicula id nulla</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/09.jpg" class="image"><img src="images/thumbs/09.jpg" alt=""/></a>
<h2>Neque et faucibus viverra</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/10.jpg" class="image"><img src="images/thumbs/10.jpg" alt=""/></a>
<h2>Mattis ante fermentum</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/11.jpg" class="image"><img src="images/thumbs/11.jpg" alt=""/></a>
<h2>Sed ac elementum arcu</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>
<article class="thumb">
<a href="images/fulls/12.jpg" class="image"><img src="images/thumbs/12.jpg" alt=""/></a>
<h2>Vehicula id nulla dignissim</h2>
<p>Nunc blandit nisi ligula magna sodales lectus elementum non. Integer id venenatis velit.</p>
</article>-->
</div>

<!-- Footer -->

+ 3
- 0
npmfile.js View File

@@ -0,0 +1,3 @@
exports.printMsg = function() {
console.log("Visit http://photography.ramswaroop.me for a treat!");
}

+ 32
- 0
package.json View File

@@ -0,0 +1,32 @@
{
"name": "Photography",
"version": "1.0.1",
"description": "A jekyll website for photographer cum developer",
"main": "npmfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ramswaroop/photography.git"
},
"keywords": [
"photography",
"jekyll",
"website",
"template",
"website template",
"portfolio",
"portfolio website"
],
"author": "Ram Patra",
"license": "MIT",
"bugs": {
"url": "https://github.com/ramswaroop/photography/issues"
},
"homepage": "https://github.com/ramswaroop/photography#readme",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-image-resize": "^0.12.0"
}
}

Loading…
Cancel
Save