Work in progress

This commit is contained in:
mmcwilliams 2024-01-06 01:15:58 -05:00
parent fd920d5cbc
commit 9eabcb5052
4 changed files with 33 additions and 2 deletions

View File

@ -1,3 +1,27 @@
# photosite
Static site generator for building a simple photo site.
Static site generator for building a simple photo site.
### Install
```bash
npm i
```
Create a `.env` file by copying the `default.env` file and modifying the values as needed.
### Generate Site Data
The following command will sync the data with s3, generate metadata for each new photo and produce all required thumbnails required for the site.
```bash
npm run generate
```
### Build Site
This command will build the website using the sqlite + photo data available at the time it is run.
```bash
npm run build
```

View File

@ -1,4 +1,7 @@
INBOX="~/Photos/toprocess"
PHOTOS="~/Photos/photosite"
WWW="./www"
TEMPLATES="./views"
TEMPLATES="./views"
S3_KEY=""
S3_BUCKET=""
UMAMI=""

View File

@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>{{title}}</title>
<link href="/css/style.css" rel="stylesheet" />
</head>

3
views/partials/img.hbs Normal file
View File

@ -0,0 +1,3 @@
<a href="{{full}}">
<img id="{{public_id}}" src="{{home}}" loading="lazy" class="lazy" width="1024" alt="{{alt}}" title="{{title}}" />
</a>