forked from varia/distribusi
crunk
2 weeks ago
5 changed files with 69 additions and 10 deletions
@ -0,0 +1,4 @@ |
|||||
|
image_no_description = '<a href="{name}"><img class="thumbnail" src="{thumbnail_filename}" alt="{name}"></a>' |
||||
|
image_with_description = '<figure><a href="{name}"><img class="thumbnail" src="{thumbnail_filename}"></a><figcaption>{image_description}</figcaption></figure>' |
||||
|
image_with_alttext = '<a href="{name}"><img class="thumbnail" src="{thumbnail_filename}" alt="{image_alttext}"></a>' |
||||
|
image_full_figure = '<figure><a href="{name}"><img class="thumbnail" src="{thumbnail_filename}" alt="{image_alttext}"></a><figcaption>{image_description}</figcaption></figure>' |
@ -0,0 +1,25 @@ |
|||||
|
html_head = """ |
||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<!-- Generated with distribusi https://git.vvvvvvaria.org/crunk/distribusi --> |
||||
|
<meta name="generator" content="distribusi" /> |
||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
||||
|
<style> |
||||
|
.image{max-width: 100%%;} |
||||
|
.pdf object{width:640px;height: 640px;} |
||||
|
.dir::before{content:"📁 ";font-size:18px;} |
||||
|
.filename{display:block;font-family:mono;} |
||||
|
.unkown-file::before{content:"📄 ";font-size:18px;} |
||||
|
div{max-width: 640px;display:inline-block;vertical-align:top;margin:1em;padding:1em;} |
||||
|
video {width:640px;max-height:640px;} |
||||
|
%s |
||||
|
</style> |
||||
|
</head> |
||||
|
<body> |
||||
|
""" |
||||
|
|
||||
|
html_footer = """ |
||||
|
</body> |
||||
|
</html> |
||||
|
""" |
Loading…
Reference in new issue