new: Added friends page and adjust page style

This commit is contained in:
2024-12-19 15:21:36 +08:00
parent 4491e806e0
commit 2fa6e78626
16 changed files with 240 additions and 148 deletions

13
config/mFriend.go Normal file
View File

@@ -0,0 +1,13 @@
package config
type mFriend struct {
Title string `json:"title"`
List []mFriendItem `json:"list"`
}
type mFriendItem struct {
Name string `yaml:"name"`
Link string `yaml:"link"`
Avatar string `yaml:"avatar"`
Description string `yaml:"description"`
}

View File

@@ -1,8 +1,9 @@
package config
type mSite struct {
Info mInfo `yaml:"info"`
Menu mMenu `yaml:"menu"`
Post mPost `yaml:"post"`
About mAbout `yaml:"about"`
Info mInfo `yaml:"info"`
Menu mMenu `yaml:"menu"`
Post mPost `yaml:"post"`
About mAbout `yaml:"about"`
Friend mFriend `yaml:"friend"`
}