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

Ability to set page as index instead of articles #400

Closed
onlyhavecans opened this issue Jul 6, 2012 · 18 comments
Closed

Ability to set page as index instead of articles #400

onlyhavecans opened this issue Jul 6, 2012 · 18 comments
Assignees
Milestone

Comments

@onlyhavecans
Copy link
Contributor

While I know it's still an old world way of doing sites but it might be a good feature to add the ability to set another page to be the front page when you go to the site. This would have to be broken into two settings as I see it. (This is how wordpress does this)
One is the setting to pick the page, by slug name that would be written as index.html IE frontpage = kittens-rule
Then there would be a separate setting along the lines of posts-page = blog where in the case of this the "index" template would instead be written out as blog.html (and blog[n].html in the case of pagination) and it would be added to the page list to be linked to in the header.

I'm not sure the need or desire for the feature is there enough to justify the code changes...

@almet
Copy link
Member

almet commented Jul 7, 2012

some people already asked for that, so if you have the need, I'm +1 to drive you to do these changes if you need some help.

Big +1 on this feature.

@domenkozar
Copy link

+1 on this one :) It's basically the only feature I missed from pelican.

@almet
Copy link
Member

almet commented Jul 15, 2012

@tbunnyman do you want to work on this for 3.0?

@onlyhavecans
Copy link
Contributor Author

I think 3.0 is due in... 10 hours... so while I will work on this I don't think it's going to make 3.0

@tomrandle
Copy link

+1 I'd love to see this too.

@synapticarbors
Copy link
Contributor

+1 I'd like to see this as well

@treffynnon
Copy link

+1 Would be great to see this feature included

@remram44
Copy link
Contributor

+1 I need this, might work on it (or write a dirty patch if it's too difficult)

@onlyhavecans
Copy link
Contributor Author

@remram44 If you need this now the "dirty patch" is to to this with your theme
ie. Set static or page content to index.html and put your articles loop on a different page like posts.html or something. It works all right.

This is a fairly involved patch but it is on the top of the list�.

@treffynnon
Copy link

@tbunnyman Great to hear its a priority. I am hoping to have an introduction at the top of just the index page with a small list of the latest three posts below it. If that in anyway affects the way the patch would be implemented.

@onlyhavecans
Copy link
Contributor Author

@treffynnon That sounds like something you want to do with your theme more than anything else.

@remram44
Copy link
Contributor

Apparently it is possible to make it work using:

INDEX_SAVE_AS = 'blog.html'
PAGE_SAVE_AS = '{slug}.html'
PAGE_URL = '{slug}.html'

(this removes the pages/ subdirectory altogether, which I don't need)

However, 'blog.html' has then to be added to the theme if you want it to be accessible (via MENUITEMS?)

@brodul
Copy link

brodul commented Sep 23, 2012

+1

@almet
Copy link
Member

almet commented Oct 25, 2012

@tbunnyman any news on this one? Is it still on your plate?

@onlyhavecans
Copy link
Contributor Author

Yes sir.
No realy news to report other than I have been brainstorming the how on and off

@houqp
Copy link

houqp commented Jan 31, 2013

+1 on this :)

@thomersch
Copy link

+1 would love to see this

@ghost ghost assigned justinmayer and bbinet Feb 24, 2013
@justinmayer
Copy link
Member

Thank you, Bruno, for implementing this feature. Much appreciated! 😺

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

No branches or pull requests