2025-05-20 02:59:55 First Commit
This commit is contained in:
33
config/_default/hugo.toml
Normal file
33
config/_default/hugo.toml
Normal file
@@ -0,0 +1,33 @@
|
||||
# -- Site Configuration --
|
||||
# Refer to the theme docs for more details about each of these parameters.
|
||||
# https://nunocoracao.github.io/blowfish/docs/getting-started/
|
||||
|
||||
theme = "blowfish"
|
||||
baseURL = "https://swangnice.com/"
|
||||
defaultContentLanguage = "en"
|
||||
|
||||
enableRobotsTXT = true
|
||||
[pagination]
|
||||
pagerSize = 20
|
||||
summaryLength = 30
|
||||
|
||||
buildDrafts = false
|
||||
buildFuture = false
|
||||
|
||||
enableEmoji = true
|
||||
|
||||
# googleAnalytics = "G-XXXXXXXXX"
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
category = "categories"
|
||||
author = "authors"
|
||||
series = "series"
|
||||
|
||||
[sitemap]
|
||||
changefreq = 'daily'
|
||||
filename = 'sitemap.xml'
|
||||
priority = 0.5
|
||||
|
||||
[outputs]
|
||||
home = ["HTML", "RSS", "JSON"]
|
||||
25
config/_default/languages.en.toml
Normal file
25
config/_default/languages.en.toml
Normal file
@@ -0,0 +1,25 @@
|
||||
languageCode = "en"
|
||||
languageName = "English"
|
||||
weight = 1
|
||||
title = "SWang Nice"
|
||||
contentDir = 'content/en'
|
||||
|
||||
|
||||
[params]
|
||||
displayName = "EN"
|
||||
isoCode = "en"
|
||||
rtl = false
|
||||
# logo = "img/logo.png"
|
||||
description = "My awesome website (English)"
|
||||
# copyright = "Copy, _right?_ :thinking_face:"
|
||||
dateFormat = "2 January 2006"
|
||||
|
||||
[params.author]
|
||||
name = "SWang"
|
||||
image = "img/avatar.png"
|
||||
headline = "Welcome to my website"
|
||||
bio = "New Graduate Engineer, interested in Robotics and AI"
|
||||
links = [
|
||||
{ link = "https://swangnice.com" },
|
||||
{ github = "https://github.com/swangnice" }
|
||||
]
|
||||
26
config/_default/languages.zh-CN.toml
Normal file
26
config/_default/languages.zh-CN.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
languageCode = "zh-CN"
|
||||
languageName = "简体中文"
|
||||
weight = 2
|
||||
title = "Swangnice的空间"
|
||||
contentDir = 'content/zh'
|
||||
|
||||
|
||||
[params]
|
||||
displayName = "CN"
|
||||
isoCode = "zh-CN"
|
||||
rtl = false
|
||||
# logo = "img/logo.png"
|
||||
description = "我的网站(中文)"
|
||||
# copyright = "Copy, _right?_ :thinking_face:"
|
||||
|
||||
dateFormat = "2 January 2006"
|
||||
|
||||
[params.author]
|
||||
name = "SWang"
|
||||
image = "img/avatar.png"
|
||||
headline = "欢迎来到我的网站"
|
||||
bio = "新毕业工程师,对机器人和人工智能感兴趣"
|
||||
links = [
|
||||
{ link = "https://swangnice.com" },
|
||||
{ github = "https://github.com/swangnice" }
|
||||
]
|
||||
13
config/_default/markup.toml
Normal file
13
config/_default/markup.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
# -- Markup --
|
||||
# These settings are required for the theme to function.
|
||||
|
||||
[goldmark]
|
||||
[goldmark.renderer]
|
||||
unsafe = true
|
||||
|
||||
[highlight]
|
||||
noClasses = false
|
||||
|
||||
[tableOfContents]
|
||||
startLevel = 1
|
||||
endLevel = 4
|
||||
96
config/_default/menus.en.toml
Normal file
96
config/_default/menus.en.toml
Normal file
@@ -0,0 +1,96 @@
|
||||
# -- Main Menu --
|
||||
# The main menu is displayed in the header at the top of the page.
|
||||
# Acceptable parameters are name, pageRef, page, url, title, weight.
|
||||
#
|
||||
# The simplest menu configuration is to provide:
|
||||
# name = The name to be displayed for this menu link
|
||||
# pageRef = The identifier of the page or section to link to
|
||||
#
|
||||
# By default the menu is ordered alphabetically. This can be
|
||||
# overridden by providing a weight value. The menu will then be
|
||||
# ordered by weight from lowest to highest.
|
||||
|
||||
[[main]]
|
||||
name = "Home"
|
||||
url = "/en/"
|
||||
weight = 1
|
||||
|
||||
# Notes
|
||||
[[main]]
|
||||
identifier = "notes"
|
||||
name = "Notes"
|
||||
pageRef = "/en/notes/"
|
||||
weight = 10
|
||||
|
||||
[[main]]
|
||||
name = "Coding"
|
||||
url = "/en/notes/coding/"
|
||||
parent = "notes"
|
||||
weight = 10
|
||||
|
||||
[[main]]
|
||||
name = "PDF Collection"
|
||||
url = "/en/notes/pdf/"
|
||||
parent = "notes"
|
||||
weight = 20
|
||||
|
||||
# Projects
|
||||
[[main]]
|
||||
identifier = "projects"
|
||||
name = "Projects"
|
||||
pageRef = "/en/projects/"
|
||||
weight = 20
|
||||
|
||||
[[main]]
|
||||
name = "AI"
|
||||
url = "/en/projects/ai/"
|
||||
parent = "projects"
|
||||
weight = 10
|
||||
|
||||
[[main]]
|
||||
name = "Embedded Systems"
|
||||
url = "/en/projects/embedded/"
|
||||
parent = "projects"
|
||||
weight = 20
|
||||
|
||||
[[main]]
|
||||
name = "Game"
|
||||
url = "/en/projects/game/"
|
||||
parent = "projects"
|
||||
weight = 30
|
||||
|
||||
[[main]]
|
||||
name = "Robotics"
|
||||
url = "/en/projects/robotics/"
|
||||
parent = "projects"
|
||||
weight = 40
|
||||
|
||||
|
||||
|
||||
# Archive
|
||||
[[main]]
|
||||
name = "Archive"
|
||||
pageRef = "/en/archive/"
|
||||
weight = 70
|
||||
|
||||
[[main]]
|
||||
identifier = "web"
|
||||
pre = "link"
|
||||
url = "https://swangnice.com"
|
||||
weight = 80
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
url = "https://github.com/swangnice"
|
||||
weight = 90
|
||||
|
||||
# -- Footer Menu --
|
||||
# The footer menu is displayed at the bottom of the page, just before
|
||||
# the copyright notice. Configure as per the main menu above.
|
||||
|
||||
|
||||
[[footer]]
|
||||
name = "Tags"
|
||||
pageRef = "tags"
|
||||
weight = 10
|
||||
40
config/_default/menus.zh-CN.toml
Normal file
40
config/_default/menus.zh-CN.toml
Normal file
@@ -0,0 +1,40 @@
|
||||
# -- Main Menu --
|
||||
# The main menu is displayed in the header at the top of the page.
|
||||
# Acceptable parameters are name, pageRef, page, url, title, weight.
|
||||
#
|
||||
# The simplest menu configuration is to provide:
|
||||
# name = The name to be displayed for this menu link
|
||||
# pageRef = The identifier of the page or section to link to
|
||||
#
|
||||
# By default the menu is ordered alphabetically. This can be
|
||||
# overridden by providing a weight value. The menu will then be
|
||||
# ordered by weight from lowest to highest.
|
||||
|
||||
[[main]]
|
||||
name = "Blog"
|
||||
pageRef = "posts"
|
||||
weight = 10
|
||||
|
||||
[[main]]
|
||||
identifier = "web"
|
||||
pre = "link"
|
||||
url = "https://swangnice.com"
|
||||
weight = 40
|
||||
|
||||
[[main]]
|
||||
identifier = "github"
|
||||
pre = "github"
|
||||
url = "https://github.com/swangnice"
|
||||
weight = 50
|
||||
|
||||
|
||||
|
||||
# -- Footer Menu --
|
||||
# The footer menu is displayed at the bottom of the page, just before
|
||||
# the copyright notice. Configure as per the main menu above.
|
||||
|
||||
|
||||
[[footer]]
|
||||
name = "Tags"
|
||||
pageRef = "tags"
|
||||
weight = 10
|
||||
3
config/_default/module.toml
Normal file
3
config/_default/module.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[hugoVersion]
|
||||
extended = false
|
||||
min = "0.87.0"
|
||||
97
config/_default/params.toml
Normal file
97
config/_default/params.toml
Normal file
@@ -0,0 +1,97 @@
|
||||
# -- Theme Options --
|
||||
# These options control how the theme functions and allow you to
|
||||
# customise the display of your website.
|
||||
#
|
||||
# Refer to the theme docs for more details about each of these parameters.
|
||||
# https://nunocoracao.github.io/blowfish/docs/configuration/#theme-parameters
|
||||
|
||||
colorScheme = "slate"
|
||||
defaultAppearance = "light" # valid options: light or dark
|
||||
autoSwitchAppearance = true
|
||||
|
||||
enableSearch = true
|
||||
enableCodeCopy = true
|
||||
|
||||
mainSections = ["posts"]
|
||||
# robots = ""
|
||||
|
||||
[header]
|
||||
layout = "basic" # valid options: basic, fixed
|
||||
|
||||
[footer]
|
||||
# showMenu = true
|
||||
showCopyright = true
|
||||
showThemeAttribution = true
|
||||
showAppearanceSwitcher = true
|
||||
showScrollToTop = true
|
||||
|
||||
[homepage]
|
||||
layout = "profile" # valid options: page, profile, hero, card, background, custom
|
||||
#homepageImage = "IMAGE.jpg" # used in: hero, and card
|
||||
showRecent = true
|
||||
showRecentItems = 5
|
||||
showMoreLink = true
|
||||
showMoreLinkDest = "/blowfish_lite/posts"
|
||||
cardView = false
|
||||
cardViewScreenWidth = false
|
||||
layoutBackgroundBlur = false # only used when layout equals background
|
||||
|
||||
[article]
|
||||
showDate = true
|
||||
#showViews = true
|
||||
#showLikes = true
|
||||
showDateUpdated = false
|
||||
showAuthor = true
|
||||
showHero = true
|
||||
heroStyle = "basic" # valid options: basic, big, background
|
||||
showBreadcrumbs = true
|
||||
showDraftLabel = true
|
||||
showEdit = false
|
||||
# editURL = "https://github.com/username/repo/"
|
||||
editAppendPath = true
|
||||
seriesOpened = false
|
||||
showHeadingAnchors = true
|
||||
showPagination = true
|
||||
invertPagination = false
|
||||
showReadingTime = true
|
||||
showTableOfContents = true
|
||||
showTaxonomies = false
|
||||
showAuthorsBadges = false
|
||||
showWordCount = true
|
||||
showSummary = true
|
||||
sharingLinks = [ "linkedin", "twitter", "whatsapp", "pinterest", "reddit", "facebook", "email"]
|
||||
|
||||
[list]
|
||||
showBreadcrumbs = false
|
||||
showSummary = true
|
||||
showTableOfContents = false
|
||||
showCards = false
|
||||
groupByYear = true
|
||||
cardView = false
|
||||
cardViewScreenWidth = false
|
||||
constrainItemsWidth = true
|
||||
|
||||
[sitemap]
|
||||
excludedKinds = []
|
||||
|
||||
[taxonomy]
|
||||
showTermCount = true
|
||||
|
||||
[firebase]
|
||||
# apiKey = "XXXXXX"
|
||||
# authDomain = "XXXXXX"
|
||||
# projectId = "XXXXXX"
|
||||
# storageBucket = "XXXXXX"
|
||||
# messagingSenderId = "XXXXXX"
|
||||
# appId = "XXXXXX"
|
||||
# measurementId = "XXXXXX"
|
||||
|
||||
[fathomAnalytics]
|
||||
# site = "ABC12345"
|
||||
# domain = "llama.yoursite.com"
|
||||
|
||||
[verification]
|
||||
# google = ""
|
||||
# bing = ""
|
||||
# pinterest = ""
|
||||
# yandex = ""
|
||||
Reference in New Issue
Block a user