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
38
votes
19 answers

"Page Not Found" when trying to access a site deployed on Netlify

I'm running a static blogdown site and deploy it on Netlify. I source files on GitHub, Hugo builds the site, and Netlify deploys it. Netlify reports that the site is live (deploy log enclosed at the bottom), but when I'm trying to view my site, all…
Taraas
  • 1,268
  • 1
  • 11
  • 20
28
votes
2 answers

How do I get my blogdown blog on R-Bloggers?

I generate my blog using blogdown, but when I have tried to submit it to R-Bloggers it is not accepted because my feed returns the following error: This XML document is invalid, likely due to invalid characters. XML error: Undeclared entity error…
nathaneastwood
  • 3,664
  • 24
  • 41
14
votes
1 answer

gitlab-runner errors on local windows

I am trying to generate my work in progress hugo website locally. It works fine with gitlab CI. I installed docker and the gitlab runner service. Then using the guide here I figured that I am supposed to do gitlab-runner exec docker pages. But that…
Jan Stanstrup
  • 1,152
  • 11
  • 28
14
votes
1 answer

Incorporating interactive shiny apps into Rmarkdown document for blogdown Hugo blog

I am attempting to upload my first post to a Hugo blog using RMarkdown. Below you can find my code creating the document: --- title: "Untitled" author: "Jorge" date: "September 9, 2017" output: html_document runtime: shiny --- ```{r setup,…
Jorge
  • 392
  • 3
  • 14
13
votes
1 answer

How to host multiple Github repos using the same custom domain on Netlify?

I am currently hosting my personal website (created using blogdown and Hugo) using Netlify at wjakethompson.com. This is deployed through a Github repository. I now have a bookdown project in a separate repository that I would also like to host on…
Jake Thompson
  • 2,591
  • 1
  • 16
  • 32
12
votes
2 answers

How to prevent blogdown from rerendering all posts?

Background: I am featuring a blog built on @YihuiXie's R package blogdown. Problem: When I render_site(), all source files (*.Rmd) are rendered - even the unchanged source files are re-reendered. This complete re-rendering is time consuming and…
Sebastian Sauer
  • 1,555
  • 15
  • 24
12
votes
1 answer

Google Analytics does not work with blogdown

I use the hugo-academic theme. As Google Analytics did not work I noticed that Google Analytics Templates were missing. {{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics_async.html" . }} I added them to…
petzi
  • 1,430
  • 1
  • 17
  • 32
10
votes
2 answers

Display several code chunks in a concise way

I'm creating a blog with blogdown in which I compare code from R and code from Stata. I would like to show both codes so that the user can compare how it's done in R and in Stata. Howewer, putting two or more chunks in a row (code for R, code for…
bretauv
  • 7,756
  • 2
  • 20
  • 57
10
votes
1 answer

Best practice for updating Hugo academic theme installed with install_hugo()

Since I did not use git clone to install the Hugo academic theme with R blogdown, and since I use my own git repository to manage the entire blogdown directory structure (which includes theme) it seems to be complicated to use git to update the…
Frank Harrell
  • 1,954
  • 2
  • 18
  • 36
10
votes
2 answers

Embed a tweet in a blogdown post

I want to embed a tweet with an image. When I embed a tweet on a blogdown post using shortcodes it does not appear in the twitter style For example using the shortcode: {{< tweet 989470885475008512 >}} I get an output (my blogdown uses the…
guyabel
  • 8,014
  • 6
  • 57
  • 86
10
votes
1 answer

How to upload Jupyter notebooks using blogdown on netlify?

I would like to upload my Jupyter notebook on my website using Blogdown/Netlify? When I converted my ipynb to md, and added info to the YAML, I was able to upload it. But this upload causes it to follow the specific format/theme of the website. I…
10
votes
2 answers

How to add icon to webpage tabs in blogdown

How can I add a favicon to by blogdown website? I am using the minimal theme. I tried adding the line in the config.toml favicon = imgPath and I also attemped to move 'favicon.ico' to the static folder, but neither has worked.
troh
  • 1,354
  • 10
  • 19
9
votes
1 answer

.Rprofile not sourced

I am trying to set some global options for blogdown package in ~/.Rprofile script but they are not being sourced. Here's how the .Rprofile script looks like: options(blogdown.ext = ".Rmd", blogdown.author = "Maryam Khezrzadeh") I have also tried…
mkhezr
  • 564
  • 5
  • 10
9
votes
2 answers

Relative image paths for Twitter cards in blogdown

I'm trying to set up a template for generating Twitter Cards in blogdown. It put the following in layouts/partials/twitter-card.html: {{ if .IsPage }}
user2987808
  • 1,387
  • 1
  • 12
  • 28
9
votes
3 answers

How to add dropdown menu on tab / tabset [rmarkdown / bootstrap]

Documentation for Bootswatch suggests I can use a dropdown menu from a tab in a tabset: How can I achieve this with Rmarkdown? I've tried: # SECTION 1 {.tabset .tabset-fade} ## Section 1.1 ## Section 1.2 {????something here?????} ### Section…
Dan
  • 1,711
  • 2
  • 24
  • 39
1
2 3
35 36