Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _layouts/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h3>Quick link</h3>
<li><a href="/partnerships.html">Partnerships</a></li>
<li><a href="/community.html">Community</a></li>
<li><a href="/support.html">Support</a></li>
<li><a href="/coc.html">Code of Conduct</a></li>
</ul>
</div>
<!-- Contact Us Section -->
Expand Down
8 changes: 8 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ class Partnerships(Page):
data = json.loads(pathlib.Path("_data/partnerships.json").read_text())


@app.page
class CodeOfConduct(Page):
Parser = MarkdownPageParser
content_path = "pages/coc.md"
template = "default.html"
slug = "coc"


Comment on lines +70 to +77
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@app.page
class CodeOfConduct(Page):
Parser = MarkdownPageParser
content_path = "pages/coc.md"
template = "default.html"
slug = "coc"

We don't need to build the coc again because it's built in the pages collection.

@app.collection
class Pages(Collection):
Parser = MarkdownPageParser
Expand Down
Loading