SEO: custom share template (canonical, per-page OG, JSON-LD, robots), robots.txt, OG banner; generator sets shareOpenGraphURL; ignis module STEP example

This commit is contained in:
trilium-share-gruvbox
2026-08-28 16:54:32 +02:00
parent e13a5433d9
commit 71d6311e49
9 changed files with 416 additions and 5 deletions
+18
View File
@@ -0,0 +1,18 @@
<%
const strippedName = utils.stripTags(entry.name);
const slug = entry.slug ?? utils.slugify(strippedName);
%>
<li>
<a href="#<%= slug %>">
<span><%= strippedName %></span>
</a>
<% if (entry.children.length) { %>
<ul>
<% for (const subentry of entry.children) { %>
<%- include('toc_item', {entry: subentry}) %>
<% } %>
</ul>
<% } %>
</li>