Distribusi is a content management system for the web that produces static pages based on the file system.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
CODE_TYPES = ['x-c', 'x-shellscript', 'x-python']
|
|
|
|
|
|
|
|
FILE_TYPES = {
|
|
|
|
'image': '<figure><img class="image" src="{}"><figcaption>{}</figcaption></figure>',
|
|
|
|
'text': '<a href="{}" class="text">{}</a>',
|
|
|
|
'video': ('<video controls>' '<source src="{}"></video>'),
|
|
|
|
'audio': ('<audio controls class="audio">' '<source src="{}"></audio>'),
|
|
|
|
}
|
|
|
|
|
|
|
|
SUB_TYPES = {
|
|
|
|
'pdf': (
|
|
|
|
'<object data="{}" class="pdf" type="application/pdf">'
|
|
|
|
'<embed src="{}" type="application/pdf" /></object>')
|
|
|
|
}
|