mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-05 06:28:07 -06:00
[feature] Add meta robots tag; allow robots to index profile card if user is Discoverable (#842)
* rework robots.txt response * don't let robots snippet from statuses/threads * allow robots to index if user is Discoverable * add license text
This commit is contained in:
parent
938328cd07
commit
dd83ad053c
7 changed files with 79 additions and 7 deletions
|
|
@ -6,6 +6,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="{{ if .robotsMeta }}{{ .robotsMeta }}{{ else }}noindex, nofollow{{ end }}">
|
||||
{{ if .ogMeta }}{{ if .ogMeta.Locale }}<meta name="og:locale" content="{{ .ogMeta.Locale }}">
|
||||
{{ end }}<meta name="og:type" content="{{ .ogMeta.ResourceType }}">
|
||||
<meta name="og:title" content="{{ .ogMeta.Title }}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue