Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
040e7b9
Merge pull request #158 from hunghvu/development
hunghvu Apr 14, 2024
12631d1
Merge pull request #159 from hunghvu/development
hunghvu Apr 15, 2024
d007ef1
Merge pull request #160 from hunghvu/development
hunghvu Apr 21, 2024
00ebd0e
Merge pull request #161 from hunghvu/development
hunghvu Apr 21, 2024
9789424
Merge pull request #162 from hunghvu/development
hunghvu Apr 21, 2024
c327c0f
Merge pull request #164 from hunghvu/development
hunghvu Apr 21, 2024
5fecd8e
Merge pull request #165 from hunghvu/development
hunghvu Apr 21, 2024
fd5f38b
chore: reorganize project structure to prepare for a rewrite, related…
hunghvu Jun 22, 2024
a55ab41
chore: bump packages
hunghvu Jun 22, 2024
d774ab2
chore: init Astro project, related to #166
hunghvu Jun 22, 2024
ab47ee9
chore: flatten and simplify project structure, and moving away from m…
hunghvu Jun 26, 2024
3f4f28e
chore: update packages
hunghvu Jun 30, 2024
bffb995
chore: install tailwind and daisy ui, related to #166
hunghvu Jul 3, 2024
bca7d64
chore: update VS code config for Astro, related to #166
hunghvu Jul 3, 2024
4ee3582
feat: update hero language, related to #167
hunghvu Jul 3, 2024
c1d7060
feat: init layout for homepage, related to #167
hunghvu Jul 4, 2024
7324ae2
chore: prefix daisy ui style for easy distinction, related to #167
hunghvu Jul 5, 2024
5eccc29
feat: use default card style of daisyui, related to #167
hunghvu Jul 5, 2024
b216b34
feat: implement light and dark mode toggle button, related to #168
hunghvu Jul 5, 2024
6e21e8c
feat: personalize navbar, related to #169
hunghvu Jul 5, 2024
1e1223e
feat: limit width of navbar, related to #169
hunghvu Jul 6, 2024
eef2c76
feat: update to layout and colros, related to #167
hunghvu Jul 6, 2024
1ba63e5
chore: remove redundant path
hunghvu Jul 6, 2024
3b911bd
fix: invalid href
hunghvu Jul 6, 2024
9edce0c
feat: directly embed svg to utilize theme colors
hunghvu Jul 6, 2024
b18b194
feat: personalize footer, related to #170
hunghvu Jul 6, 2024
71ff6d0
feat: improve accessibility of svg icons
hunghvu Jul 6, 2024
0750a84
chore: update packages
hunghvu Jul 13, 2024
dec617f
feat: update frontmatter schemea for blog post, related to #171
hunghvu Jul 13, 2024
cacc9d9
feat: update homepage and sample blog post to use new config #171
hunghvu Jul 13, 2024
e8bc5aa
feat: use new front matter name for blog post, related to #171
hunghvu Jul 14, 2024
c9e3349
chore: update packages
hunghvu Aug 5, 2024
3697be6
chore: update packages
hunghvu Aug 23, 2024
14dbd1d
chore: remove explicit doctype declaration
hunghvu Aug 23, 2024
be37424
feat: remove shared layout because it is redundant for the site, #173
hunghvu Aug 23, 2024
6df8b11
feat: align layout of blog post, #173
hunghvu Aug 23, 2024
de968fb
chore: bump packages
hunghvu Oct 5, 2024
301f81e
chore: bump packages
hunghvu Oct 13, 2024
d1efbe8
feat: style typography, #173
hunghvu Oct 13, 2024
572ea2c
feat: make footer more emphasized
hunghvu Oct 13, 2024
c1286fd
feat: optimize image rendering by using Astro built-in component
hunghvu Oct 13, 2024
8b414f3
chore: bump packages
hunghvu Oct 21, 2024
5bca35a
feat: config prettier and eslint, #178
hunghvu Oct 24, 2024
13a3431
chore: format with prettier, #178
hunghvu Oct 24, 2024
b390968
chore: lint codebase, #178
hunghvu Oct 24, 2024
46d1aaf
feat: format header and adjust page max width, #177
hunghvu Oct 24, 2024
e8c9c6f
feat: implement basic anchor link, #177
hunghvu Oct 25, 2024
aa3acd9
feat: create table of contents, #177
hunghvu Oct 27, 2024
07f840e
feat: restyle header using daisyUI class, #177
hunghvu Oct 27, 2024
e101e87
feat: now use default daisyUI theme, #177
hunghvu Oct 27, 2024
1be2b57
feat: make text color consistent to theme of choice across light and …
hunghvu Oct 27, 2024
0a082f5
feat: apply daisyUI styles to footer, #177
hunghvu Oct 27, 2024
651e921
chore: bump packages
hunghvu Oct 27, 2024
357adf4
chore: lint codebase
hunghvu Oct 27, 2024
19b032c
fix: wrong article order
hunghvu Oct 28, 2024
6c8ee69
feat: add series section, #177
hunghvu Oct 28, 2024
3cab6b9
fix: disable table of contents when there is no headings, #177
hunghvu Oct 28, 2024
f5f9323
feat: make series section scrollable, #177
hunghvu Oct 28, 2024
20e5811
feat: add copy button to code block, #177
hunghvu Oct 29, 2024
4258e9c
feat: line wrap elements, #177
hunghvu Oct 31, 2024
48a4b45
chore: bump packages
hunghvu Nov 3, 2024
9b8fb25
chore: enforce better typing definition
hunghvu Nov 3, 2024
7784337
feat: remove tags, #177
hunghvu Nov 3, 2024
d72546b
feat: add pagination, #177
hunghvu Nov 3, 2024
0331a91
feat: configure auto embed for YouTube and link preview, #177
hunghvu Nov 4, 2024
d84a556
feat: add reusable blog image component
hunghvu Nov 4, 2024
75d8d2d
feat: add article no. 1
hunghvu Nov 4, 2024
1498957
chore: bump packages
hunghvu Nov 9, 2024
666d3a8
feat: use geist sans font for the site
hunghvu Nov 9, 2024
34ca141
feat: add favicon, #179
hunghvu Nov 10, 2024
d173975
feat: separate SEO tags from base head, #179
hunghvu Nov 10, 2024
4c1ed9c
feat: add Google site verifcation tag, #179
hunghvu Nov 10, 2024
78627ea
feat: add open graph and twitter meta tags, #179
hunghvu Nov 10, 2024
5049ff4
feat: add json ld for both home and article page, #172 and #179
hunghvu Nov 10, 2024
1dbd4eb
fix: correct slug of images that are optimized by astro, #172 and #179
hunghvu Nov 10, 2024
80b45b5
feat: make pagination starts from root path "/"
hunghvu Nov 10, 2024
1fa1e37
feat: add robots.txt
hunghvu Nov 10, 2024
6c90884
feat: add RSS feed, #18
hunghvu Nov 10, 2024
9f65bac
feat: remove trailing slash from url
hunghvu Nov 11, 2024
a42e644
chore: change comment style to exclude from build
hunghvu Nov 11, 2024
03dd2bc
fix: need sharp for the build process
hunghvu Nov 11, 2024
771fc15
feat: add rss and sitemap link to header and footer
hunghvu Nov 11, 2024
0de6d2b
refactor: extract common variable
hunghvu Nov 11, 2024
94d7912
chore: lint codebase
hunghvu Nov 11, 2024
8e02abc
chore: use TypeScript for config files
hunghvu Nov 11, 2024
d436567
feat: add article no. 2
hunghvu Nov 11, 2024
7b44da9
chore: shorten file name
hunghvu Nov 11, 2024
dadfb53
fix: wrong link structure
hunghvu Nov 11, 2024
313be84
feat: add article no. 3
hunghvu Nov 11, 2024
2ec8eac
feat: make inline code style consistent with block code style
hunghvu Nov 12, 2024
efad8d5
fix: enable rehype style to maintain consistency
hunghvu Nov 12, 2024
8b81d98
chore: bump packages
hunghvu Nov 14, 2024
50244a0
chore: reorganize contents and assets for better structure
hunghvu Nov 19, 2024
1f6502a
feat: add blogpost no. 4
hunghvu Nov 19, 2024
2ae1324
feat: add blogpost no. 5
hunghvu Nov 19, 2024
b8784cd
chore: bump packages
hunghvu Nov 29, 2024
cc3c29d
chore: bump packages
hunghvu Dec 4, 2024
60b0c52
chore: bump packages
hunghvu Dec 19, 2024
a970c26
chore: bump packages
hunghvu Dec 22, 2024
6b25599
feat: add blogpost no.6
hunghvu Dec 23, 2024
dd0ba45
feat: add blogpost no. 7
hunghvu Dec 23, 2024
24ed570
feat: add blogpost no. 8
hunghvu Dec 26, 2024
32143ed
feat: add blogpost no. 9
hunghvu Dec 26, 2024
9525d46
feat: add blogpost no. 10
hunghvu Dec 26, 2024
8265d9e
chore: update packages
hunghvu Jan 3, 2025
1c5c83c
feat: add blogpost no. 11
hunghvu Jan 3, 2025
aeef531
feat: add blogpost no. 12
hunghvu Jan 3, 2025
c385ae6
chore: update packages
hunghvu Jan 11, 2025
ed0994e
feat: add blogpost no. 13
hunghvu Jan 16, 2025
bfbcf2a
chore: bump packages
hunghvu Jan 16, 2025
fac5635
feat: add blogpost no.14
hunghvu Jan 16, 2025
82f8a73
feat: add blogpost no. 15
hunghvu Jan 16, 2025
f4ea690
feat: add blogpost no. 16
hunghvu Jan 16, 2025
4fda8f7
feat: add blogpost no. 17
hunghvu Jan 16, 2025
feef626
feat: add blogpost no. 18
hunghvu Jan 21, 2025
d1a5e1a
feat: add blogpost no. 19
hunghvu Jan 21, 2025
9769ecf
chore: bump packages
hunghvu Jan 21, 2025
bdea04b
chore: bump packages
hunghvu Feb 5, 2025
58e7ced
feat: add blogpost no. 20
hunghvu Feb 5, 2025
d6b9a11
feat: remove single and double quote from frontmatter section to simp…
hunghvu Feb 5, 2025
584ed6e
fix: wrap frontmatter value that has colon in quote
hunghvu Feb 5, 2025
f60d39c
feat: add blogpost no. 21
hunghvu Feb 5, 2025
e8f2dfe
feat: add blogpost no. 22
hunghvu Feb 5, 2025
f3b8d70
chore: bump packages
hunghvu Feb 23, 2025
4e67edf
feat: add blogpost no. 23
hunghvu Feb 23, 2025
03231a4
fix: limit image height to improve consistency
hunghvu Feb 23, 2025
0dd2f75
feat: correct wrong cover image of blogpost no. 22
hunghvu Feb 23, 2025
9a864f2
feat: replace Image component with Picture component for better optim…
hunghvu Feb 23, 2025
20802c2
chore: remove showLineNumbers when code block does not have language …
hunghvu Feb 24, 2025
bce00c2
feat: add blogpost no. 24
hunghvu Feb 24, 2025
d2b998b
feat: add blogpost no. 25
hunghvu Feb 24, 2025
0651746
feat: add blogpost no.26
hunghvu Mar 25, 2025
9b36843
feat: add blogpost no. 27
hunghvu Mar 31, 2025
60f7675
feat: add blogpost no. 28
hunghvu Mar 31, 2025
460df00
feat: add blogpost no. 29
hunghvu Mar 31, 2025
fcf2e6c
feat: add blogpost no. 30
hunghvu Mar 31, 2025
bab7bf3
feat: add blogpost no. 31
hunghvu Mar 31, 2025
e633f69
feat: add blogpost no. 32
hunghvu Mar 31, 2025
7822e25
feat: add blogpost no. 33
hunghvu Mar 31, 2025
a6552b9
feat: add blogpost no. 34
hunghvu Mar 31, 2025
cfb33b6
feat: add blogpost no. 35
hunghvu Mar 31, 2025
6031ebe
feat: add blogpost no. 36
hunghvu Mar 31, 2025
d20d4fc
feat: create a custom 404 and 500 pages
hunghvu Mar 31, 2025
fa7c42d
feat: add blogpost no. 37
hunghvu Mar 31, 2025
14445d7
feat: add blogpost no. 38 and correct some reference errors
hunghvu Mar 31, 2025
17611f0
feat: add blogpost no. 39 and replace some special characters in othe…
hunghvu Mar 31, 2025
8271695
feat: add blogpost no. 40
hunghvu Mar 31, 2025
6850181
chore: remove dead code
hunghvu Mar 31, 2025
d7146c7
chore: limit numbers of lines that appear in some long code snippets
hunghvu Mar 31, 2025
e1ce646
feat: migrate to daisyui v5, tailwind v4, and update to the latest as…
hunghvu Apr 2, 2025
cac4f12
fix: change comment position to suppress astro language tool errors
hunghvu Apr 2, 2025
608841c
docs: update readme and changelog
hunghvu Apr 2, 2025
3cbc247
Merge pull request #180 from hunghvu/v2.0
hunghvu Apr 2, 2025
5480311
Minor upddate (#181)
hunghvu Apr 3, 2025
fcc3ce0
chore: text adjustment to avoid overflow on small screen size
hunghvu Apr 3, 2025
bd0fa87
chore: bump packages
hunghvu Apr 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 0 additions & 24 deletions .dockerignore

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/build-and-push-caddy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker images
id: meta
uses: docker/metadata-action@v5
with:
images: |
docker.io/hunghvu/blogfolio-caddy
ghcr.io/hunghvu/blogfolio-caddy
docker.io/hunghvu/blogfolio-caddy
ghcr.io/hunghvu/blogfolio-caddy

# If we want to reference a subdir
# https://github.com/docker/build-push-action/issues/528
Expand All @@ -56,4 +56,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64
59 changes: 0 additions & 59 deletions .github/workflows/build-and-push-cms.yaml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/build-and-push-web.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,7 @@ dist

# Ignore files/folders intended for experiment
*Test*
*test*
*test*

# generated types
.astro/
13 changes: 13 additions & 0 deletions .prettierrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// .prettierrc.mjs
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
30 changes: 10 additions & 20 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@
"editor.quickSuggestions": {
"strings": true
},
"typescript.tsdk": "node_modules\\typescript\\lib",
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.formatOnPaste": false, // required
"editor.formatOnType": false, // required
"editor.formatOnSave": true, // optional
"editor.formatOnSaveMode": "file", // required to format on save
"files.autoSave": "onFocusChange", // optional but recommended
"vs-code-prettier-eslint.prettierLast": true,
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"[dockercompose]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"[postcss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
// Reference: https://github.com/ota-meshi/eslint-plugin-astro?tab=readme-ov-file#-editor-integrations
"eslint.validate": [
"javascript",
"astro", // Enable .astro
"typescript" // Enable .ts
],
"prettier.documentSelectors": ["**/*.astro"],
"[astro]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
} // set as "true" to run 'prettier' last not first
}
}
}
17 changes: 14 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [2.0] - 2025-01-04

- Simplify and migrate from Payload v2 + NextJS + Turborepo to just Astro as a static site generator (zero JS).
- Now support pagination for home page.
- Background is no longer animated. The animation in v1 heavily consumes CPU cycles on browser without GPU acceleration.
- Support table of contents.
- Support dark and light mode.
- Support RSS.
- Code block now has line numbers, height restriction, and is scrollable, to avoid a wall of text.
- Migrate from a PrimeReact (JS-heavy) to DaisyUI (essentially a lightweight CSS utility).
- The web design is now generic, KISS essentially.
- Remove OpenWRT ToH page because of low traffic and it makes the site JS-heavy.

## [1.2] - 2024-02-25

- This version focuses on delivering the website's "Lab" section. The "Lab" is a collection of mini projects the author wants to experiment on. This time, it is an OpenWRT table of hardware.
Expand All @@ -9,7 +22,7 @@
### Features

- Add footer. ([#72](https://github.com/hunghvu/hungvu.tech/issues/72))
- Add OpenWRT Table of Hardware (full details) that is updated every 24 hours. This involves several issues. Please take a look at the milestone for a better overview.
- Add OpenWRT Table of Hardware (full details) that is updated every 24 hours. This involves several issues. Please take a look at the milestone for a better overview.

### Optimization

Expand Down Expand Up @@ -55,8 +68,6 @@

- Use of a neutral theme for the website (no light/dark mode), with the use of animated SVG. ([#92](https://github.com/hunghvu/hungvu.tech/issues/92))



## [1.0] - 2023-12-17

- First revision of [hungvu.tech](https://hungvu.tech).
Expand Down
Loading