ghost-static-site-generator: --url option does not take in account subdirs

Hi and thanks for this nice utility!

I’ve noticed that if I want to publish the static site into a subdirectory, assets, content and public are loaded from web server root.

I would expect that issuing this command: gssg --url "https://www.samplehostname.com/staticsite_dir01/" --dest staticsite_dir01 everything would be stored into and referenced from staticsite_dir01 ready to be dropped inside the public_html of the web server.

Does an option for this exist/is in consideration?

Thanks in advance,

–R

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Sure. follow me on twitter at @exedraos and I’ll send you a link.

Can you host it somewhere where I can have a look?

@RobertoMalatesta Have you added any code or code injection? zilch for now. Only applied the theme.

  1. font issue: let me change theme and remirror and I’ll be back…

@RobertoMalatesta Published new version and closed this ticket. Please re-open if there is any other issues regarding this issue.

Thanks @Fried-Chicken

@RobertoMalatesta That’s great to hear! I really like Ghost, I think their team did an amazing job building something that is simple to use and fast!

Let me know if you have any other issues 😃

Just a quick answer @Fried-Chicken : It works smoothly with : gssg --url "https://www.theTargetSite.com" --dest staticDir --subDir staticDir

I will do some tests and submit a more comprehensive feedback.

–Rob

PS: I never used ghost before. Your brilliant tool sold me it 👍