删除福利应用
This commit is contained in:
@@ -20,7 +20,7 @@ func IsIndexablePath(raw string) bool {
|
||||
}
|
||||
switch path {
|
||||
case "/list", "/series", "/rank", "/today-update", "/topic", "/tag", "/category",
|
||||
"/download-app", "/application", "/home-road", "/detail", "/play", "/nav",
|
||||
"/download-app", "/home-road", "/detail", "/play", "/nav",
|
||||
"/about-us", "/aboutUs", "/help-center", "/helpCenter":
|
||||
return true
|
||||
default:
|
||||
|
||||
@@ -8,7 +8,6 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"videoweb/app/service/applistser"
|
||||
"videoweb/app/service/configser"
|
||||
"videoweb/app/service/playletser"
|
||||
)
|
||||
@@ -410,7 +409,7 @@ func isCollectionPath(path string) bool {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return path == "/application" || path == "/nav"
|
||||
return path == "/nav"
|
||||
}
|
||||
|
||||
// itemListNode 为首页及列表型页面输出当前 SSR 首屏实际展示的站内详情链接。
|
||||
@@ -449,19 +448,6 @@ func itemListNode(siteURL, pageURL string, data map[string]any) ldThing {
|
||||
urls = append(urls, AbsURL(siteURL, path))
|
||||
}
|
||||
}
|
||||
// 福利应用页是一个可见的应用集合;使用页面实际渲染的链接生成通用
|
||||
// Schema.org ItemList。应用链接为外站落地页,因此不宣称具备 Google
|
||||
// 站内轮播资格,只帮助搜索引擎理解页面集合语义。
|
||||
if categories, ok := data["categories"].([]applistser.CategoryVM); ok {
|
||||
for _, category := range categories {
|
||||
for _, app := range category.Apps {
|
||||
appURL := structuredURL(siteURL, app.URL)
|
||||
if appURL != "" {
|
||||
urls = append(urls, appURL)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
seen := make(map[string]struct{}, len(urls))
|
||||
unique := make([]string, 0, len(urls))
|
||||
@@ -587,7 +573,7 @@ func genericBreadcrumb(siteURL, pageURL string, data map[string]any) ldThing {
|
||||
}
|
||||
|
||||
func hasVisibleBreadcrumb(path string) bool {
|
||||
for _, prefix := range []string{"/list", "/series", "/rank", "/today-update", "/topic", "/tag", "/category", "/richtext", "/application"} {
|
||||
for _, prefix := range []string{"/list", "/series", "/rank", "/today-update", "/topic", "/tag", "/category", "/richtext"} {
|
||||
if path == prefix || strings.HasPrefix(path, prefix+"/") {
|
||||
return true
|
||||
}
|
||||
@@ -668,8 +654,6 @@ func pageDescription(data map[string]any, cfg configser.AppConfigVM, path string
|
||||
}
|
||||
}
|
||||
switch path {
|
||||
case "/application":
|
||||
return "黄果短剧福利应用中心,精选实用应用与福利入口。"
|
||||
case "/download-app":
|
||||
return "下载黄果短剧APP,随时随地追看热门短剧。"
|
||||
case "/home-road":
|
||||
|
||||
Reference in New Issue
Block a user