summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/template/header.tmpl1
-rw-r--r--web/template/profile.tmpl2
-rw-r--r--web/template/status.tmpl4
-rw-r--r--web/template/thread.tmpl2
4 files changed, 5 insertions, 4 deletions
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 @@
<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 }}">
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 @@
</div>
<h2 id="recent">Latest public toots</h2>
{{ if not .statuses }}
- <div class="nothinghere">Nothing here!</div>
+ <div data-nosnippet class="nothinghere">Nothing here!</div>
{{ else }}
<div class="thread">
{{ 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 @@
-<div class="contentgrid">
+<div data-nosnippet class="contentgrid">
<a href="{{.Account.URL}}" class="avatar"><img src="{{.Account.Avatar}}" alt=""></a>
<a href="{{.Account.URL}}" class="displayname">{{if .Account.DisplayName}}{{emojify .Account.Emojis (escape .Account.DisplayName)}}{{else}}{{.Account.Username}}{{end}}</a>
<a href="{{.Account.URL}}" class="username">@{{.Account.Acct}}</a>
@@ -52,4 +52,4 @@
<div id="favorites"><i aria-label="Favorites" class="fa fa-star"></i> {{.FavouritesCount}}</div>
</div>
</div>
-<a href="{{.URL}}" class="toot-link">View toot</a> \ No newline at end of file
+<a data-nosnippet href="{{.URL}}" class="toot-link">View toot</a> \ 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" .}}
<main>
- <div class="thread">
+ <div data-nosnippet class="thread">
{{range .context.Ancestors}}
<div class="toot">
{{ template "status.tmpl" .}}