Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added code of conduct page #148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions content/codeofconduct/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
+++
template = "codeofconduct.html"
+++
44 changes: 44 additions & 0 deletions templates/codeofconduct.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% extends "base.html" %}

{% import "macros.html" as macros %}

{% block head %}
<!-- Standard Metadata -->
<title>Embark Studios Open Source Newsletter | embark.dev</title>
<meta name="description"
content="Stay up to date with new open source projects and developer events from Embark with our developer newsletter">
<meta name="keywords" content="open source, sponsorship, rust, newsletter">

<!-- Open Graph Metadata -->
<meta property="og:title" content="Embark Studios Open Source Code Of Conduct" />
<meta property="og:description"
content="Contributor Covenant Code of Conduct" />

<!-- markdown-it -->
<script src="https://cdn.jsdelivr.net/npm/markdown-it/dist/markdown-it.min.js"></script>
{% endblock head %}

{% block content %}
<script>
document.addEventListener("DOMContentLoaded", function() {
fetch('../CODE_OF_CONDUCT.md')
.then((response) => response.text())
.then((text) => {
const md = window.markdownit();
document.getElementById('output').innerHTML = md.render(text);
});
});
</script>
<section class="full-width-section cover">
<div class="container">
<a href="/#contribute">
<h1>
<i class="fa fa-long-arrow-left"></i>Back
</h1>
</a>
</div>
</section>
<section>
<div class="container" id="output"></div>
</section>
{% endblock content %}
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h1>
goal of empowering everyone to create.</p>
<p>If you have any difficulties getting involved or finding answers to your questions, please don't hesitate to
ask your questions in our <a href="https://discord.com/invite/8TW9nfF">discord</a> channel.</p>
<a href="{{ config.extra.embark_github_url }}opensource-website/blob/main/CODE_OF_CONDUCT.md">
<a href="/codeofconduct">
<h3>Read our Code of Conduct →</h3>
</a>
<a href="https://github.com/search?q=user:EmbarkStudios+state:open">
Expand Down