Неверный URL в Octopress на поддомене

457
NT3RP

Я в меру своих возможностей следовал инструкциям, изложенным на сайте Octopress, но по какой-то причине все пошло не так.

Когда я следовал инструкциям, я ожидал, что мои URL будут выглядеть примерно так: http://domain.com/blog/POST

Вместо этого (кроме корневой страницы) они выглядят так: http://domain.com/blog/blog/POST

Какую ошибку я сделал?

Я сделал следующее:

rake set_root_dir[/blog] vim _config.yml #url: http://domain.com/blog vim Rakefile #document_root = "~/domain.com/blog" 

Спасибо!

Примечание: я бы создал тег осьминога, но мне не хватало репутации

2

1 ответ на вопрос

1
Jeff

To place the posts under /blog/date...

in _config.yml

I changed

permalink: /blog/:year/:month/:day/:title/ 

to

permalink: /:year/:month/:day/:title/ 

This change was in addition to the instructions from http://octopress.org/docs/deploying/subdir/

That worked for the blog posts themselves, but the archives page stills show up as /blog/blog/archives

You can probably search the source for "archives" to see how that's generated if you want to fix the archives page itself and the pages that link to it. Octopress is a blogging engine for hackers after all ;)

Похожие вопросы