Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
amgno committed Dec 8, 2024
1 parent cfb9e57 commit 34a0175
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion _site/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,4 @@ select {

.thumbnail.active {
opacity: 1;
}
}
13 changes: 8 additions & 5 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,19 @@ <h1>A MAGNO</h1>

// Add images to gallery and create thumbnails
folderImages.forEach((image, index) => {
// Create main photo item
const photoItem = document.createElement('div');
photoItem.className = 'photo-item';

photoItem.innerHTML = `
<img src="/photos${image.path}" loading="lazy">
<div class="photo-info">
<div class="location">${folderInfo.location}</div>
<div class="year">${folderInfo.year}</div>
<div class="image-container">
<img src="/photos${image.path}" loading="lazy">
<div class="photo-info">
<div class="location">${folderInfo.location}</div>
<div class="year">${folderInfo.year}</div>
</div>
</div>
`;

photoGrid.appendChild(photoItem);

// Create thumbnail
Expand Down
2 changes: 1 addition & 1 deletion assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,4 @@ select {

.thumbnail.active {
opacity: 1;
}
}
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,19 @@ <h1>A MAGNO</h1>

// Add images to gallery and create thumbnails
folderImages.forEach((image, index) => {
// Create main photo item
const photoItem = document.createElement('div');
photoItem.className = 'photo-item';

photoItem.innerHTML = `
<img src="{{ site.baseurl }}${image.path}" loading="lazy">
<div class="photo-info">
<div class="location">${folderInfo.location}</div>
<div class="year">${folderInfo.year}</div>
<div class="image-container">
<img src="{{ site.baseurl }}${image.path}" loading="lazy">
<div class="photo-info">
<div class="location">${folderInfo.location}</div>
<div class="year">${folderInfo.year}</div>
</div>
</div>
`;

photoGrid.appendChild(photoItem);

// Create thumbnail
Expand Down

0 comments on commit 34a0175

Please sign in to comment.