mirror of https://github.com/halo-dev/halo
Fix sitemap.html show error
parent
c5bd98caf4
commit
72831103a4
|
@ -106,7 +106,7 @@ public class ContentFeedController {
|
|||
* @param model model
|
||||
* @return String
|
||||
*/
|
||||
@GetMapping(value = "sitemap.html", produces = MediaType.TEXT_PLAIN_VALUE)
|
||||
@GetMapping(value = "sitemap.html")
|
||||
public String sitemapHtml(Model model,
|
||||
@PageableDefault(size = Integer.MAX_VALUE, sort = "createTime", direction = DESC) Pageable pageable) {
|
||||
model.addAttribute("posts", buildPosts(pageable));
|
||||
|
|
Loading…
Reference in New Issue