Commit graph

54 commits

Author SHA1 Message Date
9ae778bb79 bump version to 0.2.0 and update deps
Some checks failed
Rust / build (push) Has been cancelled
2025-05-19 10:22:24 -07:00
5ff3338b30 Fix dep spec, no need for caret
Some checks are pending
Rust / build (push) Waiting to run
2025-05-18 08:52:26 -07:00
b1d66d7e9f bump version
Some checks are pending
Rust / build (push) Waiting to run
2025-05-18 08:47:59 -07:00
aba9fa4025
Reorganize command (#4)
Some checks are pending
Rust / build (push) Waiting to run
Adds a command to reorganize a folder of photos, renaming them so that
they contain date and time so that they're sorted by that.

This also renames files associated with the photos, like the
descriptions, like IMG_1234.jpg with IMG_1234.md
2025-05-18 08:46:41 -07:00
37581ee6a0 fix .gitignore
Some checks failed
Rust / build (push) Has been cancelled
2025-05-11 14:44:51 -07:00
aa57c0d092 tweaks
Some checks failed
Rust / build (push) Has been cancelled
2025-05-10 08:49:11 -07:00
4ebaee95cc reorganize 2025-05-10 08:49:03 -07:00
9945b9eb7f
Rewrite in Rust (#3)
Some checks are pending
Rust / build (push) Waiting to run
Just what the world needs, another silly Rust re-write! But it was a good exercise in learning.

There's a lot of messy things, which is why this is 0.2.0-pre.1. Going to make some cleaning passes after landing this.
2025-05-08 12:27:49 -07:00
94a5e30a8f reconcile gh + fj
All checks were successful
Run tests / build (3.12) (push) Successful in 49s
Run tests / build (3.13) (push) Successful in 49s
2025-04-26 17:57:59 -07:00
24aeba0221 fmt
All checks were successful
Run tests / build (3.12) (push) Successful in 35s
Run tests / build (3.13) (push) Successful in 48s
2025-04-26 17:55:43 -07:00
a8eb1df562 Set up forgejo actions (#1)
Some checks failed
Run tests / build (3.12) (push) Has been cancelled
Run tests / build (3.13) (push) Has been cancelled
Reviewed-on: #1
Co-authored-by: Nick Pegg <nick@nickpegg.com>
Co-committed-by: Nick Pegg <nick@nickpegg.com>
2025-04-27 00:55:11 +00:00
d297110d88 Add installation instructions to README 2024-08-11 17:32:02 -07:00
e2338df37c Release v0.1.1
- Add output_dir config option, defaults to "site" to keep original
  directory clean
- Add support for nested covers - if there are no images in a dir, pick
  the cover from the first child dir
- Show help text if no args are given
- Some HTML/CSS visual tweaks
- Start buildling standalone binaries using PEX
2024-08-11 17:26:31 -07:00
4d45aa5296 makefile tooling for building standalone binaries for various platforms and making a GH release 2024-08-11 17:25:54 -07:00
f7998cd708 Add output_dir config option, default to "site" to keep original directory clean 2024-08-11 12:13:27 -07:00
cd47a82ecf visual tweaks 2024-08-05 21:18:53 -07:00
6cd2e52408 Merge branch 'pex' 2024-08-05 20:00:28 -07:00
f60a14ae21 Add support for nested covers - if there are no images in a dir, pick the cover from the first child dir 2024-08-05 20:00:06 -07:00
c93f1997fc basic PEX tooling to build independent binaries 2024-08-05 19:29:40 -07:00
c08c5609ca Support running with no args - show help 2024-08-05 08:08:25 -07:00
acd736c970 Revert "mark py3.11 support"
This reverts commit 04586c8c45.

We actually need >= 3.12
2024-08-04 22:30:30 -07:00
04586c8c45 mark py3.11 support 2024-08-04 22:26:54 -07:00
484f0f07f4 responsiveness fixes 2024-08-04 20:01:15 -07:00
84f89cf8d8 add types-markdown 2024-08-04 18:59:06 -07:00
212fe4cad2 use breadcrumbs instead of up-arrow for child to parent nav 2024-08-04 18:58:43 -07:00
abf2ecc748 Add license 2024-08-04 18:29:39 -07:00
ef1814409d Spruce up readme 2024-08-04 18:26:00 -07:00
52c1a47a91 reduce default view size 2024-08-04 18:01:27 -07:00
cc04e10e5f Only display "Photos" on album if we showed sub-albums 2024-08-04 18:01:21 -07:00
8d82b4defa move nav to under photo 2024-08-04 17:58:58 -07:00
c3c4a84181 add support for image descriptions 2024-08-04 17:31:53 -07:00
7ae5d8271c add support for album descriptions 2024-08-04 17:22:49 -07:00
03debf05bc rename skel config file too 2024-08-04 17:13:45 -07:00
8f7b336220 Rename to photojawn 2024-08-04 17:08:17 -07:00
e811f2949b link color 2024-08-04 17:03:00 -07:00
ad3ced80df quick mode - skip thumbnail generation if files already exist 2024-08-04 12:06:54 -07:00
217950eeaf Add cover images to albums. If a cover.jpg doesn't exist, use the first image 2024-08-04 11:57:08 -07:00
2875805444 add a page header 2024-08-04 11:01:04 -07:00
35d5884591 responsive image size 2024-08-04 09:21:04 -07:00
d1dcb610d6 handle left/right arrow keys for album nav 2024-08-04 08:35:45 -07:00
ac08b1fc84 handle next/prev image in an album 2024-08-04 08:25:16 -07:00
085c1dee88 some styling 2024-08-03 18:55:44 -07:00
321cbee134 basic page rendering 2024-08-03 18:02:14 -07:00
4f5bd76f8a Add rendering
Refactors the generator do to a two-pass:
1. Get a grasp of all directories which have images, noting their
   children and images
2. Do stuff with those directories
2024-08-03 17:05:17 -07:00
eb828dc48b generate HTML paths 2024-08-03 10:16:17 -07:00
ec633fbd80 photos -> images 2024-08-03 09:54:53 -07:00
71511f2f16 move photo finding to its own function for reuse 2024-08-03 09:49:55 -07:00
8c25b096bb clean up 2024-08-03 09:38:28 -07:00
abea88bf52 make init an explicit thing to avoid generating in a non-photo dir 2024-08-03 09:31:17 -07:00
7b4db89867 add basic text to the templates 2024-08-03 09:17:58 -07:00