summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2017-03-25 22:54:03 +0100
committerCtibor Brančík <ctibor@brancik.cz>2017-03-25 22:54:03 +0100
commit6f6c1159ead27106167b5fae11317084e4e6559e (patch)
treee8f24dce0593365ede64c06804e46920bd71de6d
parent5e59a3097ab8b6e15ab5ee2ac0b710e2c785a896 (diff)
downloadhnizdo-6f6c1159ead27106167b5fae11317084e4e6559e.tar.gz
hnizdo-6f6c1159ead27106167b5fae11317084e4e6559e.tar.bz2
Add variable to set root dir
-rw-r--r--cgi-bin/config.py1
-rwxr-xr-xcgi-bin/nest.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/cgi-bin/config.py b/cgi-bin/config.py
index 607ddec..3c66f3c 100644
--- a/cgi-bin/config.py
+++ b/cgi-bin/config.py
@@ -1,3 +1,4 @@
datadir='img/'
+root='hnizdo/'
special = ('index', 'latest')
pagination = 30
diff --git a/cgi-bin/nest.py b/cgi-bin/nest.py
index a4a243c..c95a243 100755
--- a/cgi-bin/nest.py
+++ b/cgi-bin/nest.py
@@ -17,7 +17,7 @@ print ("<html>")
print ("<head>")
print ("<meta charset=\"UTF-8\">")
print ("<title>Hnízdo</title>")
-print ("<link rel=\"stylesheet\" type=\"text/css\" href=\"style/style.css\">")
+print ("<link rel=\"stylesheet\" type=\"text/css\" href=\""+config.root+"style/style.css\">")
print ("</head>")
print ("<body>")