add a homepage thing

This commit is contained in:
stupidcomputer 2024-06-29 18:15:33 -05:00
parent 829bf8be4a
commit a965eb1aed
3 changed files with 15 additions and 2 deletions

View File

@ -2,9 +2,12 @@ files=$(find kb -type f | awk -F'/' '{print $NF}')
IFS='
'
mkdir -p franklincce/staticfiles/kb
mkdir -p franklincce/staticfiles/root
for file in $files; do
without_extension=${file%.*}
echo $file, $without_extension
pandoc -s --template=./template.html -f markdown -t html -o "franklincce/staticfiles/kb/$without_extension.html" "kb/$without_extension.md" --lua-filter=links-to-html.lua
done
done
cp franklincce/staticfiles/kb/web_root.html franklincce/staticfiles/root/index.html

6
kb/web_root.md Normal file
View File

@ -0,0 +1,6 @@
---
title: "Franklin CCE Delegation website"
---
This website contains some materials for the Franklin High School YMCA Center for Civic Engagement delegation.
Specifically, a [bill database](/explorer) and a [collection of helpful articles](/kb) on various things are available here.

View File

@ -5,7 +5,7 @@ upstream franklincce {
server {
listen 80;
location / {
location /explorer/ {
proxy_pass http://franklincce;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
@ -20,4 +20,8 @@ server {
location /kb {
alias /home/app/web/staticfiles/kb;
}
location / {
alias /home/app/web/staticfiles/root/;
}
}