Questions tagged [blogdown]

blogdown is an R package for creating websites based on R Markdown and Hugo

The blogdown package is an open-source (GPL-3) R package to create blogs and websites based on R Markdown and the static site generator Hugo. The full documentation is at https://bookdown.org/yihui/blogdown.

526 questions
3
votes
0 answers

Broken relative links in RSS feed for blogdown posts using Hugo asset bundling

TLDR: links to assets (such as images) inside Hugo page bundles are not rendered relative to the blog's root by blogdown/knitr, instead they are produced relative to the blog post's root, which works in the browser but breaks in RSS feed…
solarchemist
  • 438
  • 3
  • 13
3
votes
1 answer

The behavior of the knitr button in RStudio when rendering an Rmd file sitting inside a blogdown static folder

I have an Rmd file that I want to convert to a pdf file. Currently it is located in a subfolder of the "static" folder that is a part of my blog site structure created by the blogdown package. The problem is, when I hit the "Knit" button in RStudio,…
3
votes
1 answer

Get blogdown on r-blogggers for hugo-goa

I attempt to bring the following blog style blogdown::new_site(theme = "shenoybr/hugo-goa") to r-bloggers. Following How do I get my blogdown blog on R-Bloggers? seems to be outdated. A new solution appeared:…
Tlatwork
  • 1,445
  • 12
  • 35
3
votes
1 answer

How can I use inline footnote in markdown in blogdown?

I found Yihui Xie used inline footnote in his blog(source). they use literate programming to explain TeX code.^[Is that because TeX code is particularly difficult to understand? I don't know. I don't understand TeX well.] I created a site using…
Cyrus Yip
  • 479
  • 5
  • 9
3
votes
0 answers

chunk code plot from rmd file not shown in the post of blogdown

When I use the blogdown and hugo academic create a website, one example post created by rmd file (2015-07-23-r-rmarkdown) has chunk code, but the plot of this chunk code did not show in the post see here. I can see the chunk code created figures in…
QZ-R
  • 31
  • 2
3
votes
2 answers

Unable to render new .Rmd files to html after the recent blogdown update

I have a large site built on blogdown. Every day, there are several new .Rmd files that need to be rendered to html files. Before this recent blogdown update, I relied on serve_site() to render the new .Rmd files. After the update, as mentioned in…
3
votes
1 answer

Using blogdown with github actions - alternative to serve_site

Is there a way to replicate the behaviour of blogdown::serve_site() where it caches files (i.e. it only rebuilds newly updated or "touched" files) but without actually causing a local preview? The reason I ask is that I would like to automate this…
jimmyday87
  • 791
  • 3
  • 8
3
votes
1 answer

How to make floating table of contents work using the loveit theme with blogdown

I'm building a blog with dillonzq/loveit theme in conjunction with R's blogdown package. The loveit theme has a really cool floating table of contents. It looks like this and you can see an example of it in action here. Unfortunately I can't get…
Ben
  • 20,038
  • 30
  • 112
  • 189
3
votes
1 answer

How can I stop rmarkdown::render() from Rmd files inside project's renv library?

I have a Hugo blog which is compiled using the default blogdown::build_site() route. I decided to give renv:: a try, because some of my posts are both plot-heavy and prone to depend on old package versions, so why not make sure future complete site…
solarchemist
  • 438
  • 3
  • 13
3
votes
1 answer

R blogdown::serve_site() doesn't generate "public" folder when using Hugo "gesquive/slate" theme

I am trying to create a new blogdown project, and I've been using Yihui Xie's wonderful documentation to get started. This works as expected: Wen I run the below code, I see a live representation of the demo page, and the public folder is generated…
3
votes
4 answers

R blogdown fails to find image files

I have (had) a working website made with blogdown. I tried to rebuild the site today for the first time in a couple months and I am getting errors because it apparently can't find my images. To make a reprex I made a new project, and chose the…
itsMeInMiami
  • 2,324
  • 1
  • 13
  • 34
3
votes
1 answer

Blogdown and hugo not parsing html tags in markdown

I'm trying to build a website with blogdown in R and I'm not sure why html tags are no longer parsed properly. It used to work properly for me. I tested the code below in three new/different R projects (different Hugo themes) and nothing worked.…
hsl
  • 670
  • 2
  • 10
  • 22
3
votes
1 answer

Hugo post directory appearing on homepage, but not posts

For my blogdown-created website (using the Xmin theme), the posts directory - from which I can view individual posts - appears on the homepage, instead of individual posts. https://joshuamrosenberg.com/ This seemed to happen after updating to the…
Joshua Rosenberg
  • 4,014
  • 9
  • 34
  • 73
3
votes
0 answers

Blogdown::Shortcode doesn't work after using emo package in R

I am using Blogdown and want to use a shortcode in an Rmd file. I am using shortcodes in a chunk, not in an inline code. I saw this question Cannot use Markdown shortcodes in Blogdown's Rmd files and the solution…
denizCvrl
  • 31
  • 1
3
votes
1 answer

How to make plotly charts adjust to page width using rmarkdown?

I have an R blog post with some leaflet and plotly figures. I can set width = "100%" in the leaflet() function, and the leaflet map will change shape as I resize my browser window (or view on mobile). I've tried the same width = "100%" in plot_ly(),…
Kyle Ward
  • 889
  • 1
  • 8
  • 18