mirror of
https://github.com/cupcakearmy/blaze.git
synced 2024-12-22 08:16:26 +00:00
change div with article
This commit is contained in:
parent
c6eeccaf44
commit
900c16c0ea
4
index.ts
4
index.ts
@ -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 />
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user