🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
It seems like Hugo academic and RStudio should play well together, but I can't get it to work.
I produced a website outside of RStudio, following the instructions to use github installation on the academic theme deployment page. The site is live (http://sjkiss.github.io) and it works fine.
But I can't figure out how to write a blogpost in RStudio that hugo will then compile.
I write a blogpost in an .rmd file in RStudio.
---
title: test
author: Simon
date: '2018-03-04'
slug: test
categories: []
tags: ['Test']
output:
md_document
---
Test
```{r}
hist(rnorm(100))
```
And when I knit to Markdown (.md file) , this is what I get. Note the absence of any TOML metadata.
Test
hist(rnorm(100))
When I compile the website from terminal after knitting to Markdown I get this:
Building sites … ERROR 2018/03/03 19:41:23 Error while rendering "home" in "": template: theme/index.html:1:3: executing "theme/index.html" at <partial "widget_page...>: error calling partial: template: theme/partials/widget_page.html:23:9: executing "theme/partials/widget_page.html" at <partial $widget $par...>: error calling partial: template: theme/partials/widgets/posts.html:61:51: executing "theme/partials/widgets/posts.html" at <len .Params.tags>: error calling len: len of untyped n
When I delete the md file that I knit, the website compiles fine.
The blog post examples seem to require TOML metadata, i.e.
+++ Metadata +++
But the blog posts in RStudio seem to use YAML metadata
`---
Metadata
`
Is this the problem? Do I need to redesign the website using blogdown and installing the academic theme from within RStudio?
Thanks.
It seems like Hugo academic and RStudio should play well together, but I can't get it to work. I produced a website outside of RStudio, following the instructions to use github installation on the academic theme deployment page. The site is live (http://sjkiss.github.io) and it works fine. But I can't figure out how to write a blogpost in RStudio that hugo will then compile.
I write a blogpost in an .rmd file in RStudio.
And when I knit to Markdown (.md file) , this is what I get. Note the absence of any TOML metadata.
When I compile the website from terminal after knitting to Markdown I get this:
When I delete the md file that I knit, the website compiles fine.
The blog post examples seem to require TOML metadata, i.e.
+++ Metadata +++
But the blog posts in RStudio seem to use YAML metadata`--- Metadata
`
Is this the problem? Do I need to redesign the website using blogdown and installing the academic theme from within RStudio? Thanks.