develop #1

Merged
kkenny merged 6 commits from develop into main 2024-07-02 23:56:04 -04:00
10 changed files with 2301 additions and 12 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
_site
Gemfile.lock

View File

@ -7,7 +7,7 @@ gem "rmagick"
gem "exifr"
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
# gem "jekyll-feed", "~> 0.6"
gem "jekyll-exif-data"
end

View File

@ -21,7 +21,7 @@ gallery:
symlink: false # false: copy images into _site. true: create symbolic links (saves disk space)
thumbnail_size:
y: 450
retina: 1.5
retina: 1.2
# The following options are for individual galleries.
galleries:

View File

@ -1,4 +1,5 @@
<script src="//danielandrade.net/gallery.js"></script>
<!--
<script src="/assets/gallery.js"></script>
-->
</body>
</html>

View File

@ -13,7 +13,7 @@
<link href='//fonts.googleapis.com/css?family=Roboto:400,900' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.4/jquery.lazy.min.js"></script>
<link rel="stylesheet" href="//danielandrade.net/gallery.css">
<link rel="stylesheet" href="/assets/gallery.css">
</head>
<body>

View File

@ -29,18 +29,20 @@
<div id="gallery">
{% for image in sorted_imgs %}
<div class="picture-frame">
<a class="item lazy" href="{{ image[0] }}">
<img
src="thumbs/{{ image[0] }}"
data-src="thumbs/{{ image[0] }}"
width="{{ image[1] | divided_by: site.gallery.thumbnail_size.retina }}"
height="{{ site.gallery.thumbnail_size.y | divided_by: site.gallery.thumbnail_size.retina }}" />
height="300" />
</a>
{% assign image_path = '/usr/local/jekyll/sites/photos.kameronkenny.com/photos/' | append: page.gallery | append: '/' | append: image[0] %}
{% capture has_exif %}{{ image_path | exif: "exif?" }}{% endcapture %}
{% if has_exif %}
Camera: {{ image_path | exif: 'model' }}
<p>{{ image_path | exif: 'model' }} {{ image_path | exif: 'shutter_speed_value'}}</p>
<p>{{ image_path | exif: 'lens_model' }} f{{ image_path | exif: 'aperture_value' }}</p>
{% endif %}
</div>
{% endfor %}
</div>

View File

@ -153,7 +153,7 @@ module Jekyll
begin
Dir.foreach(dir) do |gallery_dir|
gallery_path = File.join(dir, gallery_dir)
if File.directory?(gallery_path) and gallery_dir.chars.first != "."
if File.directory?(gallery_path) and gallery_dir.chars.first != "." and gallery_dir != "assets"
gallery = GalleryPage.new(site, site.source, gallery_path, gallery_dir)
gallery.render(site.layouts, site.site_payload)
gallery.write(site.dest)

2275
photos/assets/gallery.css Normal file

File diff suppressed because it is too large Load Diff

8
photos/assets/gallery.js Normal file

File diff suppressed because one or more lines are too long

1
photos/assets/gallery.min.css vendored Normal file

File diff suppressed because one or more lines are too long