change div with article

This commit is contained in:
Danny Spina 2023-06-20 09:45:18 +02:00
parent c6eeccaf44
commit 900c16c0ea

View File

@ -46,13 +46,13 @@ app.get("/", async (req, res) => {
// @ts-ignore // @ts-ignore
response.web.results.forEach((result) => { response.web.results.forEach((result) => {
results.push(` results.push(`
<div> <article>
<a href="${url}?url=${result.url}"> <a href="${url}?url=${result.url}">
<h2>${result.title}</h2> <h2>${result.title}</h2>
</a> </a>
<span>${result.meta_url.hostname}</span> <span>${result.meta_url.hostname}</span>
<p>${result.description}</p> <p>${result.description}</p>
</div> </article>
<hr /> <hr />
`); `);
}); });