From 9eabcb50524edc7693b14f95f1a20d978bd50469 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sat, 6 Jan 2024 01:15:58 -0500 Subject: [PATCH] Work in progress --- README.md | 26 +++++++++++++++++++++++++- default.env | 5 ++++- views/partials/head.hbs | 1 + views/partials/img.hbs | 3 +++ 4 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 views/partials/img.hbs diff --git a/README.md b/README.md index 4c1e652..60cb052 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,27 @@ # photosite -Static site generator for building a simple photo site. \ No newline at end of file +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 +``` \ No newline at end of file diff --git a/default.env b/default.env index 518f124..75ecac9 100644 --- a/default.env +++ b/default.env @@ -1,4 +1,7 @@ INBOX="~/Photos/toprocess" PHOTOS="~/Photos/photosite" WWW="./www" -TEMPLATES="./views" \ No newline at end of file +TEMPLATES="./views" +S3_KEY="" +S3_BUCKET="" +UMAMI="" \ No newline at end of file diff --git a/views/partials/head.hbs b/views/partials/head.hbs index 5617c2c..899f1d4 100644 --- a/views/partials/head.hbs +++ b/views/partials/head.hbs @@ -2,6 +2,7 @@ + {{title}} diff --git a/views/partials/img.hbs b/views/partials/img.hbs new file mode 100644 index 0000000..f85c1d1 --- /dev/null +++ b/views/partials/img.hbs @@ -0,0 +1,3 @@ + + {{alt}} +