Skip to content

Commit

Permalink
Page 'Generator' from 'API' updated (hexojs#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonsantos authored and NoahDragon committed Dec 26, 2017
1 parent 45226bf commit ea8cd27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/pt-br/api/generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ Você pode utilizar uma ótima ferramenta oficial chamada [hexo-pagination] para
var pagination = require('hexo-pagination');

hexo.extend.generator.register('archive', function(locals){
return pagination('archives/index.html', locals.posts, {
// hexo-pagination makes an index.html for the /archives route
return pagination('archives', locals.posts, {
perPage: 10,
layout: ['archive', 'index'],
data: {}
Expand Down

0 comments on commit ea8cd27

Please sign in to comment.