From e66f29ff85392e3c06e9033e37ead06a9d9d5daa Mon Sep 17 00:00:00 2001
From: Tom Smeding
Date: Thu, 18 Jun 2020 21:48:33 +0200
Subject: Add blog
---
.gitignore | 1 +
Dockerfile | 3 +-
index.html | 3 ++
install_prepare.sh | 7 +++
modules/blog/.gitignore | 1 +
modules/blog/blog.js | 135 +++++++++++++++++++++++++++++++++++++++++++++++
modules/blog/template.js | 56 ++++++++++++++++++++
webserver.js | 12 +++--
8 files changed, 214 insertions(+), 4 deletions(-)
create mode 100644 modules/blog/.gitignore
create mode 100644 modules/blog/blog.js
create mode 100644 modules/blog/template.js
diff --git a/.gitignore b/.gitignore
index 768d3c0..5c22b60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
/globalAccounts.json
/node_modules/
/persist/
+/static/
/web_files
/out.log
/pid.txt
diff --git a/Dockerfile b/Dockerfile
index 15a5afc..3ac1a0c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,7 +17,8 @@ RUN npm install --unsafe-perm
FROM alpine:3.11 AS runner
# texlive: for pdfjam for pdfrotate
-RUN apk add --no-cache nodejs texlive
+# git: for blog
+RUN apk add --no-cache nodejs texlive git
WORKDIR /webserver
COPY --from=builder /webserver /webserver
diff --git a/index.html b/index.html
index 6264244..099460d 100644
--- a/index.html
+++ b/index.html
@@ -31,6 +31,9 @@ div.main-content{
among others.
Besides Github, I also have a number of projects on my own server.
+
+ I've also written some notes at some point.
+