Work in progress
This commit is contained in:
parent
fd920d5cbc
commit
9eabcb5052
24
README.md
24
README.md
|
@ -1,3 +1,27 @@
|
||||||
# photosite
|
# 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
|
||||||
|
```
|
|
@ -2,3 +2,6 @@ INBOX="~/Photos/toprocess"
|
||||||
PHOTOS="~/Photos/photosite"
|
PHOTOS="~/Photos/photosite"
|
||||||
WWW="./www"
|
WWW="./www"
|
||||||
TEMPLATES="./views"
|
TEMPLATES="./views"
|
||||||
|
S3_KEY=""
|
||||||
|
S3_BUCKET=""
|
||||||
|
UMAMI=""
|
|
@ -2,6 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
<title>{{title}}</title>
|
<title>{{title}}</title>
|
||||||
<link href="/css/style.css" rel="stylesheet" />
|
<link href="/css/style.css" rel="stylesheet" />
|
||||||
</head>
|
</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