diff --git a/src/main/java/de/holarse/web/controller/NewsController.java b/src/main/java/de/holarse/web/controller/NewsController.java index 9e2fe8a4..81b13c38 100644 --- a/src/main/java/de/holarse/web/controller/NewsController.java +++ b/src/main/java/de/holarse/web/controller/NewsController.java @@ -70,7 +70,7 @@ public class NewsController { private NewsCategoryRepository newsCategoryRepository; @GetMapping - public ModelAndView index(@PageableDefault(sort = {"title"}, value = NEWS_ARTICLES_DEFAULT_PAGE_SIZE) final PageRequest pageable, final ModelAndView mv) { + public ModelAndView index(@PageableDefault(sort = {"title"}, value = NEWS_ARTICLES_DEFAULT_PAGE_SIZE) final Pageable pageable, final ModelAndView mv) { mv.setViewName("layouts/bare"); mv.addObject("title", "Die Linuxspiele-Seite für Linuxspieler"); mv.addObject(WebDefines.DEFAULT_VIEW_ATTRIBUTE_NAME, "sites/news/index"); diff --git a/src/main/webapp/WEB-INF/templates/sites/news/index.html b/src/main/webapp/WEB-INF/templates/sites/news/index.html index 4ee68764..89bb5281 100644 --- a/src/main/webapp/WEB-INF/templates/sites/news/index.html +++ b/src/main/webapp/WEB-INF/templates/sites/news/index.html @@ -7,7 +7,7 @@