summaryrefslogtreecommitdiff
path: root/src/components/templates/Search.astro
diff options
context:
space:
mode:
authorJoão Augusto Costa Branco Marado Torres <torres.dev@disroot.org>2025-07-06 22:27:04 -0300
committerJoão Augusto Costa Branco Marado Torres <torres.dev@disroot.org>2025-07-06 22:27:04 -0300
commit449f71511e539878af4c65f073cdc373b469c45e (patch)
tree6c264a77426284d97d1c9b9d7a27a6015c3077a8 /src/components/templates/Search.astro
parent4ae2b810b68538ba4c287b0c80d6c2e002fe9ddd (diff)
feat: more structured data
Signed-off-by: João Augusto Costa Branco Marado Torres <torres.dev@disroot.org>
Diffstat (limited to 'src/components/templates/Search.astro')
-rw-r--r--src/components/templates/Search.astro15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/components/templates/Search.astro b/src/components/templates/Search.astro
index 5245643..ae80d32 100644
--- a/src/components/templates/Search.astro
+++ b/src/components/templates/Search.astro
@@ -2,8 +2,16 @@
const { site } = Astro;
---
-<search>
- <link rel="dns-prefetch" href="https://www.google.com/search">
+<search
+ itemprop="potentialAction"
+ itemscope
+ itemtype="https://schema.org/SearchAction"
+>
+ <link
+ rel="dns-prefetch"
+ href="https://www.google.com/search"
+ itemprop="target"
+ >
<form
action="https://www.google.com/search"
target="_blank"
@@ -13,7 +21,7 @@ const { site } = Astro;
name="search"
>
<details>
- <summary>Pesquisar no website</summary>
+ <summary itemprop="description">Pesquisar no website</summary>
<div class="details">
<p>
<label>Barra de pesquisa <input
@@ -25,6 +33,7 @@ const { site } = Astro;
title={`"site:${site} " é usado para que os resultados da pesquisa fiquem restritos a este website`}
pattern={`site:${site} .+`}
size={`site:${site} .+`.length}
+ itemprop="query"
/></label>
</p>
<p class="mute">