Merge branch 'test' of git.backyard.segmentfault.com:opensource/answer into test

This commit is contained in:
aichy126 2022-12-18 00:15:08 +08:00
commit e32f74e5e2
4 changed files with 5 additions and 2 deletions

View File

@ -151,6 +151,9 @@ func initSiteInfo(engine *xorm.Engine, language, siteName, siteURL, contactEmail
Content: string(loginConfigDataBytes),
Status: 1,
})
if err != nil {
return err
}
seoData := map[string]string{
"robots": defaultSEORobotTxt + siteURL + "/sitemap.xml",

View File

@ -316,6 +316,7 @@ func (us *UserService) UserRegisterByEmail(ctx context.Context, registerUserInfo
userInfo.IPInfo = registerUserInfo.IP
userInfo.MailStatus = entity.EmailStatusToBeVerified
userInfo.Status = entity.UserStatusAvailable
userInfo.LastLoginDate = time.Now()
err = us.userRepo.AddUser(ctx, userInfo)
if err != nil {
return nil, err

View File

@ -53,7 +53,7 @@
// style for colored navbar
&.theme-light {
background: linear-gradient(180deg, rgb(var(--bs-light-rgb)) 0%, rgba(var(--bs-light-rgb), 0.95) 100%);
background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.95) 100%);
}
}

View File

@ -215,7 +215,6 @@ a {
max-width: 100%;
}
p {
word-break: break-word;
> code {
background-color: #e9ecef;
color: #212529;