forked from shadowfacts/shadowfacts.net
Don't include comments on tutorial pages
This commit is contained in:
parent
8404479d91
commit
36c8598c3b
|
@ -4,3 +4,4 @@ built/
|
|||
out/
|
||||
*.pem
|
||||
*.db
|
||||
*.swp
|
||||
|
|
|
@ -46,4 +46,4 @@ export default async function posts(): Promise<Page[]> {
|
|||
}
|
||||
|
||||
return posts;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ async function generateTutorials(group: string): Promise<Page[]> {
|
|||
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;
|
||||
if (dest.endsWith("/")) {
|
||||
|
@ -109,4 +109,4 @@ export default async function tutorials(): Promise<TutorialSeries[]> {
|
|||
generateIndex(series);
|
||||
|
||||
return series;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,4 @@ metadata.layout = "default.html.ejs"
|
|||
<script>
|
||||
const permalink = "<%= metadata.permalink %>";
|
||||
</script>
|
||||
<script src="/js/comments.js" async></script>
|
||||
<script src="/js/comments.js" async></script>
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue