lib/data.glyph
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
--[-------------------- Snippets ------------------------]
&:[G|Glyph]
--[-------------------- Macros --------------------------]
def:[h3rald.article|
article[
@pubdate[$[document.date]]
@head[
style[default.css]
style[pagination.css]
<style>
h1 {
font-size: 24px;
}
h2{
margin-top: 0.2em;
padding-top: 0;
}
q, blockquote {
font-style: italic;
color: #8F6B17;
}
.contents {
text-align:justify;
margin-bottom: 2em;
padding-bottom: 2em;
border-bottom: 1px solid #000;
}
div.caption {
color: #8F6B17;
font-style: italic;
padding: 0;
margin: 0 0.6em;
}
.figure {
padding: 0;
border: 1px solid #ccc;
display: block;
}
.figure img {
margin-bottom: 0;
}
.left { float: left; }
.right { float: right; }
.right, img\[style="float:right;"\], .figure\[style="float:right;"\] {
margin: 1em 0 1em 1em;
}
.left, img\[style="float:left;"\], .figure\[style="float:left;"\] {
margin: 1em 1em 1em 0;
}
@page {
@top {
content: string(book-title);
}
}
</style>
]
@pre-title[
=>[http://www.h3rald.com/archives/|image[@width[25%]@height[25%]$[site.root]/images/logo.svg]]
]
@post-title[
div[em[Originally published on =>[http://www.h3rald.com{{identifier}}|H3RALD.com]]]
toc[]
]
{{content}}
]
]
def:[pt|
section[@title[Part {{0}}: {{1}}]
txt[{{2}}]
]
]
def:[quote|
blockquote[
{{0}}
]
?[{{1}}|p[@style[margin-left: 4em]– {{1}}\/?[{{2}}|, cite[{{2}}]]]]
]
def:[float-img|
image[@class[{{1}}]$[site.root]{{0}}]
]
def:[float-fig|
figure[@style[float:{{2}};]$[site.root]{{0}}|{{1}}]
]
def:[left-img|
float-img[{{0}}|left]
]
def:[right-img|
float-img[{{0}}|right]
]
def:[center-img|
float-img[{{0}}|center]
]
def:[left-fig|
float-fig[{{0}}|{{1}}|left]
]
def:[right-fig|
float-fig[{{0}}|{{1}}|right]
]
def:[center-fig|
float-fig[{{0}}|{{1}}|center]
]
|