fix: css resource build cache and icon tag aria-hidden attr

This commit is contained in:
Dillon 2022-06-05 23:34:47 +08:00
parent e13a4adb6a
commit 1be3b6d4c0
No known key found for this signature in database
GPG key ID: 0EF4AE57FB98F108
3 changed files with 13 additions and 13 deletions

View file

@ -51,16 +51,6 @@
}
.content {
.person-mention.h-card {
display: inline-block;
img {
vertical-align: -12%;
max-height: 1.1em;
margin-right: 0ex;
border-radius: 50%;
}
}
> h2 {
font-size: 1.5rem;
@ -316,6 +306,16 @@
height: 1.25em;
vertical-align: text-bottom;
}
.person-mention.h-card {
display: inline-block;
img {
vertical-align: -12%;
max-height: 1.1em;
margin-right: 0ex;
border-radius: 50%;
}
}
}
@import "../_partial/_single/footer";

View file

@ -4,7 +4,7 @@
{{- $n := .Nickname | default .Name | default .Email | default .URL | default "👀" -}}
<span class="h-card{{ with .Class }} {{ . }}{{- end -}}">
{{- with .URL -}}<a href="{{ . }}" class="u-url url"{{ with $rel }} rel="{{ . }}"{{- end -}}{{ with $text }} title="{{ . }}"{{ end }}>{{- else -}}{{- with .Email -}}<a href="mailto:{{ . }}" class="email"{{ with $text }} title="{{ . }}"{{ end }}>{{- end -}}{{- end -}}
{{- with .Image -}}<img class="u-photo photo" src="{{ . }}" alt="{{ $n }}">{{- else -}}<i class="far fa-user-circle"></i>{{ end -}}&#8201;
{{- with .Image -}}<img class="u-photo photo" src="{{ . }}" alt="{{ $n }}">{{- else -}}<i class="far fa-user-circle" aria-hidden="true"></i>{{ end -}}&#8201;
{{- with .Name -}}<span class="p-name fn">{{ . }}</span>{{ with $nick }} ({{- end -}}{{- end -}}
{{- with .Nickname -}}<span class="p-nickname nickname">{{ . }}</span>{{- end -}}
{{- with .Name -}}{{ with $nick }}){{- end -}}{{- end -}}

File diff suppressed because one or more lines are too long