0

I really like the "Fork me on GitHub" banner in visNetwork's user manual.

enter image description here

For pkgdown, bookdown, and blogdown sites, is there a convenient way to generate such a link in the header of all pages?

landau
  • 5,636
  • 1
  • 22
  • 50
  • 1
    The underlying files of the website are also on GitHub, as GitHub-pages are used. Maybe you find the banner somewhere in there: https://github.com/datastorm-open/datastorm-open.github.io/tree/master/visNetwork – Jannik Buhr Oct 14 '18 at 21:35
  • Thanks, @Jannik Buhr. Found the HTML at https://github.com/datastorm-open/datastorm-open.github.io/blob/18e65c795a50c62ed1bc3fadde7e9e3963962fee/visNetwork/_includes/after_body.html. However, it looks like something they added manually, and the website itself was not generated by `pkgdown`, `bookdown`, or `blogdown`. I am looking for something more convenient, hopefully under those frameworks (particularly `bookdown`). – landau Oct 14 '18 at 22:04
  • How is this an R question? – IRTFM Oct 14 '18 at 22:28
  • @42- `pkgdown`, `bookdown`, and `blogdown` are R packages that make it easier to build websites. I am asking if any of these packages specifically has a convenient way to supply a "Fork me on GitHub" link (or similar) to all pages. I plan on applying the solutions to https://ropensci.github.io/drake/ (generated with `pkgdown`) and http://ropenscilabs.github.io/drake-manual (generated with `bookdown`). Both these sites are about an R package: https://github.com/ropensci/drake – landau Oct 14 '18 at 22:43
  • Seemed like an HTML question, but i'll delete my comments in a bit. – IRTFM Oct 14 '18 at 22:45
  • It's okay, others may be wondering about the same thing. – landau Oct 14 '18 at 22:55
  • 1
    Depending on the hugo-theme you are using with blogdown, you should be able to include custom html e.g. before the body – Jannik Buhr Oct 15 '18 at 21:05

0 Answers0