0

I've followed the advice at https://bookdown.org/yihui/blogdown/static-files.html by adding a .r file with blogdown::build_dir('static') - and by creating a ./static/post directory - what am I missing?

I also searched through rbind.io blogdown structures, but cannot figure out how to connect rendered graphic outputs to static/post/post-date; not how to automatically redirect outputs to that folder instead of public.

Thanks for the help.

4
  • Generally you do not need to handle ggplot output manually in blogdown, because blogdown will render the output graphic, put int in static/post/some-where and correctly link it to your post. Could you provide your repo? Commented Jul 17, 2018 at 0:14
  • In my local, the plot chunk images are generated in the public folder, but not pushed to the static. I think ive just made a mistake somewhere in changing folders github.com/pembletonc/blogdown.git Commented Jul 17, 2018 at 1:15
  • This is the post, you can see the broken image links as well. coreypembleton.netlify.com/random/tidy-text-twitter Commented Jul 17, 2018 at 1:33
  • I think I found the problem Commented Jul 17, 2018 at 2:06

1 Answer 1

1

I think I found the problem

The .gitignore file in your static directory prevents git to stage images generated by blogdown, delete it.

Sign up to request clarification or add additional context in comments.

1 Comment

Cheers, and thank you - deleted it and all works now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.