Redirected Octopress blog on Github pages shows only Archives link instead of the latest posts -



Redirected Octopress blog on Github pages shows only Archives link instead of the latest posts -

i have set octopress github business relationship @ http://acgrama.github.io/. main page vanilla html, non-octopress landing page, , blog set in octopress under source/blog. (i have followed instructions in "landing page vs. blog index" section of http://octopress.org/docs/theme/template/)

everything ok, except when go http://acgrama.github.io/blog/ see link blog archives instead of latest blog posts.

some symptoms noticed: when rake generate, next output:

## generating site jekyll identical source/stylesheets/screen.css configuration file: /home/***/octopress/_config.yml source: source destination: public generating... pagination: pagination enabled, couldn't find index.html page utilize pagination template. skipping pagination. done.

looking under source/blog/index.html, understand posts in paginator.posts iterated , shown (?), after older/newer , blog archives links shown:

<div class="blog-index"> {% assign index = true %} {% post in paginator.posts %} {% assign content = post.content %} <article> {% include article.html %} </article> {% endfor %} <div class="pagination"> {% if paginator.next_page %} <a class="prev" href="{{paginator.next_page_path}}">&larr; older</a> {% endif %} <a href="/blog/archives">blog archives</a> {% if paginator.previous_page %} <a class="next" href="{{paginator.previous_page_path}}">newer &rarr;</a> {% endif %} </div> </div>

these made me think paginator.posts empty reason, hence nil happens in first loop , how blog archive link ends beingness shown.

am doing wrong? can issue solved @ all?

i had exact same issue , found answer based on suspicion paginator.posts empty.

update _config.yml , set following:

paginate_path: "posts/:num"

to

paginate_path: "blog/posts/:num"

after , rake generate , rake preview, /blog page showed posts

this lead me believe paginator must made aware of subdirectory alter /blog. seems should in docs

github-pages octopress

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -