refactor: auto format

This commit is contained in:
Aaron Yarborough 2025-03-09 15:32:18 +00:00
parent 934011b72f
commit 89145ceca8
11 changed files with 47 additions and 47 deletions

View file

@ -24,7 +24,6 @@ function Footer() {
</div>
</nav>
</footer>
)
}

View file

@ -17,14 +17,16 @@ function Resume({
<li key={e.position}>
<a href={'#' + e.position}>{e.position}</a>
</li>
)}</ol></li>
)}
</ol>
</li>
<li><a href='#competencies'>Competencies</a></li>
<li><a href='#competencies'>Certifications</a></li>
<li><a href='#languages'>Languages</a></li>
<li><a href='#education'>Education</a></li>
</ol>
<div>
<h2 id="experience">Professional experience</h2>
<h2 id='experience'>Professional experience</h2>
{experience.map((exp, i) => (
<WorkExperience
@ -39,14 +41,14 @@ function Resume({
))}
</div>
<div className='sidebar'>
<h2 id="competencies">Competencies</h2>
<h2 id='competencies'>Competencies</h2>
<ul>
{competencies.sort().map((c, i) => (
<li key={i}>{c}</li>
))}
</ul>
<h2 id="certifications">Certifications</h2>
<h2 id='certifications'>Certifications</h2>
<ul>
{certifications.sort().map((c, i) => (
<li key={i}>{c}</li>
@ -70,7 +72,7 @@ function Resume({
)
}
export default Resume;
export default Resume
function WorkExperience ({ position, employer, start, end, children }) {
return (

View file

@ -1,5 +1,5 @@
import { formatDate } from "@/lib/helpers";
import Link from "next/link";
import { formatDate } from '@/lib/helpers'
import Link from 'next/link'
export default function StaticContentList ({ entries, urlPrefix }) {
return (

View file

@ -53,10 +53,10 @@ export function getStaticEntryProps (contentPath, { params }) {
}
export function getStaticEntries (contentPath) {
const directoryItems = fs.readdirSync(contentPath, { withFileTypes: true });
const directoryItems = fs.readdirSync(contentPath, { withFileTypes: true })
return directoryItems.map((dirent) =>
getMarkdownEntry(`${dirent.path}/${dirent.name}`)
).sort((a, b) =>
new Date(b.attributes.pubdate).getTime() - new Date(a.attributes.pubdate).getTime()
);
)
}

View file

@ -4,7 +4,7 @@ export default function Document () {
return (
<Html lang='en'>
<Head>
<link rel="stylesheet" href="https://neat.joeldare.com/neat.css"/>
<link rel='stylesheet' href='https://neat.joeldare.com/neat.css' />
</Head>
<body>
<Main />

View file

@ -1,5 +1,5 @@
import ExternalLink from "@/components/ExternalLink/ExternalLink";
import DefaultLayout from "@/layouts/DefaultLayout/DefaultLayout";
import ExternalLink from '@/components/ExternalLink/ExternalLink'
import DefaultLayout from '@/layouts/DefaultLayout/DefaultLayout'
export default function About () {
return (

View file

@ -20,7 +20,7 @@ function ResumePage ({
<NextSeo
title={Title} openGraph={
{
title: Title,
title: Title
}
}
/>

View file

@ -7,7 +7,7 @@ import { getStaticEntries } from '@/lib/content'
export const getStaticProps = () => ({
props: {
postEntries: getStaticEntries("content/writing")
postEntries: getStaticEntries('content/writing')
}
})
@ -33,7 +33,7 @@ export default function Home({ postEntries }) {
<section>
<h2>Recent posts</h2>
<StaticContentList entries={postEntries} urlPrefix={"writing/"} />
<StaticContentList entries={postEntries} urlPrefix='writing/' />
</section>
</DefaultLayout>

View file

@ -6,28 +6,27 @@ import StaticContentList from '@/components/StaticContentList/StaticContentList'
export const getStaticProps = () => ({
props: {
postEntries: getStaticEntries("./content/writing")
postEntries: getStaticEntries('./content/writing')
}
})
export const Title = 'Writing'
export default function Writing ({ postEntries }) {
return (
<DefaultLayout>
<NextSeo
title={Title}
openGraph={
{
title: Title,
title: Title
}
}
/>
<h1>{Title}</h1>
<section>
<StaticContentList entries={postEntries} urlPrefix={'writing/'} />
<StaticContentList entries={postEntries} urlPrefix='writing/' />
</section>
</DefaultLayout>
)