fix(init): set default permalink value

This commit is contained in:
LinkinStars 2023-06-20 10:18:30 +08:00
parent f4b6208f90
commit 3ed9568614
1 changed files with 3 additions and 2 deletions

View File

@ -162,8 +162,9 @@ func (m *Mentor) initSiteInfoThemeConfig() {
}
func (m *Mentor) initSiteInfoSEOConfig() {
seoData := map[string]string{
"robots": defaultSEORobotTxt + m.userData.SiteURL + "/sitemap.xml",
seoData := map[string]interface{}{
"permalink": 1,
"robots": defaultSEORobotTxt + m.userData.SiteURL + "/sitemap.xml",
}
seoDataBytes, _ := json.Marshal(seoData)
_, m.err = m.engine.Context(m.ctx).Insert(&entity.SiteInfo{