diff --git a/README.md b/README.md
index 14a6179..8958a74 100644
--- a/README.md
+++ b/README.md
@@ -5,4 +5,4 @@ Source code of [my blog](https://miti99.com).
Credits:
- [Hugo](https://gohugo.io/)
-- [Hugo Theme Stack](https://stack.jimmycai.com/e)
+- [hugo-PaperMod](https://github.com/adityatelange/hugo-PaperMod)
diff --git a/assets/css/extended/custom.css b/assets/css/extended/custom.css
new file mode 100644
index 0000000..2168dcc
--- /dev/null
+++ b/assets/css/extended/custom.css
@@ -0,0 +1,17 @@
+/* Custom styles added to demo */
+
+.twitter-tweet {
+ margin: auto;
+}
+
+iframe {
+ border-radius: var(--radius) !important;
+}
+
+.home-info ul {
+ padding-inline-start: 20px;
+}
+
+.entry-cover img {
+ border: 1px solid var(--border);
+}
diff --git a/config/_default/hugo.yml b/config/_default/hugo.yml
index abbd157..dd2716c 100644
--- a/config/_default/hugo.yml
+++ b/config/_default/hugo.yml
@@ -1,12 +1,21 @@
-baseurl: https://miti99.com
-languageCode: vi
-theme: hugo-theme-stack
+# If your site is in 'https', then make sure your base url isn't written using 'http' otherwise your sitemap would
+# contain http (as opposeed to https) URLs. This would affect Google indexing of your URLs.
+baseURL: "https://miti99.com/"
title: miti99
-defaultContentLanguage: vi
-hasCJKLanguage: false
-pagination:
- pagerSize: 5
-timeout: 3600s
+copyright: "© [miti99](https://github.com/tiennm99/)"
+theme: [hugo-PaperMod]
+
+enableInlineShortcodes: true
enableRobotsTXT: true
+buildDrafts: false
+buildFuture: false
+buildExpired: false
+enableEmoji: true
+pygmentsUseClasses: true
+mainsections: ["posts", "papermod"]
+
+languageCode: vi
+defaultContentLanguage: vi
+timeout: 3600s
timeZone: Asia/Ho_Chi_Minh
enableGitInfo: true
diff --git a/config/_default/markup.yml b/config/_default/markup.yml
index 70b26f1..cdc1279 100644
--- a/config/_default/markup.yml
+++ b/config/_default/markup.yml
@@ -1,29 +1,15 @@
goldmark:
renderer:
unsafe: true
- extensions:
- passthrough:
- enable: true
- delimiters:
- block:
- - - \[
- - \]
- - - $$
- - $$
- inline:
- - - \(
- - \)
-
+highlight:
+ noClasses: false
+ anchorLineNos: true
+ codeFences: true
+ guessSyntax: true
+ lineNos: true
+ style: dracula
+ tabWidth: 2
tableOfContents:
endLevel: 4
ordered: true
startLevel: 2
-
-highlight:
- noClasses: false
- codeFences: true
- guessSyntax: true
- lineNoStart: 1
- lineNos: true
- lineNumbersInTable: true
- tabWidth: 2
diff --git a/config/_default/menu.yml b/config/_default/menu.yml
deleted file mode 100644
index e4143f3..0000000
--- a/config/_default/menu.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-main: []
-
-social:
- - identifier: github
- name: GitHub
- url: https://github.com/tiennm99
- params:
- icon: brand-github
-
- - 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/minify.yml b/config/_default/minify.yml
new file mode 100644
index 0000000..1f60dc4
--- /dev/null
+++ b/config/_default/minify.yml
@@ -0,0 +1,2 @@
+disableXML: true
+# minifyOutput: true
diff --git a/config/_default/outputs.yml b/config/_default/outputs.yml
new file mode 100644
index 0000000..cdc8be5
--- /dev/null
+++ b/config/_default/outputs.yml
@@ -0,0 +1,4 @@
+home:
+ - HTML
+ - RSS
+ - JSON
diff --git a/config/_default/pagination.yml b/config/_default/pagination.yml
new file mode 100644
index 0000000..ebdb18e
--- /dev/null
+++ b/config/_default/pagination.yml
@@ -0,0 +1,2 @@
+disableAliases: false
+pagerSize: 5
diff --git a/config/_default/params.yml b/config/_default/params.yml
index 9e2592c..b39834a 100644
--- a/config/_default/params.yml
+++ b/config/_default/params.yml
@@ -1,129 +1,95 @@
-mainSections:
- - post
-featuredImageField: image
-rssFullContent: true
-favicon: /favicon.png
+env: production # to enable google analytics, opengraph, twitter-cards and schema.
+description: "miti99 - https://github.com/tiennm99/miti99"
+author: miti99
+# author: ["Me", "You"] # multiple authors
-footer:
- since: 2020
- customText: "Made by miti99 with ❤️"
+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: ["images/papermod-cover.png"]
-dateFormat:
- published: Jan 02, 2006
- lastUpdated: Jan 02, 2006 15:04 MST
-
-sidebar:
- emoji: 🧑💻
- subtitle: A developer wants to be magician
- avatar:
- enabled: true
- local: true
- src: img/avatar.jpg
-
-article:
- headingAnchor: false
- math: false
- toc: true
- readingTime: true
- license:
- enabled: true
- default: Licensed under CC BY-NC-SA 4.0
-
-widgets:
- homepage:
- - type: search
- - type: archives
- params:
- limit: 5
- - type: categories
- params:
- limit: 10
- - type: tag-cloud
- params:
- limit: 10
- page:
- - type: toc
-
-opengraph:
- twitter:
- site: tienthieusac
- card: summary_large_image
-
-defaultImage:
- opengraph:
- enabled: false
- local: false
- src: img/logo.png
-
-colorScheme:
- toggle: true
- default: dark
-
-imageProcessing:
- cover:
- enabled: true
- content:
- enabled: true
-
-comments:
+profileMode:
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: ""
+ title: miti99
+ imageUrl: "img/avatar.jpg"
+ imageTitle: miti99's avatar
+ # imageWidth: 120
+ # imageHeight: 120
+ buttons:
+ - name: Archives
+ url: archives
+ - name: Tags
+ url: tags
+
+homeInfoParams:
+ Title: "PaperMod's Demo"
+ Content: >
+ 👋 Welcome to demo page of Hugo's theme PaperMod!
+
+ - **PaperMod** is designed to be clean and simple but fast and responsive theme with useful feature-set that enhances UX.
+
+ - Feel free to show your support by giving us a star 🌟 on GitHub and sharing with your friends and social media .
+
+ - PaperMod is based on theme [Paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3).
+
+socialIcons:
+ - name: github
+ title: View Source on Github
+ url: "https://github.com/adityatelange/hugo-PaperMod"
+ - name: Discord
+ title: Join discord community
+ url: "https://discord.gg/ahpmTvhVmp"
+ - name: X
+ title: Share PaperMod on X/Twitter
+ url: "https://x.com/intent/tweet/?text=Checkout%20Hugo%20PaperMod%20%E2%9C%A8%0AA%20fast,%20clean,%20responsive%20Hugo%20theme.&url=https://github.com/adityatelange/hugo-PaperMod&hashtags=Hugo,PaperMod"
+ - name: KoFi
+ title: Buy me a Ko-Fi :)
+ url: "https://ko-fi.com/adityatelange"
+
+editPost:
+ URL: "https://github.com/tiennm99/miti99/tree/exampleSite/content"
+ Text: "Suggest Changes" # edit text
+ appendFilePath: true # to append file path to Edit link
+
+# label:
+# iconSVG: ''
+# text: "Home"
+# icon: icon.png
+# iconHeight: 35
+
+# analytics:
+# google:
+# SiteVerificationTag: "XYZabc"
+
+assets:
+ disableHLJS: true
+# favicon: ""
+# favicon16x16: ""
+# favicon32x32: ""
+# apple_touch_icon: ""
+# safari_pinned_tab: ""
+
+# cover:
+# hidden: true # hide everywhere but not in structured data
+# hiddenInList: true # hide on list pages and home
+# hiddenInSingle: true # hide on single page
+
+# fuseOpts:
+# isCaseSensitive: false
+# shouldSort: true
+# location: 0
+# distance: 1000
+# threshold: 0.4
+# minMatchCharLength: 0
+# keys: ["title", "permalink", "summary", "content"]
diff --git a/config/_default/permalinks.yml b/config/_default/permalinks.yml
deleted file mode 100644
index 7376221..0000000
--- a/config/_default/permalinks.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-#post: /p/:slug/
-#page: /:slug/
diff --git a/config/_default/privacy.yml b/config/_default/privacy.yml
new file mode 100644
index 0000000..f28106f
--- /dev/null
+++ b/config/_default/privacy.yml
@@ -0,0 +1,13 @@
+# vimeo:
+# disabled: false
+# simple: true
+# twitter:
+# disabled: false
+# enableDNT: true
+# simple: true
+# instagram:
+# disabled: false
+# simple: true
+# youtube:
+# disabled: false
+# privacyEnhanced: true
diff --git a/config/_default/related.yml b/config/_default/related.yml
index f441f74..30131d2 100644
--- a/config/_default/related.yml
+++ b/config/_default/related.yml
@@ -1,8 +1,8 @@
includeNewer: true
-threshold: 60
-toLower: false
indices:
- name: tags
weight: 100
- name: categories
weight: 200
+threshold: 60
+toLower: false
diff --git a/config/_default/services.yml b/config/_default/services.yml
index f2bb136..4f28fdc 100644
--- a/config/_default/services.yml
+++ b/config/_default/services.yml
@@ -1,2 +1,6 @@
+instagram:
+ disableInlineCSS: true
+x:
+ disableInlineCSS: true
googleAnalytics:
id: G-SWXREMSL5Q
diff --git a/content/archives.md b/content/archives.md
new file mode 100644
index 0000000..eaf359b
--- /dev/null
+++ b/content/archives.md
@@ -0,0 +1,6 @@
+---
+title: "Archive"
+layout: "archives"
+# url: "/archives"
+summary: "archives"
+---
diff --git a/content/page/archives/index.md b/content/page/archives/index.md
deleted file mode 100644
index cbea2f9..0000000
--- a/content/page/archives/index.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: Archives
-layout: archives
-slug: archives
-menu:
- main:
- weight: -70
- params:
- icon: archives
----
diff --git a/content/page/search/index.md b/content/page/search/index.md
deleted file mode 100644
index b2a5943..0000000
--- a/content/page/search/index.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-title: "Search"
-slug: "search"
-layout: "search"
-outputs:
- - html
- - json
-menu:
- main:
- weight: -60
- params:
- icon: search
----
\ No newline at end of file
diff --git a/content/search.md b/content/search.md
new file mode 100644
index 0000000..5c6170b
--- /dev/null
+++ b/content/search.md
@@ -0,0 +1,5 @@
+---
+title: "Search"
+placeholder: Search demo site with full text fuzzy search ...
+layout: "search"
+---
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
new file mode 100644
index 0000000..d176d59
--- /dev/null
+++ b/layouts/partials/comments.html
@@ -0,0 +1,16 @@
+
diff --git a/themes/hugo-PaperMod b/themes/hugo-PaperMod
index a2eb47b..3e53621 160000
--- a/themes/hugo-PaperMod
+++ b/themes/hugo-PaperMod
@@ -1 +1 @@
-Subproject commit a2eb47bb4b805116dcd34c1605d39835121f8dbe
+Subproject commit 3e5362100777a9426e05ef30e972800cabb54f21