diff options
| author | 2025-03-01 13:06:08 +0100 | |
|---|---|---|
| committer | 2025-03-01 13:06:08 +0100 | |
| commit | e78e817057e01ce0cd2e3d532e4ca9ded8b88b73 (patch) | |
| tree | e09ceb6d17ed8360447e93c8d39f09fbd3f93d4c /web/template/status_header.tmpl | |
| parent | [chore]: Bump github.com/go-jose/go-jose/v4 from 4.0.2 to 4.0.5 (#3831) (diff) | |
| download | gotosocial-e78e817057e01ce0cd2e3d532e4ca9ded8b88b73.tar.xz | |
[feature] add microformat support (#3848)
Related: #2959
Signed-off-by: Luca Matei Pintilie <luca@lucamatei.com>
Diffstat (limited to 'web/template/status_header.tmpl')
| -rw-r--r-- | web/template/status_header.tmpl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/template/status_header.tmpl b/web/template/status_header.tmpl index 01b73aea0..630322872 100644 --- a/web/template/status_header.tmpl +++ b/web/template/status_header.tmpl @@ -18,18 +18,20 @@ */ -}} {{- with .Account }} -<address> +<address class="p-author h-card"> {{- if $.Local }} <a href="{{- .URL -}}" rel="author" title="Open profile" + class="u-url u-uid" > {{- else }} <a href="{{- .URL -}}" rel="author nofollow noreferrer noopener" target="_blank" title="Open remote profile (opens in a new window)" + class="u-url u-uid" > {{- end }} <picture @@ -47,10 +49,11 @@ src="{{- .Avatar -}}" alt="Avatar for {{ .Username -}}" title="Avatar for {{ .Username -}}" + class="u-photo" > </picture> <div class="author-strap"> - <span class="displayname text-cutoff"> + <span class="displayname text-cutoff p-name"> {{- if .DisplayName -}} {{- emojify .Emojis (escape .DisplayName) -}} {{- else -}} @@ -58,7 +61,7 @@ {{- end -}} </span> <span class="sr-only">,</span> - <span class="username text-cutoff">@{{- .Acct -}}</span> + <span class="username text-cutoff p-nickname">@{{- .Acct -}}</span> </div> <span class="sr-only">(open profile)</span> </a> |
