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.

463 questions
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 at…
nathaneastwood
  • 3,089
  • 18
  • 34
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
  • 298
  • 2
  • 14
13
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
  • 958
  • 9
  • 24
12
votes
9 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
  • 878
  • 1
  • 6
  • 19
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,247
  • 10
  • 20
11
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,050
  • 1
  • 11
  • 26
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,722
  • 1
  • 15
  • 33
10
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
  • 1,721
  • 1
  • 11
  • 23
9
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
  • 3,557
  • 2
  • 7
  • 32
9
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…
9
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,264
  • 9
  • 17
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
  • 153
  • 8
8
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,197
  • 11
  • 23
7
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
  • 476
  • 4
  • 10
7
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
  • 1,886
  • 2
  • 15
  • 38
1
2 3
30 31