From 94100b6a4173d3b54833c11ad8fe5818180507b5 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sun, 28 Sep 2025 12:30:44 +0700 Subject: [PATCH] Update configs, social links, and about page content Refactored Hugo workflow to simplify version handling. Improved .gitignore for better coverage. Removed unused social icons and verification file. Updated site configs for base URL, markup, menu (added GitLab, removed YouTube/X), and comment system. Enhanced about page with current work info and clarified blog purpose. --- .github/workflows/hugo.yml | 10 +- .gitignore | 35 ++++++- assets/icons/brand-twitter.svg | 1 - assets/icons/brand-x.svg | 1 - assets/icons/brand-youtube.svg | 1 - config/_default/hugo.yml | 2 +- config/_default/markup.yml | 4 +- config/_default/menu.yml | 23 ++--- config/_default/params.yml | 148 ++++++++++++++++------------- config/_default/related.yml | 1 + content/page/about/index.md | 11 ++- static/googlecafba7bebd390cd7.html | 1 - 12 files changed, 136 insertions(+), 102 deletions(-) delete mode 100644 assets/icons/brand-twitter.svg delete mode 100644 assets/icons/brand-x.svg delete mode 100644 assets/icons/brand-youtube.svg delete mode 100644 static/googlecafba7bebd390cd7.html diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index b422d9a..ee2919e 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -4,11 +4,6 @@ on: branches: - main workflow_dispatch: - inputs: - hugoVersion: - description: "Hugo Version" - required: false - default: "0.140.2" permissions: contents: read pages: write @@ -26,7 +21,7 @@ jobs: env: DART_SASS_VERSION: 1.83.0 GO_VERSION: 1.23.4 - HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.140.2' }} + HUGO_VERSION: 0.140.2 NODE_VERSION: 22.12.0 TZ: Asia/Ho_Chi_Minh steps: @@ -81,7 +76,8 @@ jobs: with: path: ${{ runner.temp }}/hugo_cache key: hugo-${{ github.run_id }} - restore-keys: hugo- + restore-keys: + hugo- - name: Build the site run: | hugo \ diff --git a/.gitignore b/.gitignore index 0b82f07..bbef2f8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,35 @@ .idea/ -resources/ -public/ .hugo_build.lock + + + +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test + +public +themes +resources + +assets/jsconfig.json +.DS_Store diff --git a/assets/icons/brand-twitter.svg b/assets/icons/brand-twitter.svg deleted file mode 100644 index 81650b7..0000000 --- a/assets/icons/brand-twitter.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/icons/brand-x.svg b/assets/icons/brand-x.svg deleted file mode 100644 index 0feee2b..0000000 --- a/assets/icons/brand-x.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/icons/brand-youtube.svg b/assets/icons/brand-youtube.svg deleted file mode 100644 index 2f996cf..0000000 --- a/assets/icons/brand-youtube.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/config/_default/hugo.yml b/config/_default/hugo.yml index 9e9adfd..6e6c78b 100644 --- a/config/_default/hugo.yml +++ b/config/_default/hugo.yml @@ -1,4 +1,4 @@ -baseurl: https://miti99.com +baseurl: https://miti99.com/ languageCode: vi theme: hugo-theme-stack title: miti99 diff --git a/config/_default/markup.yml b/config/_default/markup.yml index 70b26f1..aa5e735 100644 --- a/config/_default/markup.yml +++ b/config/_default/markup.yml @@ -1,6 +1,4 @@ goldmark: - renderer: - unsafe: true extensions: passthrough: enable: true @@ -13,6 +11,8 @@ goldmark: inline: - - \( - \) + renderer: + unsafe: true tableOfContents: endLevel: 4 diff --git a/config/_default/menu.yml b/config/_default/menu.yml index e4143f3..1d676bb 100644 --- a/config/_default/menu.yml +++ b/config/_default/menu.yml @@ -7,32 +7,21 @@ social: params: icon: brand-github + - identifier: gitlab + name: GitLab + url: https://gitlab.com/miti99 + params: + icon: brand-gitlab + - identifier: facebook name: Facebook url: https://facebook.com/miti99 params: icon: brand-facebook - # - identifier: gitlab - # name: GitLab - # url: https://gitlab.com/miti99 - # params: - # icon: brand-gitlab - identifier: linkedin name: LinkedIn url: https://linkedin.com/in/miti99 params: icon: brand-linkedin - - # - identifier: youtube - # name: YouTube - # url: https://youtube.com/@miti99 - # params: - # icon: brand-youtube - - # - identifier: x - # name: X - # url: https://x.com/tienthieusac - # params: - # icon: brand-x diff --git a/config/_default/params.yml b/config/_default/params.yml index 9e2592c..d1010d3 100644 --- a/config/_default/params.yml +++ b/config/_default/params.yml @@ -21,7 +21,6 @@ sidebar: src: img/avatar.jpg article: - headingAnchor: false math: false toc: true readingTime: true @@ -29,6 +28,88 @@ article: enabled: true default: Licensed under CC BY-NC-SA 4.0 +comments: + enabled: true + provider: giscus + + disqusjs: + shortname: + apiUrl: + apiKey: + admin: + adminLabel: + + utterances: + repo: + issueTerm: pathname + label: + + beaudar: + repo: + issueTerm: pathname + label: + theme: + + remark42: + host: + site: + locale: + + vssue: + platform: + owner: + repo: + clientId: + clientSecret: + autoCreateIssue: false + + waline: + serverURL: + lang: + pageview: + emoji: + - https://unpkg.com/@waline/emojis@1.0.1/weibo + requiredMeta: + - name + - email + - url + locale: + admin: Admin + placeholder: + twikoo: + envId: + region: + path: + lang: + + cactus: + defaultHomeserverUrl: "https://matrix.cactus.chat:8448" + serverName: "cactus.chat" + siteName: "" + + giscus: + repo: tiennm99/miti99 + repoID: R_kgDOILzXrw + category: Announcements + categoryID: DIC_kwDOILzXr84CeYAw + mapping: pathname + lightTheme: light + darkTheme: dark + reactionsEnabled: 1 + emitMetadata: 0 + + gitalk: + owner: + admin: + repo: + clientID: + clientSecret: + proxy: + + cusdis: + host: + id: + widgets: homepage: - type: search @@ -57,73 +138,10 @@ defaultImage: colorScheme: toggle: true - default: dark + default: auto imageProcessing: cover: enabled: true content: enabled: true - -comments: - enabled: true - provider: giscus - disqusjs: - shortname: "" - apiUrl: "" - apiKey: "" - admin: "" - adminLabel: "" - utterances: - repo: "" - issueTerm: "pathname" - label: "" - remark42: - host: "" - site: "" - locale: "" - vssue: - platform: "" - owner: "" - repo: "" - clientId: "" - clientSecret: "" - autoCreateIssue: false - waline: - serverURL: "" - lang: "" - visitor: "" - avatar: "" - emoji: [ "https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo" ] - requiredMeta: [ "name", "email", "url" ] - placeholder: "" - locale: - admin: "Admin" - twikoo: - envId: "" - region: "" - path: "" - lang: "" - cactus: - defaultHomeserverUrl: "https://matrix.cactus.chat:8448" - serverName: "cactus.chat" - siteName: "" - giscus: - repo: tiennm99/miti99 - repoID: R_kgDOILzXrw - category: Announcements - categoryID: DIC_kwDOILzXr84CeYAw - mapping: pathname - lightTheme: light - darkTheme: dark - reactionsEnabled: 1 - emitMetadata: 0 - gitalk: - owner: "" - admin: "" - repo: "" - clientID: "" - clientSecret: "" - cusdis: - host: "" - id: "" diff --git a/config/_default/related.yml b/config/_default/related.yml index f441f74..89607f2 100644 --- a/config/_default/related.yml +++ b/config/_default/related.yml @@ -4,5 +4,6 @@ toLower: false indices: - name: tags weight: 100 + - name: categories weight: 200 diff --git a/content/page/about/index.md b/content/page/about/index.md index b45a6df..359a804 100644 --- a/content/page/about/index.md +++ b/content/page/about/index.md @@ -12,13 +12,13 @@ menu: --- -Xin chào, mừng bạn đã đến với trang của mình. +Xin chào, mừng bạn đã đến với blog của mình. -Mình tên Minh Tiến, sinh năm 1999 (vì vậy blog là miti99 :)))), sinh viên ngành Khoa học Máy tính khóa 2017 tại trường Đại học Bách Khoa Tp.HCM. +Mình tên Minh Tiến, sinh năm 1999 (vì vậy blog là miti99 :)))), sinh viên ngành Khoa học Máy tính khóa 2017 tại trường Đại học Bách Khoa Tp.HCM. Hiện mình đang làm việc tại VNG. -Mình là một người thích Linux và kiểu mã nguồn mở như thế, hệ điều hành mình đang sử dụng là Archlinux và rất là thích nó. +Mình là một người thích Linux (đặc biệt là Archlinux) và các dự án mã nguồn mở. Công việc hiện tại của mình liên quan đến game nên mình không dùng Linux cho desktop nữa. Tuy nhiên vẫn thường vọc vạch trên máy ảo và cloud. -Blog này được tạo ra với mục đích chia sẻ trải nghiệm của mình, cũng như mẹo để giải quyết một số vấn đề mà mình gặp phải trong quá trình sử dụng Archlinux nhé. +Blog này được tạo ra với mục đích chia sẻ trải nghiệm của mình, cũng như cách giải quyết một số vấn đề liên quan đến tech mà mình gặp phải trong công việc và các dự án cá nhân. Các liên kết hữu ích có tại [trang chủ](/) của mình. @@ -26,5 +26,8 @@ Các bạn có thể liên hệ với mình bằng một trong những cách th - [Gmail](mailto:minhtienit99@gmail.com) - [Outlook](mailto:tiennm99@outlook.com) +- [LinkedIn](https://linkedin.com/in/miti99) - [Facebook](https://fb.com/tiennm99) - [Fanpage](https://fb.com/miti99) + +Hi vọng bạn sẽ thích blog của mình. diff --git a/static/googlecafba7bebd390cd7.html b/static/googlecafba7bebd390cd7.html deleted file mode 100644 index 9d8c376..0000000 --- a/static/googlecafba7bebd390cd7.html +++ /dev/null @@ -1 +0,0 @@ -google-site-verification: googlecafba7bebd390cd7.html \ No newline at end of file