Skip to content

Commit

Permalink
refactor: add sitemap, web manifest, and internationalization (i18n) …
Browse files Browse the repository at this point in the history
…configuration
  • Loading branch information
dvgamerr committed Mar 5, 2024
1 parent 376fe57 commit e30d8a8
Show file tree
Hide file tree
Showing 6 changed files with 361 additions and 297 deletions.
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mr.touno.io
dvgamerr.app
28 changes: 26 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
import { defineConfig } from 'astro/config';
import robotsTxt from 'astro-robots-txt';
import sitemap from "@astrojs/sitemap";

import webmanifest from "astro-webmanifest";

// https://astro.build/config
export default defineConfig({
site: 'https://mr.touno.io',
integrations: [ robotsTxt() ],
site: 'https://dvgamerr.app',
integrations: [
robotsTxt(),
sitemap({
i18n: {
defaultLocale: 'en',
locales: {
en: 'en-US',
th: 'th-TH'
},
},
}),
webmanifest({
name: 'Kananek Thongkam | Full Stack Engineer',
icon: 'public/icon.webp', // source for favicon & icons
short_name: 'dvgamerr',
description: 'Hey there, My name is Kananek T. and I\'m a Full Stack Engineer.',
start_url: '/',
theme_color: '#3068d9',
background_color: '#f8f8f8',
display: 'standalone',
})
]
});
260 changes: 0 additions & 260 deletions collect/index.js

This file was deleted.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"collector": "node ./src/ --github --wakatime",
"collector": "node ./collector/index.js --wakatime --github | pino-pretty",
"astro": "astro"
},
"dependencies": {
"@astrojs/sitemap": "^3.1.1",
"@cronitorio/cronitor-rum": "^0.4.1",
"astro": "^4.4.8",
"arg": "^5.0.2",
"astro": "^4.4.11",
"astro-google-fonts-optimizer": "^0.2.2",
"astro-robots-txt": "^1.0.0",
"astro-webmanifest": "^1.0.0",
"merge-json-file": "^1.0.1",
"numeral": "^2.0.6",
"pino": "^8.19.0",
"sharp": "^0.32.6"
},
"devDependencies": {
Expand All @@ -28,6 +33,7 @@
"charts.css": "^1.1.0",
"dayjs": "^1.11.10",
"dotenv": "^16.4.5",
"pino-pretty": "^10.3.1",
"sass": "^1.71.1"
}
}
Loading

0 comments on commit e30d8a8

Please sign in to comment.