Overview
| Comment: | First attempt at hiding redundant series info on series pages |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8ab2075d1984fd35523f07f2b4d62132 |
| User & Date: | joel on 2019-04-12 02:33:04 |
| Other Links: | manifest | tags |
Context
|
2019-04-12
| ||
| 03:00 | Process footnote blocks in the same way as the rest of the document. Fixes [d836105a] check-in: e780afcd user: joel tags: trunk | |
| 02:33 | First attempt at hiding redundant series info on series pages check-in: 8ab2075d user: joel tags: trunk | |
|
2019-04-11
| ||
| 22:39 | Fix for layout bug preventing some permlinks from being unclickable check-in: 4d2683da user: joel tags: trunk | |
Changes
Modified code-docs/snippets-html.scrbl from [35495a0f] to [8b5eb568].
| ︙ | |||
54 55 56 57 58 59 60 | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | - + + + + |
@section{HTML Snippet functions}
@defproc[(html$-page-head [title (or/c string? #f) #f]) non-empty-string?]
Returns the @tt{<head>} section of an HTML document.
|
| ︙ |
Modified crystalize.rkt from [b9c0d03d] to [b88a4287].
| ︙ | |||
233 234 235 236 237 238 239 | 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | - + |
;; Convert a bunch of information about an article into some nice English and links.
(define (make-article-footertext pagenode series disposition disp-note-id note-count)
(define s-title (series-title))
(define s-noun (series-noun))
(define series-part
(cond [(non-empty-string? s-title)
|
| ︙ | |||
257 258 259 260 261 262 263 | 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | - + |
note-count)]
[(and (note-count . > . 0) (string=? disposition ""))
(format "There is <a href=\"/~a#furthernotes\">a note</a> appended."
pagenode)]
[else ""]))
(cond [(ormap non-empty-string? (list series-part disp-part notes-part))
|
| ︙ |
Modified series/template.html.p from [5863c80f] to [2bb23760].
1 2 3 4 5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | - + | <!DOCTYPE html> <html lang="en"> ◊html$-page-head[(select-from-metas 'title metas)] |
Modified snippets-html.rkt from [b2f8e39c] to [f7e3f3ed].
| ︙ | |||
46 47 48 49 50 51 52 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - - + + + |
◊string-append{<head>
<title>◊if[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>})
|
| ︙ |
Modified web-extra/martin.css.pp from [116a0622] to [dfbb1609].
| ︙ | |||
303 304 305 306 307 308 309 310 311 312 313 314 315 316 | 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | + + + + + |
font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on;
color: #888;
}
footer.article-info::before {
content: "☞\00a0";
}
/* Within article info, don’t display series info when on a series page (redundant) */
body.series-page .series-part {
display: none;
}
p.time::before {
content: none;
}
p.time {
font-size: ◊x-lineheight[0.75];
|
| ︙ |