Skip to content

Use Jekyll plugin to generate yearly / monthly news archive pages #10

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

Closed
postmodern opened this issue Feb 8, 2013 · 11 comments
Closed

Comments

@postmodern
Copy link
Member

Instead of importing the raw news archive pages, use a Jekyll plugin to generate yearly / monthly archive pages.

@ghost ghost assigned postmodern Feb 8, 2013
@postmodern
Copy link
Member Author

@stomar suggestions on Jekyll plugin that can do this?

@postmodern
Copy link
Member Author

@envygeeks you said octopress had a plugin for this? Is it the pagination one?

@envygeeks
Copy link

I guess I was mistaken, I thought they had one that did /archives/month/ but it's a single page that has everything group, tbh, SEO wise (unless you want to enforce canonical back to /archives on every single archive page) it's probably better to do it like this: http://envygeeks.com/blog/archives/ I'd be more than happy to share the source to my site which generates that way but Jekyll has the same one: source/blog/archives/index.html

@postmodern
Copy link
Member Author

It appears http://www.ruby-lang.org/ includes the full blog post for older archive pages and the first paragraph for newer archive pages.

@postmodern
Copy link
Member Author

Let's look into rolling our own based on other plugins, such as jekyll_archives.

@postmodern
Copy link
Member Author

As a workaround, we could just import the existing pages as-is. This would mean future news posts wouldn't show up on the archive pages, but we wouldn't break any links.

@stomar
Copy link
Contributor

stomar commented Feb 27, 2013

I'm experimenting with a solution similar to the news/ pages. This would mean that for every year a directory and index.md file would need to be created, which essentially contains only the YAML front matter (page title), the posts would be added by some Liquid tags in a layout file.

It's not perfect but probably better (and IMO less work) than importing static content. What do you think?

@postmodern
Copy link
Member Author

I say go for it. I will also try my hand at writing a Jekyll plugin tonight.

@postmodern
Copy link
Member Author

@stomar Might want to hold off, I'm making tons of progress with a custom Jekyll plugin.

@postmodern
Copy link
Member Author

Added a Jekyll Plugin to generate all news archive pages. Although it still needs localilzation.

@stomar
Copy link
Contributor

stomar commented Feb 27, 2013

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants