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

kable table not properly rendering on website

I use the R package, blogdown, to manage my website. The table I created is rendering as a standard(?) markdown table after saving and serve_site even though I'm using knitr::kable. But when I knit the chunk in a different RMarkdown file, it renders…
erbo
  • 47
  • 4
3
votes
0 answers

Changing the default base format in blogdown

I'm wondering does anyone know how to correctly change the base format for a blogdown site. I want to use the tufte::tufte_html format to render my Rmd files, but I can't seem to work out how to do this correctly. Setting the output in the YAML…
Dan
  • 493
  • 4
  • 7
3
votes
3 answers

Create a rectangle filled with text

I'd like to create a filled rectangle in R, with white text centered in the middle, and export it to png. I know the rect() function can probably do this, but every example I've seen the rectangle is printed on a plot. Is there a way to do this…
heyydrien
  • 971
  • 1
  • 11
  • 28
3
votes
1 answer

Change the line height of the post title in HUGO-Xmin theme

With R blogdown package, it is easy to build a personal website. I like the style of the yihui/hugo-xmin theme for its simplicity. I built a site with the R blogdown package in my folder 'c:/test' on the Windows…
pzhao
  • 335
  • 1
  • 10
3
votes
0 answers

Work-around for code folding in Hugo blogdown websites

In Rmarkdown documents there is a code folding option--code_folding: hide. This option is not available for Hugo websites generated with the blogdown package (see this recently opened feature request). Has anyone come up with a work-around for this?…
Nate A
  • 71
  • 8
3
votes
1 answer

Use Rmd files for content pages in blogdown website

I am considering switching my website to blogdown. My current set-up only uses .Rmd files with a less-than-ideal blog implementation. It seems like one advantage of blogdown is that it automates the blogging part of the website (posts, lists, dates,…
babylinguist
  • 392
  • 1
  • 13
3
votes
2 answers

How to cite using bibtex in blogdown?

I would like to use citations on a page of my static website created with the R package blogdown. Based on the book written about blogdown (https://bookdown.org/yihui/blogdown/#) this seems to be possible. However, I do not not know exactly how to…
User33
  • 294
  • 3
  • 10
3
votes
1 answer

rendering a md file in blowdown with pandoc other than blackfriday?

I have a plain markdown file in my blogdown website: 1. Item 1 - Item a - Item b 2. Item 2 When I served my site, the number of the second item "2. Item 2" was restarted from "1", rather than from "2". PS, I don't want to insert more spaces to…
Likan Zhan
  • 1,056
  • 6
  • 14
3
votes
1 answer

Blogdown, Git and RStudio: Unable to Stage public/ folder

I am very new to blogdown and git. While staging the files/folders (using RStudio) inside the project folder, I am unable to choose the following folders: Can anybody let me know why this is happening and how can I stage/commit/push the above…
avinax
  • 107
  • 2
  • 12
3
votes
2 answers

How to add feature or thumbnail image for post in .Rmd file

I'm currently trying to setup a hugo blog with blogdown and can't find a way to add feature or thumbnail images to posts from within .Rmd files, which would like this with the tranquilpeak theme: As far as I understand, it is easy to do in .md…
methodds
  • 85
  • 8
3
votes
1 answer

Image via shortcode in RMarkdown using blogdown not showing up

I want to display images via shortcode in a RMarkdown file using blogdown. I use the code: ```{r echo=FALSE} blogdown::shortcode("figure", src = "/img/to/path/my-picture.png", alt = "Some alt text") ``` I get no error message, just an empty space…
petzi
  • 1,430
  • 1
  • 17
  • 32
3
votes
1 answer

Is there an easy way to add a summary under the headline to the home page in a blogdown theme?

I'd love to include a summary under the headline for each of the headline links on my blogdown home page using the hugo lithium theme, but I'm not sure what file to alter to change the main index.html display (or what I would add). Thanks for any…
Sharon
  • 3,676
  • 3
  • 23
  • 20
3
votes
1 answer

blogdown + hugo, tabbed codeblock doesn't show up with theme tranquilpeak

I use blogdown with hugo (theme tranquilpeak). When I add a tabbed codeblock in my .Rmd file, the codeblock doesn't show up as intended, it is shown as normal text. Any idea why? 2017-09-02-tabbed-codeblock.Rmd --- title: tabbed-codeblock author:…
3
votes
1 answer

Create a new static page using blogdown with same hugo theme as main site

I'm using the R package blogdown to create a hugo-powered website. Specifically i'm using the gcushen/hugo-academic theme. The tutorials by @xieyihui and @apreshill have been wonderfully helpful to get started, and adding new posts is clear, but…
Robin Donatello
  • 415
  • 3
  • 12
3
votes
1 answer

Customize the "about" widget in hugo academic theme

I am using the hugo-academic theme via RStudio/blogdown to build my webpage. The example page is here: https://themes.gohugo.io/theme/academic/ I would like to add a second list of non-academic Interests below the academic ones. Is this possible?…
Robin Donatello
  • 415
  • 3
  • 12