From 0b565236e7633fcc8e8e955c48fb4df41992ad1f Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sat, 30 Nov 2024 20:28:37 +0700 Subject: [PATCH] [Change] use hugo coder theme --- .gitmodules | 6 +- archetypes/post.md | 37 --- config.yml | 290 ++++++++-------------- content/archives.md | 6 - content/search.md | 5 - layouts/partials/comments.html | 16 -- {assets/img => static/images}/avatar.jpg | Bin {assets/img => static/images}/favicon.png | Bin {assets/img => static/images}/logo.png | Bin themes/PaperMod | 1 - themes/hugo-coder | 1 + 11 files changed, 112 insertions(+), 250 deletions(-) delete mode 100644 archetypes/post.md delete mode 100644 content/archives.md delete mode 100644 content/search.md delete mode 100644 layouts/partials/comments.html rename {assets/img => static/images}/avatar.jpg (100%) rename {assets/img => static/images}/favicon.png (100%) rename {assets/img => static/images}/logo.png (100%) delete mode 160000 themes/PaperMod create mode 160000 themes/hugo-coder diff --git a/.gitmodules b/.gitmodules index 89af1b0..ce3490a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "themes/PaperMod"] - path = themes/PaperMod - url = https://github.com/adityatelange/hugo-PaperMod.git +[submodule "themes/hugo-coder"] + path = themes/hugo-coder + url = https://github.com/luizdepra/hugo-coder.git diff --git a/archetypes/post.md b/archetypes/post.md deleted file mode 100644 index 4a273da..0000000 --- a/archetypes/post.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: "My 1st post" -date: 2020-09-15T11:30:03+00:00 -# weight: 1 -# aliases: ["/first"] -tags: ["first"] -author: "Me" -# author: ["Me", "You"] # multiple authors -showToc: true -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "Desc Text." -canonicalURL: "https://canonical.url/to/page" -disableHLJS: true # to disable highlightjs -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true -cover: - image: "" # image path/url - alt: "" # alt text - caption: "" # display caption under cover - relative: false # when using page bundles set this to true - hidden: true # only hide on current single page -editPost: - URL: "https://github.com//content" - Text: "Suggest Changes" # edit text - appendFilePath: true # to append file path to Edit link ---- \ No newline at end of file diff --git a/config.yml b/config.yml index 301921b..def4182 100644 --- a/config.yml +++ b/config.yml @@ -1,186 +1,112 @@ -baseURL: "https://tiennm99.github.io" +baseURL: title: miti99 -copyright: "© [miti99](https://github.com/tiennm99)" -paginate: 5 -theme: [ PaperMod ] - -enableInlineShortcodes: true -enableRobotsTXT: true -buildDrafts: false -buildFuture: false -buildExpired: false -enableEmoji: true -pygmentsUseClasses: true -mainsections: [ "posts" ] - -minify: - disableXML: true - minifyOutput: true - +theme: hugo-coder +languageCode: vi defaultContentLanguage: vi -languages: - vi: - languageName: "Tiếng Việt" - weight: 1 - taxonomies: - category: categories - tag: tags - series: series - menu: - main: - - name: Posts - url: posts - weight: 1 - - name: Search - url: search - weight: 2 - - name: Tags - url: tags - weight: 3 - - name: About - url: about - weight: 4 - - name: Pages - weight: 5 - url: pages - -outputs: - home: - - HTML - - RSS - - JSON - -params: - env: production - description: "miti99" - author: miti99 - - defaultTheme: auto - # disableThemeToggle: true - ShowShareButtons: true - ShowReadingTime: true - # disableSpecial1stPost: true - displayFullLangName: true - ShowPostNavLinks: true - ShowBreadCrumbs: true - ShowCodeCopyButtons: true - ShowRssButtonInSectionTermList: true - ShowAllPagesInArchive: true - ShowPageNums: true - ShowToc: true - comments: true - images: [ "img/logo.png" ] - - profileMode: - enabled: true - title: miti99 - subtitle: Thợ code muốn trở thành phù thuỷ - imageUrl: "img/avatar.jpg" - imageTitle: miti99's avatar - imageWidth: 256 - imageHeight: 256 - buttons: - - name: Archives - url: archives - - name: Web CV - url: https://tiennm99.github.io/webcv - - name: PDF CV - url: https://tiennm99.github.io/cv/miti99.pdf - - homeInfoParams: - Title: "miti99" - Content: > - 👋 Chào mừng đến với blog của miti99. Web được tạo ra bởi miti99, sử dụng Hugo và theme PaperMod! - - socialIcons: - - name: github - title: View on Github - url: "https://github.com/tiennm99" - - name: gitlab - title: View on Gitlab - url: "https://gitlab.com/miti99" - - name: facebook - title: View on Facebook - url: "https://facebook.com/miti99" - - name: youtube - title: View on Youtube - url: "https://youtube.com/@miti99" - - name: linkedin - title: View on Linkedin - url: "https://www.linkedin.com/in/miti99" - - name: x - title: View on X - url: "https://twitter.com/tienthieusac" - - editPost: - URL: "https://github.com/tiennm99/miti99/tree/main/content" - Text: "Suggest Changes" - appendFilePath: true - - # label: - # iconSVG: '' - # text: "Home" - # icon: icon.png - # iconHeight: 35 - - analytics: - google: - SiteVerificationTag: "G-JR36Q9NSNP" - - assets: - disableHLJS: true - # favicon: "" - # favicon16x16: "" - # favicon32x32: "" - # apple_touch_icon: "" - # safari_pinned_tab: "" - - # cover: - # hidden: true - # hiddenInList: true - # hiddenInSingle: true - - # fuseOpts: - # isCaseSensitive: false - # shouldSort: true - # location: 0 - # distance: 1000 - # threshold: 0.4 - # minMatchCharLength: 0 - # keys: ["title", "permalink", "summary", "content"] - -markup: - goldmark: - renderer: - unsafe: true - highlight: - noClasses: false - anchorLineNos: true - codeFences: true - guessSyntax: true - lineNos: true - style: monokai - -privacy: - vimeo: - disabled: false - simple: true - - twitter: - disabled: false - enableDNT: true - simple: true - - instagram: - disabled: false - simple: true - - youtube: - disabled: false - privacyEnhanced: true +paginate: 6 +enableEmoji: true services: - instagram: - disableInlineCSS: true - twitter: - disableInlineCSS: true + googleAnalytics: + id: G-JR36Q9NSNP + +markup: + highlight: + noClasses: false + +params: + author: miti99 + license: CC BY-SA-4.0 + description: miti99's personal website + keywords: blog,developer,personal + info: + - Senior Software Engineer + - Java Game Server Developer + - Magician + avatarURL: images/avatar.jpg + # gravatar: minhtienit99@gmail.com + favicon_32: images/favicon.png + dateFormat: January 2, 2006 + since: 2020 + commit: https://github.com/tiennm99/tiennm99.github.io/tree/ + rtl: false + colorScheme: auto + hideColorSchemeToggle: false + maxSeeAlsoItems: 5 + customCSS: [] + customSCSS: [] + customJS: [] + customRemoteJS: [] + social: + - name: github + icon: fa-brands fa-github fa-2x + weight: 1 + url: "https://github.com/tiennm99" + - name: gitlab + icon: fa-brands fa-gitlab fa-2x + weight: 2 + url: "https://gitlab.com/miti99" + - name: facebook + icon: fa-brands fa-facebook fa-2x + weight: 3 + url: "https://facebook.com/miti99" + - name: youtube + icon: fa-brands fa-youtube fa-2x + weight: 4 + url: "https://youtube.com/@miti99" + - name: linkedin + icon: fa-brands fa-linkedin fa-2x + weight: 5 + url: "https://www.linkedin.com/in/miti99" + - name: X + icon: fa-brands fa-x-twitter fa-2x + weight: 6 + url: "https://twitter.com/tienthieusac" + - name: RSS + icon: fa-solid fa-rss fa-2x + weight: 7 + url: index.xml + rel: alternate + type: application/rss+xml + giscus: + repo: tiennm99/tiennm99.github.io + repoID: R_kgDOILzXrw + category: Announcements + categoryID: DIC_kwDOILzXr84CeYAw + mapping: pathname + term: + strict: 0 + reactionsEnabled: 1 + emitMetadata: 0 + inputPosition: top + theme: dark + lang: + loading: lazy + +taxonomies: + category: categories + series: series + tag: tags + author: authors + +languages: + vi: + languageName: ":vi:" + menu: + main: + - name: About + weight: 1 + url: about/ + - name: Blog + weight: 2 + url: posts/ + - name: Pages + weight: 3 + url: pages/ + - name: Tags + weight: 4 + url: tags/ + - name: Web CV + url: https://tiennm99.github.io/webcv + - name: PDF CV + url: https://tiennm99.github.io/cv/miti99.pdf diff --git a/content/archives.md b/content/archives.md deleted file mode 100644 index eaf359b..0000000 --- a/content/archives.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Archive" -layout: "archives" -# url: "/archives" -summary: "archives" ---- diff --git a/content/search.md b/content/search.md deleted file mode 100644 index 5d0c035..0000000 --- a/content/search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: "Tìm kiếm" -placeholder: Nội dung cần tìm -layout: "search" ---- diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html deleted file mode 100644 index 37f3834..0000000 --- a/layouts/partials/comments.html +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/assets/img/avatar.jpg b/static/images/avatar.jpg similarity index 100% rename from assets/img/avatar.jpg rename to static/images/avatar.jpg diff --git a/assets/img/favicon.png b/static/images/favicon.png similarity index 100% rename from assets/img/favicon.png rename to static/images/favicon.png diff --git a/assets/img/logo.png b/static/images/logo.png similarity index 100% rename from assets/img/logo.png rename to static/images/logo.png diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 index a2eb47b..0000000 --- a/themes/PaperMod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a2eb47bb4b805116dcd34c1605d39835121f8dbe diff --git a/themes/hugo-coder b/themes/hugo-coder new file mode 160000 index 0000000..f69d6d6 --- /dev/null +++ b/themes/hugo-coder @@ -0,0 +1 @@ +Subproject commit f69d6d6da728790a5f0bb1c5e2047174bc8f185c