Skip to content

Commit

Permalink
Forget the thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
s7uck committed Aug 20, 2024
1 parent 268942b commit dfd8f05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions _plugins/photo_gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ def generate(site)
focal = pic.focallength
rating = pic.rating
mode = modes[pic.exposure_program || 'AUTO']
if pic['OPMedia:IsBokehActive']
mode = 'MACRO'
end
if pic['OPMedia:IsHDRActive']
mode += ' HDR'
end
if pic['OPMedia:IsNightModeActive'] || image.end_with? "NIGHT.jpg"
mode = 'NIGHT'
end
description = pic.comment

photo_data = {
Expand Down
2 changes: 1 addition & 1 deletion gallery.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permalink: /gallery

<ol class="grid" id="photo-grid">{% for photo in photos %}
<li class="card{% if photo.rating >= 4 %} big{% endif %}" onclick="window.location = '{{ photo.url }}'">
<img src="{{ photo.image }}.webp" alt="{{ photo.title }}">
<img src="{{ photo.image }}" alt="{{ photo.title }}">

<figcaption>
<small>
Expand Down

0 comments on commit dfd8f05

Please sign in to comment.