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

Linking to another post in blogdown

Suppose I have an older post in contents/post/2019-04-29-old-post.Rmd and I want to link to it from a new rmarkdown post. Is there any way to do it without using the hardcoded url of the live site (so that I don't have to change all these cross…
Jan Hlavacek
  • 207
  • 2
  • 5
8
votes
1 answer

Website not updating with blogdown & hugo

I know this question is likely to get down-voted due to insufficient reproducibility of code leading to the error, but I am so dumbfounded by the error I do not even know where to start in explaining it clearly enough. I therefore apologise in…
JimGrange
  • 262
  • 2
  • 10
8
votes
3 answers

add 'Working Papers' Section (within publications) to hugo-academic site

I am using R blogdown package to create my personal website. I am basing it on the hugo-academic theme (code here) I would like to add a "working papers" section to the publications. In my discipline Economics we normally have "working papers" (pdf…
LucasMation
  • 2,408
  • 2
  • 22
  • 45
7
votes
1 answer

blogdown::serve_site() fails to produce template site

I've been following the instructions here to install the R blogdown package and get my new site running. When I get to the step where I run serve_site(), I get the following error message: Launching the server via the command: …
Piethon
  • 227
  • 2
  • 11
7
votes
1 answer

R Blogdown Hugo academic theme not rendering site

I am trying to create a website using R Blogdown Hugo-Academic theme. Typically, I would create a website by running the following commands: blogdown::new_site(theme = 'gcushen/hugo-academic') blogdown::serve_site() But I am getting an error failed…
sheth7
  • 351
  • 2
  • 14
7
votes
2 answers

How to insert a linebreak in hugo image tag title element?

I am using blogdown and kakawait/hugo-tranquilpeak-theme to write a plain markdown blog post. When I add images with the shortcode option tag such as {{< image classes="fancybox right clear" src="image2.png" …
7
votes
1 answer

Hugo not reading .Rmd files after using blogdown

I am working on creating a website using Github Pages and Hugo (proquestionasker.github.io). Currently, when I create project files or blog articles in RMarkdown, I have to convert them to markdown (.md) files before Hugo/Github will read them. The…
Amber Thomas
  • 191
  • 1
  • 1
  • 11
6
votes
2 answers

Knitr cannot find img files in /static/ folder

I have a hugo-academic website (methods101.com) that has been working well for last year. I just went to edit some pages and I've started getting a new error. The code that seems to be creating the problems is the knitr::include_graphics()…
6
votes
3 answers

Bad rendering of the local index.html from public folder using HUGO

I am creating a web using RStudio and HUGO, by means of the Blogdown package. When serving the site locally in RStudio, it seems to be rendered properly. All the files are created within the folder /public. However, when I open the file index.html…
antecessor
  • 2,688
  • 6
  • 29
  • 61
6
votes
0 answers

blogdown:::new_post_addin cannot open file 'content/post/[filename].md': No such file or directory

I'm not sure how to troubleshoot the error in creating a new post on my blogdown project, https://github.com/ssp3nc3r/ssp3nc3r.github.io using the new post addin, which occurs whether I set the type as a md or rmd: >…
ssp3nc3r
  • 3,662
  • 2
  • 13
  • 23
6
votes
1 answer

Change blog theme (blogdown+netlify)

I have followed tutorial by Yihui and created a website using blowdown, github and netlify. Now, I want to change theme of my website. The issue is that I have several posts that produces many plots. As a result when I create a new website locally…
Masood Sadat
  • 1,247
  • 11
  • 18
6
votes
1 answer

Is it possible to create a Rmd file template for the blogdown "new post" addin?

I find myself using a lot of the same R code in my Rmd posts and currently have a template file from where I copy paste this common R code into new posts. However, now I wonder if it's possible to modify the Rmd post template to include these lines…
6
votes
1 answer

Control index.xml for Atom/RSS (hugo / blogdown generates feed with relative links)

Which parameters in config.toml or which files in /layouts control the generation of index.xml? When I validate my Atom feed, I get a number of errors, pretty much all of them due to links not being complete…
Taraas
  • 1,268
  • 1
  • 11
  • 20
5
votes
1 answer

Display YAML and chunks without executing them in blogdown

In an article made with blogdown, I would like to show the YAML and some chunks I used in a previous work. Therefore, I would like to display them without executing them, just as-is. I tried to embed the YAML and the chunks with 4 backticks but the…
bretauv
  • 7,756
  • 2
  • 20
  • 57
5
votes
2 answers

Is there a way to change the width page of a html post in blogdown/hugo?

I'm building a post using blogdown with the theme hugo-tranquilpeak-theme. Is there a way which I can change the width of the rendered page ? I have an example here: It seems me too narrow. Could I do it larger ? I wish I could set it as a default…
Rafael Toledo
  • 974
  • 13
  • 19
1
2
3
35 36