Merge branch 'master' of rosencrantz:/srv/git/when-computer
Getty Ritter
10 years ago
| 1 | 1 | #!/bin/bash -e |
| 2 | 2 | |
| 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 | |
| 4 | 5 | GEN='guile ./generator/generate.scm' |
| 6 | cp -r static/* output/static | |
| 5 | 7 | ${GEN} index posts/$(ls -t posts/ | head -n 1) |
| 6 | 8 | ${GEN} about |
| 7 | 9 | ${GEN} tags |
| 40 | 40 | (font-size 15pt) |
| 41 | 41 | (background-color "#eeeeee") |
| 42 | 42 | (counter-reset sidenote-counter)) |
| 43 | ||
| 44 | (a:link | |
| 45 | (color "#336699")) | |
| 46 | ||
| 47 | (a:visited | |
| 48 | (color "#104070")) | |
| 43 | 49 | |
| 44 | 50 | ((= class all) |
| 45 | 51 | (width 800px) |
| 111 | 117 | ((&& (= class sidenote-number:after) (= class sidenote:before)) |
| 112 | 118 | (content "counter(sidenote-counter) \" \"") |
| 113 | 119 | (position relative) |
| 114 |
(color "# |
|
| 120 | (color "#3366bb")) | |
| 115 | 121 | |
| 116 | 122 | ((= class sidenote-number:after) |
| 117 | 123 | (content "counter(sidenote-counter) \" \"") |
| 119 | 125 | (left -0.1rem) |
| 120 | 126 | (vertical-align super) |
| 121 | 127 | (font-size 70%) |
| 122 |
(color "# |
|
| 128 | (color "#3366bb") | |
| 123 | 129 | (font-size: 0.9rem)) |
| 124 | 130 | |
| 125 | 131 | ((= class sidenote:before) |
| 151 | 157 | (content ,(++ "what happens when computer: " title)))) |
| 152 | 158 | (meta (@ (property "og:url") |
| 153 | 159 | (content ,(++ "http://what.happens.when.computer" url)))) |
| 160 | (meta (@ (property "og:image") | |
| 161 | (content "http://what.happens.when.computer/static/when-computer.png"))) | |
| 154 | 162 | (meta (@ (property "og:type") |
| 155 | 163 | (content "website"))) |
| 156 | 164 | (link (@ (href "/feed.xml") |
| 157 | 165 | (type "application/atom+xml") |
| 158 | 166 | (rel "alternate") |
| 159 | 167 | (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"))) | |
| 160 | 171 | (style (@ (type "text/css")) ,(scss->css stylesheet)) |
| 161 | 172 | (script (@ (type "text/javascript") |
| 162 | 173 | (src "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML")) "") |
Binary diff not shown
Binary diff not shown