mirror of
https://github.com/tildeclub/ttbp.git
synced 2026-01-24 18:50:18 +00:00
moving paths to point to user
This commit is contained in:
42
bin/config/style.css
Normal file
42
bin/config/style.css
Normal file
@@ -0,0 +1,42 @@
|
||||
body {
|
||||
background-color: #E0B0FF;
|
||||
font-family: courier
|
||||
}
|
||||
|
||||
#meta {
|
||||
top: -.5em;
|
||||
position: fixed;
|
||||
height: 3.5em;
|
||||
float: left;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
background-color: #e0b0ff;
|
||||
}
|
||||
|
||||
#tlogs {
|
||||
margin-top: 5em;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.entry {
|
||||
border: 1px dotted white;
|
||||
padding: .4em;
|
||||
margin-bottom:-4em;
|
||||
}
|
||||
|
||||
.entry p {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.entry h5 {
|
||||
text-align: right;
|
||||
margin-top: .2em;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
background-color: black;
|
||||
color: #e0b0ff;
|
||||
font-size: 90%;
|
||||
border: 1px dotted white;
|
||||
padding: 4px;
|
||||
}
|
||||
14
bin/core.py
14
bin/core.py
@@ -2,10 +2,14 @@
|
||||
|
||||
import os
|
||||
|
||||
PATH = os.path.join("/home", "endorphant", "projects", "ttbp", "bin")
|
||||
WWW = os.path.join(PATH, "..","www")
|
||||
SOURCE = os.path.join("/home", "endorphant", "projects", "ttbp", "bin")
|
||||
USER = os.path.basename(os.path.expanduser("~"))
|
||||
PATH = os.path.join("/home", USER, ".ttbp")
|
||||
|
||||
LIVE = "http://tilde.town/~"
|
||||
WWW = os.path.join(PATH, "www")
|
||||
CONFIG = os.path.join(PATH, "config")
|
||||
DATA = os.path.join(os.path.expanduser("~"), ".ttbp", "entries")
|
||||
DATA = os.path.join(PATH, "entries")
|
||||
#DATA = os.path.join("..", "data")
|
||||
|
||||
MONTHS = {
|
||||
@@ -32,7 +36,9 @@ for file in os.listdir(DATA):
|
||||
filename = os.path.join(DATA, file)
|
||||
if os.path.isfile(filename) and os.path.splitext(filename)[1] == ".txt":
|
||||
FILES.append(file)
|
||||
print(file)
|
||||
|
||||
FILES.sort()
|
||||
FILES.reverse()
|
||||
print("found: "+str(FILES))
|
||||
|
||||
@@ -54,7 +60,7 @@ def write(outurl="default.html"):
|
||||
|
||||
outfile.close()
|
||||
|
||||
return os.path.join(WWW, outurl)
|
||||
return os.path.join(LIVE+USER,os.path.basename(os.path.realpath(WWW)),outurl)
|
||||
|
||||
def write_entry(file):
|
||||
# dump given file into entry format, return as list of strings
|
||||
|
||||
Reference in New Issue
Block a user