chore(share): use rendered template (missing include)

This commit is contained in:
Elian Doran
2025-06-09 11:12:02 +03:00
parent 2d3265136d
commit d6bb790e26
2 changed files with 7 additions and 23 deletions

View File

@@ -1,5 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<%
const { note, subRoot, assetPath, appPath } = locals;
let content = locals.content;
%>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -56,9 +60,6 @@ const customServerYml = `- url: "{protocol}://{domain}:{port}/etapi"
<% if (note.hasLabel("shareDisallowRobotIndexing")) { %>
<meta name="robots" content="noindex,follow" />
<% } %>
<style>
<%- shareThemeCss %>
</style>
<%
const pageTitle = `${note.title}${note.noteId !== subRoot.note.noteId ? ` - ${subRoot.note.title}` : ""}`;