Skip to content

Commit 82641df

Browse files
ashleywolfCopilot
andcommitted
Clean up: remove yarn.lock, fix warnings, update configs and archives
- Remove yarn.lock (project uses npm) - Remove smoothscroll-polyfill (unnecessary in modern browsers) - Fix next.config.js: add outputFileTracingRoot - Fix package.json: start script uses serve for static export - Fix all title tag warnings across 11 pages (template literals) - Fix img lint warnings in Offers.jsx - Fix archived year pages (2023/2024) to reference correct content - Update CONTRIBUTING.md example to 2026 - Add previous-years note to news page Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0fd3d8e commit 82641df

21 files changed

Lines changed: 62 additions & 98 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Need to run the website locally for testing? → [Jump to Development Guidelines
4242
### Adding a New Event
4343

4444
1. Navigate to the `content/events/` folder
45-
2. Create a new markdown file with a descriptive name (e.g., `2025-05-20-your-event-name.md`)
45+
2. Create a new markdown file with a descriptive name (e.g., `2026-05-20-your-event-name.md`)
4646
3. Use the following template:
4747

4848
```markdown

components/partner-pack/offers/Offers.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const OfferCard = ({ offer }) => {
1919
return (
2020
<div className="offer-card">
2121
<div className="offer-card__logo">
22+
{/* eslint-disable-next-line @next/next/no-img-element */}
2223
<img src={`/images/partners/${logo}`} alt={`${name} Logo`} />
2324
</div>
2425
<div className="offer-card__description">
@@ -80,6 +81,7 @@ const Offers = ({ partnerOffers, additionalSections }) => {
8081

8182
<div className="partner-logos">
8283
{sortedPartnerOffers.map((offer, index) => (
84+
/* eslint-disable-next-line @next/next/no-img-element */
8385
<img
8486
key={index}
8587
src={`/images/partners/${offer.logo}`}

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const nextConfig = {
44
output: 'export',
55
reactStrictMode: true,
6+
outputFileTracingRoot: __dirname,
67
}
78

89
module.exports = nextConfig

package-lock.json

Lines changed: 25 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "cross-env NODE_ENV=production next build",
8-
"start": "next start",
8+
"start": "npx serve out",
99
"lint": "next lint",
1010
"test": "jest"
1111
},
@@ -20,8 +20,7 @@
2020
"marked": "^15.0.11",
2121
"next": "^15.0.8",
2222
"react": "18.2.0",
23-
"react-dom": "18.2.0",
24-
"smoothscroll-polyfill": "^0.4.4"
23+
"react-dom": "18.2.0"
2524
},
2625
"devDependencies": {
2726
"@babel/preset-env": "^7.23.3",

pages/2022/schedule/[slug].js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export default function EventDetailPage({ event, ogImage }) {
1212
return (
1313
<>
1414
<Head>
15-
<title>
16-
{event.title} - {getLiteral('meta:title')}
17-
</title>
15+
<title>{`${event.title} - ${getLiteral('meta:title')}`}</title>
1816
<meta
1917
name="description"
2018
content={getLiteral('meta:event-description')}

pages/2022/schedule/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ export default function Schedule({ events }) {
1717
return (
1818
<div>
1919
<Head>
20-
<title>
21-
{getLiteral('schedule:title')} - {getLiteral('meta:title')}
22-
</title>
20+
<title>{`${getLiteral('schedule:title')} - ${getLiteral('meta:title')}`}</title>
2321
<meta name="description" content={getLiteral('schedule:description')} />
2422

2523
{/* <!-- Facebook Meta Tags --> */}

pages/2023/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function Home({ hero, about, getInvolved, events, connection }) {
6262
date={hero.date}
6363
title={hero.title}
6464
buttonText={hero.buttonText}
65-
buttonLink={ROUTES.SCHEDULE.getPath("2022")}
65+
buttonLink={ROUTES.SCHEDULE.getPath("2023")}
6666
/>
6767
<About title={about.title} content={about.content} />
6868
<GetInvolved
@@ -84,15 +84,15 @@ export default function Home({ hero, about, getInvolved, events, connection }) {
8484
}
8585

8686
export async function getStaticProps() {
87-
const hero = getDataFromMD('content/2022/home/1-hero.md')
88-
const about = getDataFromMD('content/2022/home/2-about.md')
87+
const hero = getDataFromMD('content/2023/home/1-hero.md')
88+
const about = getDataFromMD('content/2023/home/2-about.md')
8989
const getInvolved = parseGetInvolvedData(
90-
getDataFromMD('content/2022/home/3-get-involved.md'),
90+
getDataFromMD('content/2023/home/4-get-involved.md'),
9191
)
92-
const events = getDataFromMD('content/2022/home/4-events.md')
93-
const connection = getDataFromMD('content/2022/home/5-connection.md')
92+
const events = getDataFromMD('content/2023/home/5-events.md')
93+
const connection = getDataFromMD('content/2023/home/6-connection.md')
9494

95-
const eventsList = parseEvents(getEvents('2022'))
95+
const eventsList = parseEvents(getEvents('2023'))
9696

9797
return {
9898
props: {

pages/2023/schedule/[slug].js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export default function EventDetailPage({ event, ogImage }) {
1212
return (
1313
<>
1414
<Head>
15-
<title>
16-
{event.title} - {getLiteral('meta:title')}
17-
</title>
15+
<title>{`${event.title} - ${getLiteral('meta:title')}`}</title>
1816
<meta
1917
name="description"
2018
content={getLiteral('meta:event-description')}

pages/2023/schedule/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ export default function Schedule({ events }) {
1717
return (
1818
<div>
1919
<Head>
20-
<title>
21-
{getLiteral('schedule:title')} - {getLiteral('meta:title')}
22-
</title>
20+
<title>{`${getLiteral('schedule:title')} - ${getLiteral('meta:title')}`}</title>
2321
<meta name="description" content={getLiteral('schedule:description')} />
2422

2523
{/* <!-- Facebook Meta Tags --> */}

0 commit comments

Comments
 (0)