mp4 etc...
This commit is contained in:
parent
56bea0a7ff
commit
1bc98b020f
@ -68,6 +68,14 @@ table td img {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lst ul li desc video {
|
||||||
|
border: 10px grey ridge;
|
||||||
|
margin: 0em;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
width: 985;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.lst ul li img {
|
.lst ul li img {
|
||||||
border: 10px grey ridge;
|
border: 10px grey ridge;
|
||||||
margin: 2em;
|
margin: 2em;
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,4 +2,5 @@
|
|||||||
+++/*.jpeg
|
+++/*.jpeg
|
||||||
+++/*.pdf
|
+++/*.pdf
|
||||||
+++/Screen-Shot-2014-05-26-at-20.40.24-b.png
|
+++/Screen-Shot-2014-05-26-at-20.40.24-b.png
|
||||||
+++/bb15.png
|
+++/bb15.png
|
||||||
|
+++/533201N0032129W_from_the_Sea_poster.png
|
||||||
2
gen.py
2
gen.py
@ -87,6 +87,7 @@ content_map = {
|
|||||||
'.jpg': emit_img,
|
'.jpg': emit_img,
|
||||||
'.m4v': emit_video_mp4,
|
'.m4v': emit_video_mp4,
|
||||||
'.mov': emit_video_mp4,
|
'.mov': emit_video_mp4,
|
||||||
|
'.mp4': emit_video_mp4,
|
||||||
'.audio': emit_audio,
|
'.audio': emit_audio,
|
||||||
'.html': default,
|
'.html': default,
|
||||||
'.txt': default
|
'.txt': default
|
||||||
@ -143,6 +144,7 @@ def index_content(dir_name, data_dir, index_txt, desc_txt, template):
|
|||||||
|
|
||||||
for j in files:
|
for j in files:
|
||||||
x, ext = os.path.splitext(j);
|
x, ext = os.path.splitext(j);
|
||||||
|
ext = ext.lower()
|
||||||
if ext in content_map:
|
if ext in content_map:
|
||||||
element = content_map[ext](j, data_dir);
|
element = content_map[ext](j, data_dir);
|
||||||
if element:
|
if element:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user