Work in progress
This commit is contained in:
parent
fd920d5cbc
commit
9eabcb5052
26
README.md
26
README.md
|
@ -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
|
||||
```
|
|
@ -1,4 +1,7 @@
|
|||
INBOX="~/Photos/toprocess"
|
||||
PHOTOS="~/Photos/photosite"
|
||||
WWW="./www"
|
||||
TEMPLATES="./views"
|
||||
TEMPLATES="./views"
|
||||
S3_KEY=""
|
||||
S3_BUCKET=""
|
||||
UMAMI=""
|
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<a href="{{full}}">
|
||||
<img id="{{public_id}}" src="{{home}}" loading="lazy" class="lazy" width="1024" alt="{{alt}}" title="{{title}}" />
|
||||
</a>
|
Loading…
Reference in New Issue