bildo
Version:
Quick image gallery
41 lines (40 loc) • 1.2 kB
text/jade
doctype html
html
head
title bildo
meta(charset='UTF-8')
meta(name="viewport", content="width=device-width, initial-scale=1.0")
style.
a {
text-decoration: none; color:
a.pag:hover, a.pag:focus {
background-color:
body {
color:
img {
border: 2px solid
unless nogrid
script(type='text/javascript', src='js/gridify-min.js')
script(type='text/javascript', src='js/img.js')
else
style.
body { margin-right: 3em; margin-left: 3em; } img { max-width: 80%; }1
body
if total >= 1
if pages.length > 1
.pagination
if cp !== pages[0]
a(class='pag', href= '/?page=' + (cp - 1)) Prev
span ·
span Page <b>
if cp !== pages[pages.length - 1]
span ·
a(class='pag', href= '/?page=' + (cp + 1)) Next
.grid
- var nfolder = folder.replace(/\ /g,"_");
each file in files
- var file = file.replace(base, '').replace(folder, nfolder)
a(target='_blank', href= file)
img(src= file)
else
h1 Didn't found any image. Are you sure that there's any?