mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Make webmentions a <dl>, don't translate code
This commit is contained in:
parent
1b5062d090
commit
a0644d74c3
5 changed files with 11 additions and 8 deletions
|
@ -41,7 +41,7 @@
|
||||||
@media (prefers-contrast: less) {
|
@media (prefers-contrast: less) {
|
||||||
/* stylelint-enable */
|
/* stylelint-enable */
|
||||||
html {
|
html {
|
||||||
background-color: #222;
|
background-color: #333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,11 +72,12 @@ html {
|
||||||
* Typically meets SC 1.4.8, plus or minus a few characters. */
|
* Typically meets SC 1.4.8, plus or minus a few characters. */
|
||||||
div[itemprop="articleBody"] {
|
div[itemprop="articleBody"] {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 36em;
|
max-width: 35em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Compensate for misalignment and wasted space caused by padding
|
/* Compensate for misalignment and wasted space caused by padding
|
||||||
* and margin adjustments in nav children made to meet SC 2.5.5 */
|
* and margin adjustments in nav children made to meet SC 2.5.5 */
|
||||||
|
dt > a,
|
||||||
header > nav,
|
header > nav,
|
||||||
footer > nav,
|
footer > nav,
|
||||||
h2 + a {
|
h2 + a {
|
||||||
|
@ -118,6 +119,8 @@ html {
|
||||||
* links that should be easy to fat-finger
|
* links that should be easy to fat-finger
|
||||||
* - links that directly follow h2 without being contained in a
|
* - links that directly follow h2 without being contained in a
|
||||||
* paragraph are section permalinks. */
|
* paragraph are section permalinks. */
|
||||||
|
dt,
|
||||||
|
dt > a,
|
||||||
summary,
|
summary,
|
||||||
h2 + a,
|
h2 + a,
|
||||||
li > a {
|
li > a {
|
||||||
|
@ -243,7 +246,7 @@ span[hidden] {
|
||||||
* viewport, triggering horizontal scrolling. Allow breaking words in
|
* viewport, triggering horizontal scrolling. Allow breaking words in
|
||||||
* content I don't control (comments, names). For content I do control,
|
* content I don't control (comments, names). For content I do control,
|
||||||
* I just add soft hyphens to the HTML. */
|
* I just add soft hyphens to the HTML. */
|
||||||
li[itemprop="comment"],
|
div[itemprop="comment"],
|
||||||
:not(pre) > code,
|
:not(pre) > code,
|
||||||
:not(pre) > samp,
|
:not(pre) > samp,
|
||||||
span[itemtype="https://schema.org/Person"] {
|
span[itemtype="https://schema.org/Person"] {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
article summary,
|
article summary,
|
||||||
/* Currently only used for in-page heading anchors,
|
/* Currently only used for in-page heading anchors,
|
||||||
* useless in printouts. */
|
* useless in printouts. */
|
||||||
span[aria-hidden],
|
h2 + a,
|
||||||
/* You can't navigate in a printout. */
|
/* You can't navigate in a printout. */
|
||||||
footer nav,
|
footer nav,
|
||||||
nav a:not([rel="home"]) span {
|
nav a:not([rel="home"]) span {
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<pre tabindex="0">
|
<pre tabindex="0">
|
||||||
{{- if $samp -}}
|
{{- if $samp -}}
|
||||||
<samp itemprop="text">
|
<samp translate="no" itemprop="text">
|
||||||
{{- $contents | safeHTML -}}
|
{{- $contents | safeHTML -}}
|
||||||
</samp>
|
</samp>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<code itemprop="text">
|
<code translate="no" itemprop="text">
|
||||||
{{- $contents | safeHTML -}}
|
{{- $contents | safeHTML -}}
|
||||||
</code>
|
</code>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
{{ dateFormat "2006-01-02" $webmention.created_at }}
|
{{ dateFormat "2006-01-02" $webmention.created_at }}
|
||||||
</time>
|
</time>
|
||||||
</dt>
|
</dt>
|
||||||
<dd><p>
|
<dd>
|
||||||
{{ if (eq $webmention.type "like") -}}
|
{{ if (eq $webmention.type "like") -}}
|
||||||
{{ if $webmention.author_name -}}
|
{{ if $webmention.author_name -}}
|
||||||
<span itemprop="agent" itemscope itemtype="https://schema.org/Person" class="h-card p-author vcard"><span itemprop="name" class="p-name fn n">{{ $webmention.author_name }}</span></span>
|
<span itemprop="agent" itemscope itemtype="https://schema.org/Person" class="h-card p-author vcard"><span itemprop="name" class="p-name fn n">{{ $webmention.author_name }}</span></span>
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
by <span itemprop="author" itemscope itemtype="https://schema.org/Person" class="h-card p-author vcard"><span itemprop="name" class="p-name fn n">{{ $webmention.author_name }}</span></span>
|
by <span itemprop="author" itemscope itemtype="https://schema.org/Person" class="h-card p-author vcard"><span itemprop="name" class="p-name fn n">{{ $webmention.author_name }}</span></span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</p></dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
<dt>Nothing here</dt>
|
<dt>Nothing here</dt>
|
||||||
|
|
Loading…
Reference in a new issue