diff --git a/+++/lestyle.css b/+++/lestyle.css
index 84ccadd..fe76dfd 100644
--- a/+++/lestyle.css
+++ b/+++/lestyle.css
@@ -47,6 +47,11 @@ table td img {
border: 2px grey ridge;
}
+table td video {
+ width: 100%;
+ border: 2px grey ridge;
+}
+
.lst {
margin-right: 3em;
}
diff --git a/gen.py b/gen.py
index 83506b8..e2fb6ee 100644
--- a/gen.py
+++ b/gen.py
@@ -19,7 +19,7 @@ def parse_args():
if args.output and os.path.isdir(args.output):
output_dir = args.output;
-def translate(txt, dirname):
+def translate_index_header(txt, dirname):
try:
table = open(os.path.join('.', '
'), 'r+');
except:
@@ -28,7 +28,11 @@ def translate(txt, dirname):
href = None
sections = txt.count('- - -');
- if sections == 1:
+ if sections == 0:
+ # not following the normal template -> direct html
+ txt = txt.replace('data/', dirname + '/'); #<--- replace reference to data/
+ return txt
+ elif sections == 1:
[text, link] = txt.split('- - -');
elif sections == 2:
[text, link, href] = txt.split('- - -');
@@ -246,7 +250,7 @@ if __name__ == '__main__':
txt = indx.read();
dirname = os.path.basename(dd);
newdirname = escape_date(dirname) # trim date out of url -- permalink
- content += translate(txt, newdirname);
+ content += translate_index_header(txt, newdirname);
content += '\n
\n';
# data dir / content