imathis / octopress

Octopress is an obsessively designed framework for Jekyll blogging. It’s easy to configure and easy to deploy. Sweet huh?

Home Page:http://github.com/imathis/octopress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Odd Behavior On "Landing" Page

verticon opened this issue · comments

I installed Octopress this week, enabled Disqus comments, and have today created my first blog post. When I preview my site (rake preview and localhost:4000) I see the new, one and only post. However, when I scroll to the bottom of the post I do not see a comments section. When I scroll back to the top of the post I observe that the title is clickable. When I do indeed click upon it and again scroll to the bottom, I now have a comments section. Scrolling back to the top I find that the title is no longer clickable.

Would you please help me to understand this behavior and how to deal with it? I do not want visitors to my first ever blog posting to be unable to comment (not realizing that they must first click the title).

Thank you, Robert

I see that I have options regarding the landing page: Template

However, I don't have an alternate landing page in mind and I like "landing on the blog"

Looking at the index.html here (public/) and here (public/blog/2017/01/24/MyTitle/) I see differences at the bottom where Disqus comes into the picture:

On The Landing Page:

var disqus_shortname = 'verticon';
var disqus_script = 'count.js'

On The Blog Page:

var disqus_shortname = 'verticon';
// var disqus_developer = 1;
var disqus_identifier = 'http://verticon.github.io/blog/2017/01/24/what-the-heck-is-type-erasure-and-why-should-we-care/';
var disqus_url = 'http://verticon.github.io/blog/2017/01/24/what-the-heck-is-type-erasure-and-why-should-we-care/';
var disqus_script = 'embed.js';

count.js vs embed.js seems significant

BTW: The story is the same for the Twitter widget. It only appears on the blog page.

I effectively handled my situation by inserting <!-- more --> into my post, thereby forcing the user to navigate from the landing page to the blog page in order to read the post (and thus having comments available)