-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.pug
65 lines (56 loc) · 1.52 KB
/
index.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//-
//- @link https://pugjs.org/api/getting-started.html
//- @link https://devhints.io/pug
//-
- var time = new Date();
-
var docs = [
'Angelica',
'Auberge|https://themedemos.webmandesign.eu/wp-content/themes/auberge-plus/screenshot.jpg|(Plus)',
'Björk',
'Cindy|png',
'Deborah|png',
'Eimear|png',
'Forstron',
'Francesca',
'Gwyneth',
'Hilda',
'Icelander',
'Ileana',
'Josephine',
'Michelle|png',
'Modern',
'Monument Valley',
'Mustang|jpg|(Lite)',
'Polyclinic',
"Q'tron",
'Receptar',
'Reykjavik',
'Zooey',
];
doctype html
html( lang="en" )
head
meta( charset="utf-8" )
meta(
name="viewport"
content="width=device-width, initial-scale=1"
)
title WebMan Design documentation repository
style
include style.css
body( data-version=time.toLocaleString() )
a( name="top" )
h1 Documentation by <a href="https://www.webmandesign.eu">WebMan Design</a>
section
each doc in docs
- doc = doc.split( '|' );
- folder = doc[0].toLowerCase().replace( ' ', '-' ).replace( "'", '' ).replace( 'ö', 'o' );
- img = ( doc[1] ) ? ( doc[1] ) : ( 'jpg' );
- img_url = ( 0 > img.indexOf( 'http' ) ) ? ( 'https://themedemos.webmandesign.eu/wp-content/themes/' + folder + '/screenshot.' + img ) : ( img );
- suffix = ( doc[2] ) ? ( '<span class="suffix">' + doc[2] + '</span>' ) : ( '' );
article
a( href=folder+"/index.html" )
h2 #{ doc[0] } !{ suffix } <small>Documentation</small>
figure
img( src=img_url alt=doc[0]+" documentation")