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

Allow custom path for archives #464

Closed
alberto opened this Issue Mar 3, 2012 · 22 comments

Comments

Projects
None yet
@alberto

alberto commented Mar 3, 2012

The archives path seems to be hardcoded to 'blog/archives'. I don't use 'blog' anywhere in my paths, and I would like to set it to 'archives'.

@teiko

This comment has been minimized.

Show comment
Hide comment
@teiko

teiko Mar 4, 2012

Would be nice indeed

teiko commented Mar 4, 2012

Would be nice indeed

@celadevra

This comment has been minimized.

Show comment
Hide comment
@celadevra

celadevra Mar 29, 2012

Agree. On my site Octopress is deployed under /blog, thus the archives path becomes /blog/blog/archives, not very pretty.

celadevra commented Mar 29, 2012

Agree. On my site Octopress is deployed under /blog, thus the archives path becomes /blog/blog/archives, not very pretty.

@gpessia

This comment has been minimized.

Show comment
Hide comment
@gpessia

gpessia commented Apr 15, 2012

Agree!!

@rmalleman

This comment has been minimized.

Show comment
Hide comment
@rmalleman

rmalleman Apr 22, 2012

Yeah, this would be awesome

rmalleman commented Apr 22, 2012

Yeah, this would be awesome

@orenyk

This comment has been minimized.

Show comment
Hide comment
@orenyk

orenyk May 8, 2012

If you look in octopress/source, you can see that there is a folder blog that contains another folder archives. From what I can tell, Jekyll will render the index.html file in the archives folder wherever you put it. So, for example, if you want it to simply be in {blog-url}/archives instead of {blog-url}/blog/archives, simply place the index.html file in octopress/source/archives and re-generate the blog. This is definitely a bit of a hack, but it should work (just don't forget to change the links in the template files, e.g. source/index.html and source/_includes/custom/navigation.html, or wherever else you link to the archives). Hope this helps!

EDIT: don't forget to commit the deletions if you remove the original folders, otherwise the original link (e.g. {blog-url}/blog/archives will still show the old archives.

orenyk commented May 8, 2012

If you look in octopress/source, you can see that there is a folder blog that contains another folder archives. From what I can tell, Jekyll will render the index.html file in the archives folder wherever you put it. So, for example, if you want it to simply be in {blog-url}/archives instead of {blog-url}/blog/archives, simply place the index.html file in octopress/source/archives and re-generate the blog. This is definitely a bit of a hack, but it should work (just don't forget to change the links in the template files, e.g. source/index.html and source/_includes/custom/navigation.html, or wherever else you link to the archives). Hope this helps!

EDIT: don't forget to commit the deletions if you remove the original folders, otherwise the original link (e.g. {blog-url}/blog/archives will still show the old archives.

@Leonidas-from-XIV

This comment has been minimized.

Show comment
Hide comment
@Leonidas-from-XIV

Leonidas-from-XIV May 14, 2012

@orenyk that is a workaround, but I would prefer to have support for renaming the archive location.

Currently it is quite silly, I have a blog at ~username/blog and the archives are ~username/blog/blog/archives which makes me look dumb ;) Applying your workaround for now.

Leonidas-from-XIV commented May 14, 2012

@orenyk that is a workaround, but I would prefer to have support for renaming the archive location.

Currently it is quite silly, I have a blog at ~username/blog and the archives are ~username/blog/blog/archives which makes me look dumb ;) Applying your workaround for now.

@oblitum

This comment has been minimized.

Show comment
Hide comment
@oblitum

oblitum Jul 2, 2012

I'd like that too!!, gonna apply the workaround now. I have the same /blog/blog/ issue =/

oblitum commented Jul 2, 2012

I'd like that too!!, gonna apply the workaround now. I have the same /blog/blog/ issue =/

@oblitum

This comment has been minimized.

Show comment
Hide comment
@oblitum

oblitum Jul 7, 2012

@orenyk @Leonidas-from-XIV, well, this workaround has not helped me... after rake deploy I had got the same \blog\blog\ =(.

oblitum commented Jul 7, 2012

@orenyk @Leonidas-from-XIV, well, this workaround has not helped me... after rake deploy I had got the same \blog\blog\ =(.

@Leonidas-from-XIV

This comment has been minimized.

Show comment
Hide comment
@Leonidas-from-XIV

Leonidas-from-XIV Jul 7, 2012

Did you do rake generate before (not sure if it gets run automatically)? You might want to delete your target directory, so there's no stale blog/blog folder laying around.

Leonidas-from-XIV commented Jul 7, 2012

Did you do rake generate before (not sure if it gets run automatically)? You might want to delete your target directory, so there's no stale blog/blog folder laying around.

@oblitum

This comment has been minimized.

Show comment
Hide comment
@oblitum

oblitum Jul 7, 2012

@Leonidas-from-XIV Yes, I've done, I've not deleted the target directory, but the deploying process visibly deleted, what I've got with the workaround was that the arquives url wasn't at /blog/blog/archives/, it was right at /blog/archives/, but the end posts remained at /blog/blog/. My file structure: http://i.imgur.com/5060f.png, and my blog posts: http://oblita.com/blog/archives/

oblitum commented Jul 7, 2012

@Leonidas-from-XIV Yes, I've done, I've not deleted the target directory, but the deploying process visibly deleted, what I've got with the workaround was that the arquives url wasn't at /blog/blog/archives/, it was right at /blog/archives/, but the end posts remained at /blog/blog/. My file structure: http://i.imgur.com/5060f.png, and my blog posts: http://oblita.com/blog/archives/

@Leonidas-from-XIV

This comment has been minimized.

Show comment
Hide comment
@Leonidas-from-XIV

Leonidas-from-XIV Jul 7, 2012

But this bug is about archives, so you applied this workaround properly. You also need to edit _config.yml to remove blog/ from the permalink. Octopress really, really likes this blog prefix.

Leonidas-from-XIV commented Jul 7, 2012

But this bug is about archives, so you applied this workaround properly. You also need to edit _config.yml to remove blog/ from the permalink. Octopress really, really likes this blog prefix.

@oblitum

This comment has been minimized.

Show comment
Hide comment
@oblitum

oblitum Jul 7, 2012

@Leonidas-from-XIV hmmm, thanks, I'll look into that.

oblitum commented Jul 7, 2012

@Leonidas-from-XIV hmmm, thanks, I'll look into that.

@oblitum

This comment has been minimized.

Show comment
Hide comment
@oblitum

oblitum commented Jul 7, 2012

@Leonidas-from-XIV thanks, worked =)

@mariosangiorgio

This comment has been minimized.

Show comment
Hide comment
@mariosangiorgio

mariosangiorgio Nov 27, 2012

Is there any news?

mariosangiorgio commented Nov 27, 2012

Is there any news?

@vadsamoht

This comment has been minimized.

Show comment
Hide comment
@vadsamoht

vadsamoht commented Dec 8, 2012

@mariosangiorgio Not yet, AFAIK.

@imathis

This comment has been minimized.

Show comment
Hide comment
@imathis

imathis Dec 8, 2012

Owner

In 2.1 the default path will be /archives. This isn't something which is easy to configure in _config.yml because files have to be moved.

Owner

imathis commented Dec 8, 2012

In 2.1 the default path will be /archives. This isn't something which is easy to configure in _config.yml because files have to be moved.

@parkr parkr closed this Dec 17, 2012

@jonathannelson

This comment has been minimized.

Show comment
Hide comment
@jonathannelson

jonathannelson Feb 8, 2013

Any update on supporting this feature?

jonathannelson commented Feb 8, 2013

Any update on supporting this feature?

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Feb 8, 2013

Collaborator

See what @imathis wrote above. It's not something we can reasonably support with a config, but you can move around your archive files in source to your liking.

Collaborator

parkr commented Feb 8, 2013

See what @imathis wrote above. It's not something we can reasonably support with a config, but you can move around your archive files in source to your liking.

@jonathannelson

This comment has been minimized.

Show comment
Hide comment
@jonathannelson

jonathannelson Feb 8, 2013

Yup, thanks. The hack worked for me. Was just wondering if the config was closer to being final :-)
On Feb 8, 2013, at 6:13 PM, Parker Moore notifications@github.com wrote:

See what @imathis wrote above. It's not something we can reasonably support with a config, but you can move around your archive files in source to your liking.


Reply to this email directly or view it on GitHub..

jonathannelson commented Feb 8, 2013

Yup, thanks. The hack worked for me. Was just wondering if the config was closer to being final :-)
On Feb 8, 2013, at 6:13 PM, Parker Moore notifications@github.com wrote:

See what @imathis wrote above. It's not something we can reasonably support with a config, but you can move around your archive files in source to your liking.


Reply to this email directly or view it on GitHub..

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Feb 9, 2013

Collaborator

Cool. Yeah, it's not possible to be a config, so it can't even be considered.

Collaborator

parkr commented Feb 9, 2013

Cool. Yeah, it's not possible to be a config, so it can't even be considered.

@manzoid

This comment has been minimized.

Show comment
Hide comment
@manzoid

manzoid Oct 9, 2013

I know this issue is marked as closed, but just wanted to add a vote for the archive location being configurable in a future version.

manzoid commented Oct 9, 2013

I know this issue is marked as closed, but just wanted to add a vote for the archive location being configurable in a future version.

@davidxia

This comment has been minimized.

Show comment
Hide comment
@davidxia

davidxia Oct 19, 2014

👍 to making it configurable

davidxia commented Oct 19, 2014

👍 to making it configurable

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