Menu in /get
This commit is contained in:
parent
3b82b1232b
commit
22b8af4012
@ -38,7 +38,7 @@ export default async function getRoute(fastify: FastifyInstance) {
|
|||||||
return parsed.textContent;
|
return parsed.textContent;
|
||||||
} else {
|
} else {
|
||||||
reply.type("text/html; charset=utf-8");
|
reply.type("text/html; charset=utf-8");
|
||||||
return reply.view("/templates/get.ejs", { parsed: parsed });
|
return reply.view("/templates/get.ejs", { parsed, remoteUrl });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
.menu {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
column-gap: 1rem;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--link);
|
color: var(--link);
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
|
<div class="menu">
|
||||||
|
<a href="/">Home</a>
|
||||||
|
<a href="<%= remoteUrl %>">Original page</a>
|
||||||
|
</div>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<%= parsed.title %>
|
<%= parsed.title %>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user