Skip to content

Commit 7314828

Browse files
dd explicit Code of Conduct page route and footer link
1 parent 21efbdf commit 7314828

File tree

3 files changed

+120
-2
lines changed

3 files changed

+120
-2
lines changed

_layouts/_includes/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ <h3>Quick link</h3>
1616
<li><a href="/partnerships.html">Partnerships</a></li>
1717
<li><a href="/community.html">Community</a></li>
1818
<li><a href="/support.html">Support</a></li>
19+
<li><a href="/coc.html">Code of Conduct</a></li>
1920
</ul>
2021
</div>
2122
<!-- Contact Us Section -->

app.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ class Partnerships(Page):
6767
data = json.loads(pathlib.Path("_data/partnerships.json").read_text())
6868

6969

70+
@app.page
71+
class CodeOfConduct(Page):
72+
Parser = MarkdownPageParser
73+
content_path = "pages/coc.md"
74+
template = "default.html"
75+
slug = "coc"
76+
77+
7078
@app.collection
7179
class Pages(Collection):
7280
Parser = MarkdownPageParser

0 commit comments

Comments
 (0)