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
|
;; Provides functions for displaying content in HTML templates.
(require pollen/core
"dates.rkt")
(provide (all-defined-out))
(define (ht-head [title #f])
◊@{<head>
<title>The Local Yarn◊when/splice[title]{: ◊title}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/web-extra/martin.css">
</head>})
(define (ht-page-top)
◊@{<body><main>
<a href="/"><header>
<img src="/web-extra/logo.png" height="103" width="129" class="logo">
<h1>The Local Yarn</h1>
</header></a>})
(define (ht-article-header)
(define title (select-from-metas 'title (current-metas)))
(define published (select-from-metas 'published (current-metas)))
(cond
[title
◊@{<article class="with-title hentry">
<h1 class="entry-title">◊|title|</h1>
<p class="time"><a href="#" class="rel-bookmark">
<time datetime="◊published" class="published">◊ymd->english[published]</time>
</a></p>
<section class="entry-content">}]
[else
◊@{<article class="no-title hentry">
<h1><a href="#" class="rel-bookmark">
<time datetime="◊published" class="entry-title">◊ymd->english[published]</time>
</a></h1>
<section class="entry-content">}]))
(define (ht-article-footer)
◊@{</section>
<footer class="article-info"><span class="x">(</span>Part of ‘Talking About Poetry’. Once I threw a mudball at a birdhouse. I’m not exactly proud of it, though.<span class="x">)</span></footer>
</article>})
(define (ht-page-bottom)
◊@{<footer>By Joel Dueck</footer>
</main></body>})
|
|
|
|
|
|
|
|
|
>
|
|
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
|
;; Provides functions for displaying content in HTML templates.
(require pollen/core
"dates.rkt")
(provide (all-defined-out))
(define (html-head [title #f])
◊@{<head>
<title>The Local Yarn◊when/splice[title]{: ◊title}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/web-extra/martin.css">
</head>})
(define (html-page-top)
◊@{<body><main>
<a href="/"><header>
<img src="/web-extra/logo.png" height="103" width="129" class="logo">
<h1>The Local Yarn</h1>
</header></a>})
(define (html-article-header)
(define title (select-from-metas 'title (current-metas)))
(define published (select-from-metas 'published (current-metas)))
(cond
[title
◊string-append{<article class="with-title hentry">
<h1 class="entry-title">◊|title|</h1>
<p class="time"><a href="#" class="rel-bookmark">
<time datetime="◊published" class="published">◊ymd->english[published]</time>
</a></p>
<section class="entry-content">}]
[else
◊string-append{<article class="no-title hentry">
<h1><a href="#" class="rel-bookmark">
<time datetime="◊published" class="entry-title">◊ymd->english[published]</time>
</a></h1>
<section class="entry-content">}]))
(define (html-article-footer)
◊string-append{</section>
<footer class="article-info"><span class="x">(</span>Part of ‘Talking About Poetry’. Once I threw a mudball at a birdhouse. I’m not exactly proud of it, though.<span class="x">)</span></footer>
</article>})
(define (html-page-bottom)
◊@{<footer>By Joel Dueck</footer>
</main></body>})
|