Skip to content

Commit 0e6b8d7

Browse files
committed
fix: replace hard-coded valuea with SITE field
1 parent fe547bc commit 0e6b8d7

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

src/config.ts

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ export const SITE: Site = {
99
lightAndDarkMode: false,
1010
postPerPage: 10,
1111
scheduledPostMargin: 15 * 60 * 1000, // 15 minutes
12+
quickIntroduceMySelf: `
13+
Hey, I'm a Flutter Developer. I have 3 years experience in design application and a year front-end website development.
14+
I enjoy working with Flutter and Rust and my plan is to become a
15+
senior in the next 2 - 4 years.
16+
`,
17+
plan: `
18+
Currently, i'm studying and participating in some projects related to Smart Constract. In the near future, i gonna try to write posts about Smart Contract, i hope everyone gonna support me.
19+
`,
1220
};
1321

1422
export const LOCALE = {

src/pages/about.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ layout: ../layouts/AboutLayout.astro
33
title: "About"
44
---
55

6+
## vi
7+
68
* Mình đang là Mobile Developer, hiện tại mình đang dùng Flutter & SwiftUI để phát triển app
79
* Trước đây mình *từng học đại học*, nhưng vì con người lúc đó chưa đủ chín chắn thế là 😔
810
* Tuổi nghề của mình còn rất ít, *cố gắng tích tiểu thành đại* ha

src/pages/index.astro

+4-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Hr from "@components/Hr.astro";
88
import Card from "@components/Card";
99
import Socials from "@components/Socials.astro";
1010
import getSortedPosts from "@utils/getSortedPosts";
11-
import { SOCIALS } from "@config";
11+
import { SOCIALS, SITE } from "@config";
1212
1313
const posts = await getCollection("blog");
1414
@@ -24,11 +24,9 @@ const socialCount = SOCIALS.filter((social) => social.active).length;
2424
<main id="main-content">
2525
<section id="hero">
2626
<p>
27-
Hey, I'm a Flutter Developer. I have 3 years experience in design
28-
application and a year front-end website development. Currently, i am a
29-
freelancer :D
30-
<br />I enjoy working with Flutter and Rust and my plan is to become a
31-
senior in the next 2 - 4 years
27+
{SITE.quickIntroduceMySelf}
28+
<br />
29+
{SITE.plan}
3230
</p>
3331
{
3432
// only display if at least one social link is enabled

src/types.ts

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export type Site = {
99
lightAndDarkMode: boolean;
1010
postPerPage: number;
1111
scheduledPostMargin: number;
12+
quickIntroduceMySelf: string;
13+
plan: string,
1214
};
1315

1416
export type SocialObjects = {

0 commit comments

Comments
 (0)