Updates
This commit is contained in:
@@ -30,7 +30,7 @@ class ContentItemPrototype:
|
||||
self.slug = md_file.stem
|
||||
self.data = frontmatter.load(md_file)
|
||||
self.html = markdown.markdown(self.data.content)
|
||||
self.preview = self.html[:300] + " <a href=" + f"{self.slug}.html" + ">...read more</a>"
|
||||
self.preview = self.html[:300] + "<a href=" + f"{self.slug}.html" + ">... read more</a>"
|
||||
self.title = self.data.get("title", self.slug)
|
||||
self.omit_second_title = self.data.get("omit_second_title", False)
|
||||
self.date = self.data.get("data", "2000-01-01T00:00:00+03:00")
|
||||
@@ -85,3 +85,6 @@ with (output_dir / "index.html").open("w", encoding="utf-8") as f:
|
||||
# Render the about file
|
||||
about_content = ContentItemPrototype(Path('static/about.md'))
|
||||
about_content.render_content()
|
||||
|
||||
# Move 'robots.txt' into output_dir
|
||||
shutil.copyfile(static_dir / 'robots.txt', output_dir / 'robots.txt')
|
||||
Reference in New Issue
Block a user