Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

blogdown:::new_post_addin() should check for hugo first #750

Closed
LukasWallrich opened this issue May 11, 2023 · 1 comment
Closed

blogdown:::new_post_addin() should check for hugo first #750

LukasWallrich opened this issue May 11, 2023 · 1 comment

Comments

@LukasWallrich
Copy link

Thanks for the fantastic package.

Not a major issue, but an (apparently) unnecessary annoyance: on a new computer, I just used blogdown:::new_post_addin() to set up a new post, and when I closed the window after entering all the details, it failed with Warning: Error in : hugo 0.81.0 not found. You may try blogdown::install_hugo("0.81.0").

Could that check happen first? Then user input would not get lost.

@yihui yihui closed this as completed in 630536b May 11, 2023
@yihui
Copy link
Member

yihui commented May 11, 2023

That makes sense. I just did it. Thanks for suggestion!

Usually the first thing I do when opening a blogdown project is blogdown::serve_site(). This can make sure the site works fine before I do anything else. You can also set options(blogdown.serve_site.startup = TRUE) to do this automatically (which is what I do for my own website).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants