add a homepage thing
This commit is contained in:
parent
829bf8be4a
commit
a965eb1aed
|
@ -2,9 +2,12 @@ files=$(find kb -type f | awk -F'/' '{print $NF}')
|
||||||
IFS='
|
IFS='
|
||||||
'
|
'
|
||||||
mkdir -p franklincce/staticfiles/kb
|
mkdir -p franklincce/staticfiles/kb
|
||||||
|
mkdir -p franklincce/staticfiles/root
|
||||||
|
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
without_extension=${file%.*}
|
without_extension=${file%.*}
|
||||||
echo $file, $without_extension
|
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
|
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
|
|
@ -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.
|
|
@ -5,7 +5,7 @@ upstream franklincce {
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
location / {
|
location /explorer/ {
|
||||||
proxy_pass http://franklincce;
|
proxy_pass http://franklincce;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
@ -20,4 +20,8 @@ server {
|
||||||
location /kb {
|
location /kb {
|
||||||
alias /home/app/web/staticfiles/kb;
|
alias /home/app/web/staticfiles/kb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
alias /home/app/web/staticfiles/root/;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue