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

Allow custom path for archives #464

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

Allow custom path for archives #464

alberto opened this issue Mar 3, 2012 · 22 comments

Comments

@alberto
Copy link

@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
Copy link

@teiko teiko commented Mar 4, 2012

Would be nice indeed

@celadevra
Copy link

@celadevra 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
Copy link

@gpessia gpessia commented Apr 15, 2012

Agree!!

@rmalleman
Copy link

@rmalleman rmalleman commented Apr 22, 2012

Yeah, this would be awesome

@orenyk
Copy link

@orenyk 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
Copy link

@Leonidas-from-XIV 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
Copy link

@oblitum oblitum commented Jul 2, 2012

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

@oblitum
Copy link

@oblitum 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
Copy link

@Leonidas-from-XIV 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
Copy link

@oblitum 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
Copy link

@Leonidas-from-XIV 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
Copy link

@oblitum oblitum commented Jul 7, 2012

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

@oblitum
Copy link

@oblitum oblitum commented Jul 7, 2012

@Leonidas-from-XIV thanks, worked =)

@mariosangiorgio
Copy link

@mariosangiorgio mariosangiorgio commented Nov 27, 2012

Is there any news?

@vadsamoht
Copy link

@vadsamoht vadsamoht commented Dec 8, 2012

@mariosangiorgio Not yet, AFAIK.

@imathis
Copy link
Owner

@imathis 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
Copy link

@jonathannelson jonathannelson commented Feb 8, 2013

Any update on supporting this feature?

@parkr
Copy link
Collaborator

@parkr 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
Copy link

@jonathannelson 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
Copy link
Collaborator

@parkr parkr commented Feb 9, 2013

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

@manzoid
Copy link

@manzoid 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
Copy link

@davidxia 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.