From 3e79a40e21f073f035b35254fe9fc9747d0142b9 Mon Sep 17 00:00:00 2001 From: Mark Nguyen <1138440+canxerian@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:56:43 +0100 Subject: [PATCH] Add "paper" theme --- .gitmodules | 3 +++ hugo.toml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++-- themes/paper | 1 + 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 themes/paper diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1dd8999 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/paper"] + path = themes/paper + url = https://github.com/nanxiaobei/hugo-paper diff --git a/hugo.toml b/hugo.toml index 7e568b8..6861ffa 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,3 +1,64 @@ -baseURL = 'https://example.org/' +baseURL = 'https://canxerian.com/' languageCode = 'en-us' -title = 'My New Hugo Site' +title = 'Canxerian software dev blog' +theme = 'paper' + +# disqusShortname = 'YOUR_DISQUS_SHORTNAME' # use disqus comments + +[params] + # color style + color = 'light' # linen, wheat, gray, light + + # header social icons + github = 'canxerian' # github.com/YOUR_GITHUB_ID + linkedin = 'canxerian' # linkedin.com/in/YOUR_LINKEDIN_ID +# twitter = 'YOUR_TWITTER_ID' # twitter.com/YOUR_TWITTER_ID +# instagram = 'YOUR_INSTAGRAM_ID' # instagram.com/YOUR_INSTAGRAM_ID +# mastodon = 'YOUR_MASTODON_LINK' # e.g. 'https://mastodon.instance/@xxx' +# threads = '@YOUR_THREADS_ID' # threads.net/@YOUR_THREADS_ID +# rss = true # show rss icon + + # home page profile + avatar = 'mgb.nguyen@gmail.com' # gravatar email or image url + name = 'Mark Nguyen' + bio = 'Software engineering advice' + + + # misc +# disableHLJS = true # disable highlight.js +# disablePostNavigation = true # disable post navigation +# monoDarkIcon = true # show monochrome dark mode icon +# gravatarCdn = 'GRAVATAR_CDN_LINK' # e.g. 'https://cdn.v2ex.com/gravatar/' +# math = true # enable KaTeX math typesetting globally +# localKatex = false # use local KaTeX js/css instead of CDN +# graphCommentId = "YOUR_GRAPH_COMMENT_ID" # use graph comment (disqus alternative) +# favicon = "favicon.ico" # customize the default favicon +# appleTouchIcon = "apple-touch-icon.png" # customize the default Apple touch icon + + # giscus +# [params.giscus] +# repo = 'YOUR_GISCUS_REPO' # see https://giscus.app for more details +# repoId = 'YOUR_GISCUS_REPO_ID' +# category = 'YOUR__GISCUS_CATEGORY' +# categoryId = 'YOUR_GISCUS_CATEGORY_ID' +# mapping = 'pathname' +# theme = 'light' +# lang = 'zh-CN' +[menu] + + [[menu.main]] + identifier = "about" + name = "About" + url = "/about/" + weight = 10 + [[menu.main]] + identifier = "contact" + name = "Contact" + url = "/contact/" + weight = 10 + + +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true \ No newline at end of file diff --git a/themes/paper b/themes/paper new file mode 160000 index 0000000..41c8067 --- /dev/null +++ b/themes/paper @@ -0,0 +1 @@ +Subproject commit 41c80671f2c86b6397617168b347b829b086b48b