Avoid to provide search engines with a preview of the notes

This commit is contained in:
Daniele Tonon
2024-01-29 17:22:00 +01:00
parent b551f30efb
commit 80c82df716

View File

@@ -129,7 +129,14 @@ templ profileTemplate(params ProfilePageParams) {
}
@detailsTemplate(params.Details)
<div
_={ "init fetch '?just-last-notes=true' then put the result into me end" }
_="init if navigator's userAgent contains 'Googlebot' or
navigator's userAgent contains 'bingbot' or
navigator's userAgent contains 'DuckDuckBot' or
navigator's userAgent contains 'Baiduspider'
// It is not necessary to provide search engines with a preview of the notes
else
fetch '?just-last-notes=true' then put the result into me end
end"
>
if len(params.LastNotes) != 0 {
<aside>