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

Not showing all years? #8

Open
jeremycherfas opened this issue Jan 1, 2016 · 3 comments
Open

Not showing all years? #8

jeremycherfas opened this issue Jan 1, 2016 · 3 comments
Labels

Comments

@jeremycherfas
Copy link

Thanks for the plugin. I just installed it on my website and it does not show all archived months. I set

limit:
year: 15 # Limit to show only the last n years
month: 12 # Limit to show only the last n months

In archive_plus.yaml, and I do not know why there is no content shown from February 2004 or this post from 2003.

It is currently showing all the posts, too, but I understand there is a fix for that. I will try and implement that now.

@Sommerregen
Copy link
Owner

Hi @jeremycherfas ,

this is intended. As limit suggests it will truncate the number of months up to n elements in the past. In other words if you set limit.month: 12 it means Archive Plus will show only the last 12 months, everything after that will be hidden, but becomes available (in a later version) via a separate page. This is currently under construction.

If you don't want to limit any year, month or number of post use 0, here

limit:
  year: 0
  month: 0
  items: 0

and all of your post are shown on the right. But be careful! If you have a lot of posts, your site loads slower, because every time a list with all your post is generated and sent to the browser.

@jeremycherfas
Copy link
Author

Thanks for the explanation. It will be great to have all the older posts
available via a separate page. I look forward to that, because I have a
lot of older posts that I am transferring to my Grav installation.

All the best

Jeremy

On Wed, 13 Jan 2016, at 08:51 PM, Benny wrote:

Hi @jeremycherfas[1] ,

this is intended. As limit suggests it will truncate the number of
months up to n elements in the past. In other words if you set
limit.month: 12 it means Archive Plus will show only the last 12
months, everything after that will be hidden, but becomes available
(in a later version) via a separate page. This is currently under
construction.

If you don't want to limit any year, month or number of post
use , here

limit: year: 0 month: 0 items: 0 and all of your post are shown on the
right. But be careful! If you have a lot of posts, your site loads
slower, because every time a list with all your post is generated and
sent to the browser.

— Reply to this email directly or view it on GitHub[2].

Links:

  1. https://github.com/jeremycherfas
  2. Not showing all years? #8 (comment)

@mttmccb
Copy link

mttmccb commented Feb 10, 2016

waves at @jeremycherfas

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

3 participants