Skip to content

Commit

Permalink
removed 2 pictures and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoCalzoni committed May 31, 2024
1 parent 7e9e1b4 commit dcd11dd
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 166 deletions.
39 changes: 39 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,42 @@ Site for a village festival. Provides the menu and photos of the various evening
The gallery pages were generated with the script provided by: https://cyclenerd.github.io/gallery_shell/

Developed by Federico Calzoni.


# How to add a new album:
0. Requirements:
make sure to have installed the following packages:
- imagemagick
- jhead
- jpegoptim
1. create a folder inside images/ and place your pictures
2. create thumbnails and html pages for each picture:
1. copy gallery.sh in the folder created
2. run gallery.sh
```bash
gallery.sh -t "My Photos" -d "thumbs"
```
- (replace "My Photos" with the title of the album, a.e.: 29/07/23 #Cumbesa")
1. delete gallery.sh from the folder
3. compress the images
```bash
run compress_images.sh
```
(It will skip already compressed images)
4. Create a new entry in the phots page:
1. open photos.html with a text editor:
2. place a new entry with the following structure:
```html
<div class="home-buttons">
<div class="card">
<a class="albums" href="images/29-07-23/index.html" style="--background-image-url: url(images/29-07-23/thumbs/406/IMG_3293.JPG);">
<h2 class="album-title">29/07/23 <Br> #Cumbesa</h2>
</a>
</div>
</div>
```
- Replace "images/29-07-23/index.html", with the new one.
- Replace "images/29-07-23/thumbs/406/IMG_3293.JPG" with an image that you like from the new ones
- Replace $"29/07/23 <Br> #Cumbesa"$ with the new album name
5. Push changes to github and automatically a workflow will start and deploy the updated website.

Binary file removed images/29-07-23/IMG_3486.JPG
Binary file not shown.
Binary file removed images/29-07-23/IMG_3487.JPG
Binary file not shown.
10 changes: 0 additions & 10 deletions images/29-07-23/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -531,16 +531,6 @@
<a href="thumbs/IMG_3424.JPG.html"><img src="thumbs/406/IMG_3424.JPG" alt="Thumbnail: IMG_3424.JPG" class="rounded mx-auto d-block" height="203"></a>
</p>
</div>
<div class="col">
<p>
<a href="thumbs/IMG_3486.JPG.html"><img src="thumbs/406/IMG_3486.JPG" alt="Thumbnail: IMG_3486.JPG" class="rounded mx-auto d-block" height="203"></a>
</p>
</div>
<div class="col">
<p>
<a href="thumbs/IMG_3487.JPG.html"><img src="thumbs/406/IMG_3487.JPG" alt="Thumbnail: IMG_3487.JPG" class="rounded mx-auto d-block" height="203"></a>
</p>
</div>
<div class="col">
<p>
<a href="thumbs/IMG_3490.JPG.html"><img src="thumbs/406/IMG_3490.JPG" alt="Thumbnail: IMG_3490.JPG" class="rounded mx-auto d-block" height="203"></a>
Expand Down
Binary file removed images/29-07-23/thumbs/406/IMG_3486.JPG
Binary file not shown.
Binary file removed images/29-07-23/thumbs/406/IMG_3487.JPG
Binary file not shown.
Binary file removed images/29-07-23/thumbs/768/IMG_3486.JPG
Binary file not shown.
Binary file removed images/29-07-23/thumbs/768/IMG_3487.JPG
Binary file not shown.
78 changes: 0 additions & 78 deletions images/29-07-23/thumbs/IMG_3486.JPG.html

This file was deleted.

78 changes: 0 additions & 78 deletions images/29-07-23/thumbs/IMG_3487.JPG.html

This file was deleted.

0 comments on commit dcd11dd

Please sign in to comment.