Create code of conduct
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Aditya Thakral 2021-08-22 23:39:10 -04:00
parent 96d2a95e20
commit 02521fb509
4 changed files with 39 additions and 1 deletions

View File

@ -1 +0,0 @@
# Code of Conduct page

View File

@ -0,0 +1,14 @@
import path from "path";
import { createReadAllPage } from "@/components/OrganizedContent/ReadAll";
import { createReadAllGetStaticProps } from "@/components/OrganizedContent/static";
export const CODE_OF_CONDUCT_PAGE = path.join("about", "code-of-conduct");
export default createReadAllPage({
title: "Code of Conduct",
image: "images/code-of-conduct.svg",
pagePath: CODE_OF_CONDUCT_PAGE,
});
export const getStaticProps = createReadAllGetStaticProps(CODE_OF_CONDUCT_PAGE);

View File

@ -0,0 +1,16 @@
import { createSectionPage } from "@/components/OrganizedContent/Section";
import {
createSectionGetStaticPaths,
createSectionGetStaticProps,
} from "@/components/OrganizedContent/static";
import { CODE_OF_CONDUCT_PAGE } from "../code-of-conduct";
export default createSectionPage({
title: "Code of Conduct",
image: "images/code-of-conduct.svg",
pagePath: CODE_OF_CONDUCT_PAGE,
});
export const getStaticProps = createSectionGetStaticProps(CODE_OF_CONDUCT_PAGE);
export const getStaticPaths = createSectionGetStaticPaths(CODE_OF_CONDUCT_PAGE);

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 62 KiB