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:
@@ -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>
|
||||
Reference in New Issue
Block a user