switch to https
Getty Ritter
6 years ago
| 15 | 15 | (format #f "/~a/~a/" date slug))) |
| 16 | 16 | |
| 17 | 17 | (define (atom-element post) |
| 18 |
(let ((url (++ "http |
|
| 18 | (let ((url (++ "https://what.happens.when.computer" (post-url post)))) | |
| 19 | 19 | `(entry |
| 20 | 20 | (title ,(post-title post)) |
| 21 | 21 | (link (@ (href ,url))) |
| 30 | 30 | |
| 31 | 31 | (define (atom-feed posts) |
| 32 | 32 | (let ((updated (date->tz (post-time (car posts))))) |
| 33 |
`(feed (@ (xmlns "http |
|
| 33 | `(feed (@ (xmlns "https://www.w3.org/2005/Atom")) | |
| 34 | 34 | (title "what happens when computer") |
| 35 |
(link (@ (href "http |
|
| 35 | (link (@ (href "https://what.happens.when.computer/feed.xml") | |
| 36 | 36 | (rel "self"))) |
| 37 |
(link (@ (href "http |
|
| 37 | (link (@ (href "https://what.happens.when.computer/"))) | |
| 38 | 38 | (updated ,updated) |
| 39 |
(id "http |
|
| 39 | (id "https://what.happens.when.computer/") | |
| 40 | 40 | ,(map (lambda (post) (atom-element post)) posts)))) |
| 41 | 41 | |
| 42 | 42 | ;; the scss stylesheet |
| 210 | 210 | (meta (@ (property "og:title") |
| 211 | 211 | (content ,(++ "what happens when computer: " title)))) |
| 212 | 212 | (meta (@ (property "og:url") |
| 213 |
(content ,(++ "http |
|
| 213 | (content ,(++ "https://what.happens.when.computer" url)))) | |
| 214 | 214 | (meta (@ (property "og:image") |
| 215 |
(content "http |
|
| 215 | (content "https://what.happens.when.computer/static/when-computer.png"))) | |
| 216 | 216 | (meta (@ (property "og:type") |
| 217 | 217 | (content "website"))) |
| 218 | 218 | (link (@ (href "/feed.xml") |
| 221 | 221 | (title "what happens when computer atom feed"))) |
| 222 | 222 | (link (@ (rel "icon") |
| 223 | 223 | (type "image/png") |
| 224 |
(href "http |
|
| 224 | (href "https://what.happens.when.computer/static/when-computer-icon.png"))) | |
| 225 | 225 | (style (@ (type "text/css")) ,(scss->css stylesheet)) |
| 226 | 226 | (script (@ (type "text/javascript") |
| 227 | 227 | (src "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML")) "") |