Skip to content

Commit ad6d324

Browse files
authored
Merge pull request #15 from render-engine/11-add-about-page-with-history
add about and early history
2 parents 4d1f413 + 0d75cb7 commit ad6d324

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎app.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ class Index(Page):
4141
)
4242
]
4343

44+
@app.page
45+
class About(Page):
46+
template = "page.html"
47+
content_path = "content/about.md"
48+
Parser: type[BasePageParser] = MarkdownPageParser
49+
parser_extras: dict[str, list[str]] = {"markdown_extras": MD_EXTRAS}
50+
51+
4452

4553
@app.collection
4654
class News(Blog):

‎content/about.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: About Render Engine
3+
slug: about
4+
---
5+
6+
Render Engine is a static site generator inspired by modern web frameworks to show the speed and flexibility of static
7+
sites.
8+
9+
The project was created by Jay Miller for their personal website. Its original design was fewer than 200 lines of
10+
code. Jay continued to develop after failing to find a static site generator written purely in Python,
11+
technically simple enough for a beginner to contribute to, and actively being maintained.
12+
13+
The foundation of Render Engine is that a website (`Site`) is made up of (`Pages`), some that are similar in nature (`Collection`).

0 commit comments

Comments
 (0)