diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py index 7f2b18e..8e86592 100644 --- a/distribusi/distribusi.py +++ b/distribusi/distribusi.py @@ -146,7 +146,15 @@ def render_dir(args, root): # what types of text files to expand a = '
{}
'.format(name, open(full_path).read()) elif subtype in CODE_TYPES or name.endswith('.txt'): - a = "
" + open(full_path).read() + "
" + #check - time string + m = PATTERN_TSTR.search(name) + tstring = "" + rename = name + if m: + tstring = m.group('tstring') + rename = m.group('name') + a = "
" + open(full_path).read() + "
" + a = a.replace('{}', tstring) else: subtype = subtype + ' unkown-file' a = "{}".format(relative_path, caption) @@ -243,7 +251,16 @@ def distribusify(args, directory): # noqa # what types of text files to expand a = '
{}
'.format(name, open(full_path).read()) elif subtype in CODE_TYPES or name.endswith('.txt'): - a = "
" + open(full_path).read() + "
" + #check - time string + m = PATTERN_TSTR.search(name) + tstring = "" + rename = name + if m: + tstring = m.group('tstring') + rename = m.group('name') + a = "
" + open(full_path).read() + "
" + a = a.replace('{}', tstring) + #a = "
" + open(full_path).read() + "
" else: subtype = subtype+' unkown-file' a = "{}" diff --git a/run.sh b/run.sh index d41249c..9edda3c 100755 --- a/run.sh +++ b/run.sh @@ -1,3 +1,3 @@ #!/bin/bash -python run.py -d ./data/ -nf -s styles/white.css --no-hidden --unfolding +python run.py -d ./data/ -nf -s styles/dark.css --no-hidden --unfolding diff --git a/styles/dark.css b/styles/dark.css index dbbb378..b510b8d 100644 --- a/styles/dark.css +++ b/styles/dark.css @@ -48,6 +48,11 @@ div { margin-bottom: 1em; } +.plain { + display: flex; + flex-direction: column; +} + .plain div { white-space: pre-line; } @@ -153,7 +158,7 @@ a:hover { } time { - color: rgba(100, 255, 200, .2); + color: rgba(127, 127, 127, 0.2); } audio::-webkit-media-controls-enclosure {