feat(theme): change theme to paperMod

This commit is contained in:
tiennm99 committed 2025-09-28 11:26:51 +07:00
1 parent ec0fc3c90c
commit a5f0723cf1
19 files changed
+190 -223

No files matched your search

+1 -1
View File
@@ -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)
+17
View File
@@ -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);
}
+17 -8
View File
@@ -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
+8 -22
View File
@@ -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
-38
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
disableXML: true
# minifyOutput: true
+4
View File
@@ -0,0 +1,4 @@
home:
- HTML
- RSS
- JSON
+2
View File
@@ -0,0 +1,2 @@
disableAliases: false
pagerSize: 5
+92 -126
View File
@@ -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: '<svg xmlns="http://www.w3.org/2000/svg" height="25" viewBox="0 -960 960 960" fill="currentColor"><path d="M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>'
# text: "Home"
# icon: icon.png
# iconHeight: 35
# analytics:
# google:
# SiteVerificationTag: "XYZabc"
assets:
disableHLJS: true
# favicon: "<link / abs url>"
# favicon16x16: "<link / abs url>"
# favicon32x32: "<link / abs url>"
# apple_touch_icon: "<link / abs url>"
# safari_pinned_tab: "<link / abs url>"
# 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"]
-2
View File
@@ -1,2 +0,0 @@
#post: /p/:slug/
#page: /:slug/
+13
View File
@@ -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
+2 -2
View File
@@ -1,8 +1,8 @@
includeNewer: true
threshold: 60
toLower: false
indices:
- name: tags
weight: 100
- name: categories
weight: 200
threshold: 60
toLower: false
+4
View File
@@ -1,2 +1,6 @@
instagram:
disableInlineCSS: true
x:
disableInlineCSS: true
googleAnalytics:
id: G-SWXREMSL5Q
+6
View File
@@ -0,0 +1,6 @@
---
title: "Archive"
layout: "archives"
# url: "/archives"
summary: "archives"
---
-10
View File
@@ -1,10 +0,0 @@
---
title: Archives
layout: archives
slug: archives
menu:
main:
weight: -70
params:
icon: archives
---
-13
View File
@@ -1,13 +0,0 @@
---
title: "Search"
slug: "search"
layout: "search"
outputs:
- html
- json
menu:
main:
weight: -60
params:
icon: search
---
+5
View File
@@ -0,0 +1,5 @@
---
title: "Search"
placeholder: Search demo site with full text fuzzy search ...
layout: "search"
---
+16
View File
@@ -0,0 +1,16 @@
<script src="https://giscus.app/client.js"
data-repo="tiennm99/miti99"
data-repo-id="R_kgDOILzXrw"
data-category="Announcements"
data-category-id="DIC_kwDOILzXr84CeYAw"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="1"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>