{"id":19574334,"url":"https://github.com/straticjs/stratic-paginate-indexes","last_synced_at":"2026-05-19T10:38:12.982Z","repository":{"id":57371893,"uuid":"69187055","full_name":"straticjs/stratic-paginate-indexes","owner":"straticjs","description":"Gulp plugin to split Stratic index pages into pages","archived":false,"fork":false,"pushed_at":"2018-12-17T06:23:58.000Z","size":31,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T14:51:12.745Z","etag":null,"topics":["gulp","gulp-plugin","hacktoberfest","javascript","stratic"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/straticjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-25T19:52:57.000Z","updated_at":"2021-10-07T17:00:26.000Z","dependencies_parsed_at":"2022-09-03T19:32:08.226Z","dependency_job_id":null,"html_url":"https://github.com/straticjs/stratic-paginate-indexes","commit_stats":null,"previous_names":["strugee/stratic-paginate-indexes"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/straticjs/stratic-paginate-indexes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straticjs%2Fstratic-paginate-indexes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straticjs%2Fstratic-paginate-indexes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straticjs%2Fstratic-paginate-indexes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straticjs%2Fstratic-paginate-indexes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/straticjs","download_url":"https://codeload.github.com/straticjs/stratic-paginate-indexes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/straticjs%2Fstratic-paginate-indexes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265585315,"owners_count":23792716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gulp","gulp-plugin","hacktoberfest","javascript","stratic"],"created_at":"2024-11-11T06:40:02.831Z","updated_at":"2026-05-19T10:38:12.942Z","avatar_url":"https://github.com/straticjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `stratic-paginate-indexes`\n\n[Gulp][1] plugin to split [Stratic][2] index pages into pages\n\n## Installation\n\n    npm install stratic-paginate-indexes\n\n## Usage\n\nUsage is quite simple. All you need to do is pipe Stratic indexes to this module and presto! You're done.\n\nMinimal `gulpfile.js` for this module to work:\n\n```js\nvar gulp = require('gulp');\nvar frontMatter = require('gulp-gray-matter');\nvar straticDateInPath = require('stratic-date-in-path');\nvar addsrc = require('gulp-add-src');\nvar straticPostsToIndex = require('stratic-posts-to-index');\nvar straticPaginateIndexes = require('stratic-paginate-indexes');\n\ngulp.task('post-index', function() {\n    gulp.src('*.md')\n        .pipe(frontMatter())\n        .pipe(straticDateInPath())\n        .pipe(addsrc('src/blog/index.jade'))\n        .pipe(straticPostsToIndex('index.jade'))\n        .pipe(straticPaginateIndexes());\n});\n```\n\nComplete example `gulpfile.js`:\n\n```js\nvar gulp = require('gulp');\nvar frontMatter = require('gulp-gray-matter');\nvar remark = require('gulp-remark');\nvar remarkHtml = require('remark-html');\nvar straticDateInPath = require('stratic-date-in-path');\nvar addsrc = require('gulp-add-src');\nvar straticPostsToIndex = require('stratic-posts-to-index');\nvar straticPaginateIndexes = require('stratic-paginate-indexes');\nvar jade = require('gulp-jade');\nvar rename = require('gulp-rename');\n\ngulp.task('post-index', function() {\n    gulp.src('*.md')\n        .pipe(frontMatter())\n        .pipe(remark().use(remarkHtml))\n        .pipe(straticDateInPath())\n        .pipe(addsrc('src/blog/index.jade'))\n        .pipe(straticPostsToIndex('index.jade'))\n        .pipe(straticPaginateIndexes())\n        .pipe(jade({pretty: true, basedir: __dirname}))\n        .pipe(rename({ extname: '.html' }))\n        .pipe(gulp.dest('dist/blog'));\n});\n```\n\n## Locals\n\nTwo additional locals are provided to templates via the `file.data` attribute. `page` indicates which page number the file represents. `pageCount` represents how many total pages there are for that particular index.\n\n## License\n\nLGPL 3.0+\n\n## Author\n\nAJ Jordan \u003calex@strugee.net\u003e\n\n [1]: http://gulpjs.com/\n [2]: https://github.com/straticjs/generator-stratic\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstraticjs%2Fstratic-paginate-indexes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstraticjs%2Fstratic-paginate-indexes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstraticjs%2Fstratic-paginate-indexes/lists"}