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
4
votes
1 answer

Unable to create new site using (hugo) Academic theme

I am new to blogdown and working my way through the fabulous resource to guide me. Unfortunately, I am unable to use the academic theme in hugo. To create a new site I have: Created a new (empty) project in a brand new working directory. Installed…
user2716568
  • 1,866
  • 3
  • 23
  • 38
4
votes
1 answer

How do I post some introductory paragraphs on the main page of my blogdown site?

My initial menu for my blogdown site is taken directly from the blogdown book. [[menu.main]] name = "Home" url = "/" weight = 1 [[menu.main]] name = "About" url = "/about/" weight = 2 [[menu.main]] name = "GitHub" url…
Display name
  • 4,153
  • 5
  • 27
  • 75
4
votes
1 answer

Encoding problems reading .bib into R using RefManageR

I'm trying to follow this blog post to automatically generate .md files for each of my publications, for use in blogdown. The function in the post uses the package RefManageR to read entries from a BibTeX file, and creates a .md file for each entry.…
rasenior
  • 81
  • 11
4
votes
2 answers

Blogdown post not rendering after build_site and serve_site

I have a personal blog created via blogdown. I started a new entry (after a long time) via the command: blogdown::new_post(title="article-r", author="Me", categories=c("data-science", "stats"), date=Sys.Date(), …
user4687531
  • 1,021
  • 15
  • 30
4
votes
1 answer

Can't insert plots in bookdown

I'm using bookdown to generate notes for an R. A minimal bookdown example that exhibits the error: https://github.com/DavisBrian/bookdown_error Everything worked great until I tried to add a plot (dataviz.Rmd). When building the book I get the…
4
votes
1 answer

In R 3.5 blogdown:::serve_site() cannot render .Rmd file

After I updated R to 3.5, I found I couldn't render .Rmd file. I tried to reinstall the relevant packages, but it seemed it didn't solve the problem. More specifically, the error message is: blogdown:::serve_site() Rendering…
Xing Zhang
  • 175
  • 1
  • 5
4
votes
3 answers

How to create an image preview for a post in hugo-academic from .Rmd?

I'm trying to add an image preview to a post using hugo-academic and compiling from .Rmd with blogdown, and I can't figure out what to do in the YAML preamble. Some related posts that have not provided a solution include: -Include image preview in…
Gregory
  • 4,147
  • 7
  • 33
  • 44
4
votes
1 answer

rendering `.Rmd` posts as slides in blogdown

I am using blogdown to generate a static website from a series of posts stored as Rmd files. For some of these, I would like the post to be rendered as ioslides, such as: --- title: "Habits" author: John Doe date: March 22, 2005 output:…
3
votes
0 answers

How to make footnote into tooltips in Blogdown?

I'm using Rmarkdown to make a blogdown post, and I'm hoping to implement something I saw in Hadley Wickham's Advanced R online book, which is a footnote link that when clicked on opens as a tooltip instead of in the footer of the page. See image…
Noah
  • 3,437
  • 1
  • 11
  • 27
3
votes
2 answers

Adding a password to one page of a blogdown site

Is it possible to password protect one page of a website made using R blogdown, published using the free version of Netlify? If not, it it possible to host a password protected RMD file on a blogdown website? I tried using the encryptedRmd package…
missgwolf
  • 356
  • 1
  • 11
3
votes
1 answer

Programmatically add tags to yaml header during knitting R markdown file

I'd like to programmatically add tags to the YAML header of a blogdown post when clicking the "knit" button. For example something like this: --- title: This is a post author: brshallo date: '2022-02-11' tags: "`r stringr::str_c('\n - ',…
Bryan Shalloway
  • 748
  • 7
  • 15
3
votes
1 answer

Syntax Highlighting in Hugo with blogdown in Rmarkdown

I'm using blogdown and the lxndrblz/anatole theme to create a blog. The blog should have usual syntax highlighting, which should be supported. When I create a new post in markdown (not Rmarkdown!) like the following, it works as expected. Eg…
David
  • 9,216
  • 4
  • 45
  • 78
3
votes
0 answers

How to use Netlify identity widget in R blogdown

R blogdown is super convenient to publish Rmarkdown report using netlify. In order to build a private blog and control access, I found netlify identity widget could be a solution. Useful reference are: Authenticate users with Netlify…
ChenX
  • 111
  • 7
3
votes
0 answers

Using R variable to determine date in blogdown talk

this may be trivial or simply impossible, but I would like to allow the date of a blogdown "talk" to be determined by a R expression. The way I thought about it something like that # Some R code to define a variable 't0', which is a string to…
3
votes
0 answers

How to have Frontpage Image before chapter title and book title?

Is that possible to have FrontPage Image a) BEFORE first chapter title, b) BEFORE book title? Currently the only way to include any frontpage image seems to be AFTER the first-level (non-empty) heading, like below: --- knit:…
IVIM
  • 2,167
  • 1
  • 15
  • 41