diff --git a/SiteGenerator/Sources/SiteGenerator/Posts/PostsPlugin.swift b/SiteGenerator/Sources/SiteGenerator/Posts/PostsPlugin.swift
index 415b670..829b1ef 100644
--- a/SiteGenerator/Sources/SiteGenerator/Posts/PostsPlugin.swift
+++ b/SiteGenerator/Sources/SiteGenerator/Posts/PostsPlugin.swift
@@ -128,17 +128,12 @@ final class PostsPlugin: Plugin {
try fileManager.createDirectory(at: monthDir, withIntermediateDirectories: true, attributes: nil)
let filename = "\(post.slug).html"
let postURL = monthDir.appendingPathComponent(filename)
- let templateName = self.templateName(for: post)
let bodyHTML = markdownParser.html(from: post.bodyMarkdown)
let renderedPost = RenderedPost(post: post, body: bodyHTML)
- let postHTML = try templateRenderer.renderTemplate(name: templateName, context: ["post": renderedPost.dictionary])
+ let postHTML = try templateRenderer.renderTemplate(name: "post", context: ["post": renderedPost.dictionary])
try postHTML.write(to: postURL, atomically: true, encoding: .utf8)
}
- private func templateName(for post: Post) -> String {
- post.isLink ? "post-link" : "post-text"
- }
-
private func enumerateMarkdownFiles(directory: URL) throws -> [URL] {
return try fileManager.contentsOfDirectory(atPath: directory.path).flatMap { (filename: String) -> [URL] in
let fileURL = directory.appendingPathComponent(filename)
diff --git a/templates/misc-PROJECT??.html b/templates/misc-PROJECT??.html
deleted file mode 100644
index 3f3c94c..0000000
--- a/templates/misc-PROJECT??.html
+++ /dev/null
@@ -1,34 +0,0 @@
-HANDLED {% if post.link %} -%>
- → <%= post.title %>
-
- ∞
-
-
-
-
-
-