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;
|
||||
} else {
|
||||
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 {
|
||||
color: var(--link);
|
||||
}
|
||||
|
@ -11,6 +11,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="menu">
|
||||
<a href="/">Home</a>
|
||||
<a href="<%= remoteUrl %>">Original page</a>
|
||||
</div>
|
||||
<div class="title">
|
||||
<%= parsed.title %>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user