docs: add navigation links

This commit is contained in:
lowlighter
2022-04-24 11:50:11 -04:00
parent 4a3be3bdab
commit 8bc10f649b

View File

@@ -335,7 +335,7 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
//Header table
const header = [
"<table>",
` <tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>`,
' <tr><td colspan="2"><a href="/README.md#-plugins">← Back to plugins index</a></td></tr>',
` <tr><th colspan="2"><h3>${meta.name}</h3></th></tr>`,
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
meta.authors?.length ? `<tr><th>Authors</th><td>${[meta.authors].flat().map(author => `<a href="https://github.com/${author}">@${author}</a>`)}</td></tr>` : "",
@@ -463,7 +463,7 @@ metadata.template = async function({__templates, name, plugins}) {
//Header table
const header = [
"<table>",
` <tr><td colspan="2"><a href="/README.md#%EF%B8%8F-templates">← Back to templates index</a></td></tr>`,
' <tr><td colspan="2"><a href="/README.md#%EF%B8%8F-templates">← Back to templates index</a></td></tr>',
` <tr><th colspan="2"><h3>${meta.name ?? "(unnamed template)"}</h3></th></tr>`,
` <tr><td colspan="2" align="center">${marked.parse(meta.description ?? "", {silent: true})}</td></tr>`,
" <tr>",