ouija-io / ouija

Communicating with ghosts
http://ouija.io
BSD 3-Clause "New" or "Revised" License
128 stars 14 forks source link

Ouija loading on pages since v0.1.2 #37

Closed jonwgeorge closed 10 years ago

jonwgeorge commented 10 years ago

Looks like after switching to using v0.1.2 Ouija is now loading on pages as well as posts. I don't remember this happening before, and it's more likely an issue with Ghost and handlebars if anything.

halfdan commented 10 years ago

Example?

jonwgeorge commented 10 years ago

@halfdan I'm using a custom theme, so that's likely the cause: http://www.jonwgeorge.com/about/

halfdan commented 10 years ago

That is technically not a bug with Ouija nor Ghost. You have a static page which essentially is just a post that doesn’t appear in the normal post list. If you want to prevent Ouija from showing up you’d need to adjust the snippet from Ouija:

{{#with post}}
{{unless page}}
... Ouija code ..
{{/unless}}
{{/with}}
jonwgeorge commented 10 years ago

I didn't realize that was available in Ghost (or handlebars). Guess I didn't read the docs that far.

jonwgeorge commented 10 years ago

Actually, it seems that doesn't work. screen shot 2014-05-05 at 4 59 34 pm

halfdan commented 10 years ago

Oops. That’s supposed to read {{#unless ..}}

jonwgeorge commented 10 years ago

That causes Ouija not to load at all.

Nevermind. I misspelled page...

colinmacdonald commented 10 years ago

@jonwgeorge Can I close this as a non-issue then?

jonwgeorge commented 10 years ago

Yep. Just fat fingers on my end haha.