From dd83ad053c0cde5b948cbfe34ec4864cf0a123e3 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 29 Sep 2022 12:03:17 +0200 Subject: [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 --- web/template/header.tmpl | 1 + web/template/profile.tmpl | 2 +- web/template/status.tmpl | 4 ++-- web/template/thread.tmpl | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'web/template') diff --git a/web/template/header.tmpl b/web/template/header.tmpl index 560b10f19..f1cfec026 100644 --- a/web/template/header.tmpl +++ b/web/template/header.tmpl @@ -6,6 +6,7 @@ + {{ if .ogMeta }}{{ if .ogMeta.Locale }} {{ end }} diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index 9838e5b30..4c348d028 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -29,7 +29,7 @@

Latest public toots

{{ if not .statuses }} -
Nothing here!
+
Nothing here!
{{ else }}
{{ range .statuses }} diff --git a/web/template/status.tmpl b/web/template/status.tmpl index 73e7d1b03..5136b6ad7 100644 --- a/web/template/status.tmpl +++ b/web/template/status.tmpl @@ -1,4 +1,4 @@ -
+
-View toot \ No newline at end of file +View toot \ No newline at end of file diff --git a/web/template/thread.tmpl b/web/template/thread.tmpl index d0f003b91..334bd8a9f 100644 --- a/web/template/thread.tmpl +++ b/web/template/thread.tmpl @@ -1,6 +1,6 @@ {{ template "header.tmpl" .}}
-
+
{{range .context.Ancestors}}
{{ template "status.tmpl" .}} -- cgit v1.3