Skip to content

Commit

Permalink
fix: added sitemap + fixed accessibility label for logolink
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 20, 2024
1 parent 0476360 commit 439f67d
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ yarn-error.log*

# typescript
*.tsbuildinfo

# site map
public/sitemap.xml
public/sitemap-0.xml
public/robots.txt
2 changes: 1 addition & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Hackerspace NTNU, a student-led project open to all students, offers access to new technology like 3D printers and VR equipment. Our members provide varied expertise to help with your projects, from making an LED light blink to creating a 3D model. Visit our workshop or join our Slack channel for assistance or a friendly chat."
},
"layout": {
"home": "Home",
"hackerspaceHome": "Hackerspace homepage",
"news": "News",
"events": "Events",
"about": "About",
Expand Down
2 changes: 1 addition & 1 deletion messages/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Hackerspace NTNU, et studentledet prosjekt åpent for alle studenter, tilbyr tilgang til ny teknologi som 3D-printere og VR-utstyr. Våre medlemmer gir variert ekspertise for å hjelpe med prosjektene dine, fra å få en LED-lys til å blinke til å lage en 3D-modell. Besøk vårt verksted eller bli med i vår Slack-kanal for assistanse eller en vennlig prat."
},
"layout": {
"home": "Hjem",
"hackerspaceHome": "Hackerspace hjemmeside",
"news": "Nyheter",
"events": "Arrangementer",
"about": "Om oss",
Expand Down
7 changes: 7 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('next-sitemap').IConfig} */
const config = {
siteUrl: process.env.SITE_URL ?? 'https://localhost:3000',
generateRobotsTxt: true,
};

export default config;
38 changes: 37 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"postbuild": "next-sitemap",
"build": "next build",
"dev": "next dev",
"lint": "next lint",
Expand All @@ -21,6 +22,7 @@
"lucide-react": "^0.312.0",
"next": "^14.0.4",
"next-intl": "^3.4.4",
"next-sitemap": "^4.2.3",
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/LogoLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function LogoLink({
variant='none'
size='none'
>
<Link href='/' aria-label={t('home')} onClick={onClick}>
<Link href='/' aria-label={t('hackerspaceHome')} onClick={onClick}>
<Logo className='h-6 w-6 md:h-8 md:w-8 xl:h-10 xl:w-10' />
<span className='text-md font-montserrat font-bold md:text-lg xl:text-2xl'>
HACKERSPACE
Expand Down

0 comments on commit 439f67d

Please sign in to comment.