gdritter repos when-computer / 96281f1
Merge branch 'master' of rosencrantz:/srv/git/when-computer Getty Ritter 9 years ago
4 changed file(s) with 16 addition(s) and 3 deletion(s). Collapse all Expand all
11 #!/bin/bash -e
22
3 mkdir -p output/{index,about,tags,tag,archive,posts}
3 mkdir -p output/{index,about,tags,tag,archive,posts,static}
4 touch ./generator/generate.scm
45 GEN='guile ./generator/generate.scm'
6 cp -r static/* output/static
57 ${GEN} index posts/$(ls -t posts/ | head -n 1)
68 ${GEN} about
79 ${GEN} tags
4040 (font-size 15pt)
4141 (background-color "#eeeeee")
4242 (counter-reset sidenote-counter))
43
44 (a:link
45 (color "#336699"))
46
47 (a:visited
48 (color "#104070"))
4349
4450 ((= class all)
4551 (width 800px)
111117 ((&& (= class sidenote-number:after) (= class sidenote:before))
112118 (content "counter(sidenote-counter) \" \"")
113119 (position relative)
114 (color "#ff0000"))
120 (color "#3366bb"))
115121
116122 ((= class sidenote-number:after)
117123 (content "counter(sidenote-counter) \" \"")
119125 (left -0.1rem)
120126 (vertical-align super)
121127 (font-size 70%)
122 (color "#ff0000")
128 (color "#3366bb")
123129 (font-size: 0.9rem))
124130
125131 ((= class sidenote:before)
151157 (content ,(++ "what happens when computer: " title))))
152158 (meta (@ (property "og:url")
153159 (content ,(++ "http://what.happens.when.computer" url))))
160 (meta (@ (property "og:image")
161 (content "http://what.happens.when.computer/static/when-computer.png")))
154162 (meta (@ (property "og:type")
155163 (content "website")))
156164 (link (@ (href "/feed.xml")
157165 (type "application/atom+xml")
158166 (rel "alternate")
159167 (title "what happens when computer atom feed")))
168 (link (@ (rel "icon")
169 (type "image/png")
170 (href "http://what.happens.when.computer/static/when-computer-icon.png")))
160171 (style (@ (type "text/css")) ,(scss->css stylesheet))
161172 (script (@ (type "text/javascript")
162173 (src "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML")) "")
Binary diff not shown