diff --git a/post.config.js b/post.config.js
index cb7ce14..436a347 100644
--- a/post.config.js
+++ b/post.config.js
@@ -55,7 +55,9 @@ if (fs.existsSync(path.join(distDir, 'index.html'))) {
const targetDir = path.join(distDir, post.year, post.month, post.day);
if (!fs.existsSync(targetDir)) {
- fs.mkdirSync(targetDir, { recursive: true });
+ fs.mkdirSync(targetDir, {
+ recursive: true
+ });
}
fs.copyFileSync(
@@ -68,6 +70,11 @@ if (fs.existsSync(path.join(distDir, 'index.html'))) {
path.join(distDir, 'index.html'),
path.join(distDir, '404.html')
);
+
+ fs.copyFileSync(
+ path.join(distDir, 'index.html'),
+ path.join(distDir, 'about.html')
+ );
}
console.log(`✅ Build ${allPosts.length} Posts Successfully`);
diff --git a/public/about.md b/public/about.md
new file mode 100644
index 0000000..3478f6e
--- /dev/null
+++ b/public/about.md
@@ -0,0 +1,3 @@
+Hi, I'm Gapry. Nice to meet you! I love drinking coffee.
+
+
\ No newline at end of file
diff --git a/public/assets/pic.png b/public/assets/pic.png
new file mode 100644
index 0000000..a02a731
Binary files /dev/null and b/public/assets/pic.png differ
diff --git a/src/App.jsx b/src/App.jsx
index 1eaf77d..1ca31e8 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -6,6 +6,7 @@ import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism';
import Analytics from './components/Analytics';
import NotFound from './pages/NotFound/NotFound';
import Home from './pages/Home/Home';
+import Header from './components/Header/Header';
import Footer from './components/Footer/Footer';
import './styles/App.css';
@@ -32,6 +33,17 @@ export default function App() {
const pathClean = currentPath.replace(/\.html$/, '');
const parts = pathClean.split('/').filter(Boolean);
+ if (parts.length === 1 && parts[0] === 'about') {
+ fetch('/about.md')
+ .then(res => res.text())
+ .then(text => {
+ setContent(text);
+ setStatus('post');
+ })
+ .catch(() => setStatus('404'));
+ return;
+ }
+
if (parts.length === 0 || (parts.length === 1 && parts[0] === 'index')) {
setStatus('home');
return;
@@ -73,6 +85,7 @@ export default function App() {
<>