mirror of
https://github.com/cupcakearmy/blaze.git
synced 2024-12-22 08:16:26 +00:00
Add hostname to serp
This commit is contained in:
parent
481880b09a
commit
683258492c
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"/> <link rel="icon" type="image/x-icon" href="/favicon.ico"> <meta name="viewport" content="width=device-width,initial-scale=1"/> <title>Blaze</title> <style>body{text-align: center; display: flex; align-items: center; justify-content: center; height: 100dvh; margin: 0; padding: 0; flex-direction: column;}section, footer{margin-top: auto;}</style> </head> <body> <section> <h1>Blaze</h1> <input name="u" id="u" type="text" placeholder="Search something..."/><br/><br/><button> BLAZE IT! </button> </section> <footer> <a href="/info">What is this?</a> </footer> <script>const DEV=1,e=DEV?"http://localhost:8888":"https://blaze.cyclic.app",t=document.querySelector("button"),c=document.querySelector("input");t.addEventListener("click",(()=>{location.href=`${e}?q=${encodeURI(c.value)}`})); </script> </body></html>
|
||||
<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"/> <link rel="icon" type="image/x-icon" href="/favicon.ico"> <meta name="viewport" content="width=device-width,initial-scale=1"/> <title>Blaze</title> <style>body{text-align: center; display: flex; align-items: center; justify-content: center; height: 100dvh; margin: 0; padding: 0; flex-direction: column;}section, footer{margin-top: auto;}</style> </head> <body> <section> <h1>Blaze</h1> <input name="u" id="u" type="text" placeholder="Search something..."/><br/><br/><button> BLAZE IT! </button> </section> <footer> <a href="/info">What is this?</a> </footer> <script>const DEV=0,e=DEV?"http://localhost:8888":"https://blaze.cyclic.app",t=document.querySelector("button"),c=document.querySelector("input");t.addEventListener("click",(()=>{location.href=`${e}?q=${encodeURI(c.value)}`})); </script> </body></html>
|
5
index.ts
5
index.ts
@ -45,6 +45,7 @@ app.get("/", async (req, res) => {
|
||||
results.push(`
|
||||
<div>
|
||||
<h2>${result.title}</h2>
|
||||
<span>${result.meta_url.hostname}</span>
|
||||
<a href="https://blaze.cyclic.app/blazed?url=${result.url}">
|
||||
<p>${result.description}</p>
|
||||
</a>
|
||||
@ -57,6 +58,10 @@ app.get("/", async (req, res) => {
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Blaze The Page</title>
|
||||
<style>
|
||||
h2 {margin-bottom:0}
|
||||
span {font-size: .9rem}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
${results.join("")}
|
||||
|
Loading…
Reference in New Issue
Block a user