Don't include comments on tutorial pages

This commit is contained in:
Shadowfacts 2019-08-17 15:02:10 -04:00
parent 8404479d91
commit 36c8598c3b
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
5 changed files with 19 additions and 4 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ built/
out/ out/
*.pem *.pem
*.db *.db
*.swp

View File

@ -28,7 +28,7 @@ async function generateTutorials(group: string): Promise<Page[]> {
page.text = markdown.render(page.text); page.text = markdown.render(page.text);
} }
const renderedText = await layout(page.text, page.metadata, page.metadata.layout || "article.html.ejs"); const renderedText = await layout(page.text, page.metadata, page.metadata.layout || "tutorial.html.ejs");
let dest = page.metadata.permalink; let dest = page.metadata.permalink;
if (dest.endsWith("/")) { if (dest.endsWith("/")) {

View File

@ -0,0 +1,14 @@
```
metadata.layout = "default.html.ejs"
```
<article itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<meta itemprop="mainEntityOfPage" content="https://shadowfacts.net<%= metadata.permalink %>">
<h1 class="article-title" itemprop="name headline">
<%= metadata.title %>
</h1>
<%- include("../includes/article-meta.html.ejs", { metadata }) %>
<div class="article-content" itemprop="articleBody">
<%- content %>
</div>
</article>