code: @Override
      public void generate(Site site) {
          log.debug("Generating paginate pages...");
  
          List<Page> pages = site.getAllPages();
          SiteConfig config = site.getConfig();
  
          List<Page> allNewPages = new ArrayList<Page>();
          for (Page page : pages) {
              if (isPaginationEnabled(config, page)) {
  
                  log.debug("[{}]: Paginating...", page.getUrl());
                  List<Page> newPages = paginate(site, page);
                  if (newPages != null) {
                      allNewPages.addAll(newPages);
                  }
              }
          }
  
          if (!allNewPages.isEmpty()) {
              log.debug("Add {} paginated pages.", allNewPages.size());
              for(Page page: allNewPages){
                  site.addPage(page);
                  log.debug(page.getUrl());
              }
          }
      }
docs: /* (non-Javadoc)
  @see org.opoo.press.Generator#generate(org.opoo.press.Site)