Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev server cannot serve pagination for pages > 1 #16

Closed
item4 opened this issue Dec 22, 2015 · 5 comments
Closed

Dev server cannot serve pagination for pages > 1 #16

item4 opened this issue Dec 22, 2015 · 5 comments
Labels

Comments

@item4
Copy link
Contributor

item4 commented Dec 22, 2015

  • used command
$ lektor server -f webpack
  • content/contents.lr
_model: blog
  • blog.ini
[model]
name = Blog
label = Blog
hidden = yes

[children]
model = blog-post
order_by = -pub_date, title
slug_format = {{ this.pub_date|dateformat('YYYY-MM-dd') }}/{{ this.title }}/

[pagination]
enabled = yes
per_page = 1
  • page 1: /
  • page 2: /page/2/ (403) → /page/2/index.html (work)
  • page 3: /page/3/ (403) → /page/3/index.html (work)
  • ...

page 2, 3, ... link generated by this.pagination.next|url

I think it is bug of test server

@mitsuhiko
Copy link
Member

The URL looks correct. Are you saying that the pages > 1 do not load in the dev server?

@item4
Copy link
Contributor Author

item4 commented Dec 22, 2015

yes

@mitsuhiko mitsuhiko changed the title pagination after page 2 make wrong url Dev server cannot serve pagination for pages > 1 Dec 22, 2015
@mitsuhiko mitsuhiko added the bug label Dec 22, 2015
@mitsuhiko
Copy link
Member

Unfortunately I cannot reproduce this one which is annoying. Need to figure out what's wrong there.

@item4
Copy link
Contributor Author

item4 commented Dec 23, 2015

@mitsuhiko See my real blog (warn: korean) git@github.com:item4/item4.github.io.git

requirements

  • node 5.0 or higher
  • lektor master branch

use lektor server -f webpack to launch dev server

@item4
Copy link
Contributor Author

item4 commented Dec 23, 2015

additional info

(lektor)[item4@item4-mbp testing]$ python --version
Python 2.7.10
(lektor)[item4@item4-mbp testing]$ lektor --version
Lektor, version 2.0.dev0

mac os x 10.11.2 firefox 43.0.1

xlotlu pushed a commit that referenced this issue Jun 13, 2020
fix typo on the content docs page
xlotlu pushed a commit that referenced this issue Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants