From d233f2e95db8c015442242224c2d94576576a293 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=9C=E6=B2=9B=E7=84=B6?= <2083856903@qq.com>
Date: Mon, 27 May 2024 11:07:43 +0800
Subject: [PATCH] modify config & about page
---
content/about.md | 19 ++++++
hugo.toml | 159 ++++++++++++++++++++++++++++++++++++++++++-----
2 files changed, 164 insertions(+), 14 deletions(-)
create mode 100644 content/about.md
diff --git a/content/about.md b/content/about.md
new file mode 100644
index 0000000..03351b8
--- /dev/null
+++ b/content/about.md
@@ -0,0 +1,19 @@
++++
+title = "About"
+date = "2024-05-27"
+aliases = ["about-us","about-hugo","contact"]
+[ author ]
+ name = "Peiran Du"
++++
+
+Hugo is the **world’s fastest framework for building websites**. It is written in Go.
+
+It makes use of a variety of open source projects including:
+
+* https://github.com/russross/blackfriday
+* https://github.com/alecthomas/chroma
+* https://github.com/muesli/smartcrop
+* https://github.com/spf13/cobra
+* https://github.com/spf13/viper
+
+Learn more and contribute on [GitHub](https://github.com/gohugoio).
diff --git a/hugo.toml b/hugo.toml
index 51e07b2..9530d56 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -40,6 +40,13 @@ posts = "/posts/:year/:month/:title/"
[blackfriday]
hrefTargetBlank = true
+
+[taxonomies]
+category = "blog"
+tag = "tags"
+series = "series"
+
+
[params]
@@ -105,14 +112,139 @@ justifyContent = false # Set "text-align: justify" to .post-content.
# plausibleDataDomain = 'test.com'
# plausibleScriptSource = 'https://plausible.io/js/script.js'
+[params.author]
+name = "Peiran Du"
-[taxonomies]
-category = "blog"
-tag = "tags"
-series = "series"
+# Custom footer
+# If you want, you can easily override the default footer with your own content.
+#
+[params.footer]
+trademark = 2024
+rss = true
+copyright = false
+author = true
+
+topText = []
+bottomText = [
+ "Powered by Hugo",
+ "Made with ❤ by Peiran Du",
+]
+
+
+# Colors for favicons
+#
+[params.favicon.color]
+mask = "#1b1c1d"
+msapplication = "#1b1c1d"
+theme = "#1b1c1d"
+
+[params.logo]
+logoMark = ">"
+logoText = "$ cd $HOME/"
+logoHomeLink = ""
+# Set true to remove the logo cursor entirely.
+logoCursorDisabled = false
+# Set to a valid CSS color to change the cursor in the logo.
+logoCursorColor = "#88C0D0"
+# Set to a valid CSS time value to change the animation duration, "0s" to disable.
+logoCursorAnimate = "1.5s"
+# Append the current url pathname to logoText
+logoCursorPathname = true
+
+
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# Addon: Startpage portrait
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# Uncomment this if you want a portrait on your start page
+#
+# [params.portrait]
+# path = "/img/image.jpg"
+# alt = "Portrait"
+# maxWidth = "50px"
+
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# Addon: Commento
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# Commento is more than just a comments widget you can embed —
+# it’s a return to the roots of the internet.
+# An internet without the tracking and invasions of privacy.
+# An internet that is simple and lightweight.
+# An internet that is focused on interesting discussions, not ads.
+# A better internet.
+# Uncomment this to enable Commento.
+#
+# [params.commento]
+# url = ""
+
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# Addon: Utteranc.es
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# Utteranc.es is a lightweight comments widget built on GitHub issues.
+# See https://utteranc.es/ for documentation
+# Uncomment this to enable Utteranc.es.
+#
+# [params.utterances]
+# Your GitHub repository
+#
+# repository = ""
+#
+# label used for GitHub issues
+#
+# label = ""
+#
+# Blog Post <-> Issue mapping. This parameter is optional. Possible values are:
+# - pathname
+# - url
+# - title
+# - og:title
+# - issue number
+# - specific term
+#
+# issueTerm = ""
+#
+# Theme used: possible values are:
+# - github-light
+# - github-dark
+# - preferred-color-scheme
+# - github-dark-orange
+# - icy-dark
+# - dark-blue
+# - photon-dark
+# - boxy-light
+# - gruvbox-dark
+#
+# theme = ""
+#
+
+
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+# Addon: Social icons
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+#
+# [[params.social]]
+# name = "twitter"
+# url = "https://twitter.com/"
+
+[[params.social]]
+name = "email"
+url = "dupeiran3@gmail.com"
+
+[[params.social]]
+name = "github"
+url = "https://github.com/dupeiran001"
+
+# [[params.social]]
+# name = "linkedin"
+# url = "https://www.linkedin.com/"
+#
+# [[params.social]]
+# name = "stackoverflow"
+# url = "https://www.stackoverflow.com/"
+#
[languages]
[languages.en]
+weight = 1
title = "Welcome to My Homepage"
copyright = 'CC BY-NC 4.0'
@@ -121,16 +253,15 @@ subtitle = "A simple theme for Hugo"
readOtherPosts = "Read other posts"
keywords = ""
-[languages.en.params.logo]
-logoText = "cd $HOME/"
-logoHomeLink = "/blog/"
-# or
-#
-# path = "/img/your-example-logo.svg"
-# alt = "Your example logo alt text"
# And you can even create generic menu
+[menu]
+[[menu.main]]
+identifier = "posts"
+name = "Posts"
+url = "posts/"
+
[[menu.main]]
-identifier = "blog"
-name = "Blog"
-url = "/posts"
+identifier = "about"
+name = "About"
+url = "about/"