Overview
| Comment: | Make note author bylines italic |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
6069a3203aec8953b8de97844ab6fc06 |
| User & Date: | joel on 2018-09-26 02:57:09 |
| Other Links: | manifest | tags |
Context
|
2018-09-26
| ||
| 03:39 | Fix styles for note permlinks in individual article pages check-in: 8e848ec1 user: joel tags: trunk | |
| 02:57 | Make note author bylines italic check-in: 6069a320 user: joel tags: trunk | |
| 01:00 | Additional CSS styles for block-quotes. Omit article footer tag when no footer text is present. check-in: 3911576e user: joel tags: trunk | |
Changes
Modified template-html.rkt from [18aa6a0e] to [f7768941].
| ︙ | ︙ | |||
112 113 114 115 116 117 118 |
(string-append* (map ->html body-elems)))
(define (html$-note-listing-full pagenode note-id title-html-flow date contents [author default-authorname] [author-url ""])
(define author-part
(cond [(non-empty-string? author-url)
◊string-append{
<div class="note-meta">
| | | | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
(string-append* (map ->html body-elems)))
(define (html$-note-listing-full pagenode note-id title-html-flow date contents [author default-authorname] [author-url ""])
(define author-part
(cond [(non-empty-string? author-url)
◊string-append{
<div class="note-meta">
—<a class="u-author h-card" href="◊|author-url|"><i>◊|author|</i></a>
</div>}]
[else ◊string-append{
<div class="note-meta">
—<span class="h-card"><i>◊|author|</i></span>
</div>}]))
(define maybe-author-class?
(cond [(string=? author default-authorname) "by-proprietor"]
[else ""]))
◊string-append{
<article class="with-title ◊maybe-author-class? hentry">
|
| ︙ | ︙ | |||
146 147 148 149 150 151 152 |
◊string-append{<div class="note ◊maybe-author-class? u-comment" id="◊|id|">
<h3><a href="#◊|id|"><time class="dt-published" datetime="◊date">◊ymd->english[date]</time>
</a></h3>
<div class="p-content p-name">
◊contents
</div>
<div class="note-meta">
| | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
◊string-append{<div class="note ◊maybe-author-class? u-comment" id="◊|id|">
<h3><a href="#◊|id|"><time class="dt-published" datetime="◊date">◊ymd->english[date]</time>
</a></h3>
<div class="p-content p-name">
◊contents
</div>
<div class="note-meta">
—<a class="u-author h-card" href="◊|author-url|"><i>◊|author|</i></a>
</div>
</div>})
(define (html$-notes-section note-htmls)
◊string-append{<div class="further-notes" id="furthernotes">
<h2>Further Notes</h2>
◊(apply string-append note-htmls)
</div>})
|
Modified web-extra/martin.css.pp from [2c3ce09a] to [8449f20b].
| ︙ | ︙ | |||
489 490 491 492 493 494 495 |
font-size: 1rem;
font-weight: normal;
font-style: italic;
}
div.note-meta {
margin-top: ◊x-lineheight[1];
| < > | 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 |
font-size: 1rem;
font-weight: normal;
font-style: italic;
}
div.note-meta {
margin-top: ◊x-lineheight[1];
color: #888;
font-size: 1.2rem;
}
.by-proprietor .note-meta {
display: none;
}
div.note + div.note {
|
| ︙ | ︙ |