File tree Expand file tree Collapse file tree
src/main/java/run/halo/sitemap Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import java .util .function .Function ;
99import lombok .AllArgsConstructor ;
1010import org .apache .commons .lang3 .StringUtils ;
11- import org .apache .commons .lang3 .Strings ;
1211import org .springframework .stereotype .Component ;
1312import reactor .core .publisher .Flux ;
1413import run .halo .app .core .extension .content .Category ;
@@ -99,9 +98,10 @@ private Flux<UrlEntryMeta> urlsForListPages() {
9998 .filter (StringUtils ::isNotBlank )
10099 .map (json -> JsonUtils .jsonToObject (json , ThemeRouteRules .class ))
101100 .orElseGet (ThemeRouteRules ::empty );
102- return List .of (Strings .CS .prependIfMissing (themeRouteRules .getTags (), "/" ),
103- Strings .CS .prependIfMissing (themeRouteRules .getCategories (), "/" ),
104- Strings .CS .prependIfMissing (themeRouteRules .getArchives (), "/" )
101+ return List .of (
102+ StringUtils .prependIfMissing (themeRouteRules .getTags (), "/" ),
103+ StringUtils .prependIfMissing (themeRouteRules .getCategories (), "/" ),
104+ StringUtils .prependIfMissing (themeRouteRules .getArchives (), "/" )
105105 );
106106 })
107107 .flatMapMany (Flux ::fromIterable )
You can’t perform that action at this time.
0 commit comments