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

Clicking the logo to go back to the blog home page opens it in a different context #27

Closed
Windyo opened this issue Jul 27, 2016 · 3 comments

Comments

@Windyo
Copy link

Windyo commented Jul 27, 2016

Issue summary

Loading a ghost blog with the bleak theme install via its URL (e.g. http://www.my-ghost.blog.com) and clicking on the blog logo on the top left do not have the exact same action.

Issue dependencies

GhostHunter

Reproductibility steps

  1. Install ghost from the latest master
  2. Install Bleak from Github
  3. Add Ghosthunter to the theme
  4. Ghosthunter works when loading the main page, but fails when going back to the main page from a blog post. console.logs show the data is being queried but not displayed for some reason.

Technical notes

Ghosthunter was grafted to the theme by adding files (search.js, search.css) in all places possible.
The only modifications to the theme were in default.hbs where links to the scripts and css were added, and in index.hbs where the "results" section was added.

A live link can be given via PM.

@zutrinken
Copy link
Owner

I'm not sure, but it seems to me, that you just have to reload the initializing script. If you take a look in bleaks script.js you can see, that all functions are reloaded on every page load because of the AJAX stuff.

@Windyo
Copy link
Author

Windyo commented Jul 27, 2016

if you mean the initializing script for Ghosthunter, it is loaded on every page. This is actually why i'm stumped : everything should work, it just doesn't.
I also don't know that much about AJAX, which is probably why I'm stumped.

@Windyo
Copy link
Author

Windyo commented Jul 29, 2016

@zutrinken I added the ghostHunter reload to that part of the script but still no dice.
For some reason the script just refuses to execute when the main page is reloaded via AJAX. Do you have any ideas on this matter ?

Thanks

@Windyo Windyo closed this as completed Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants