marinebon / fk-iea

Florida Keys NMS + IEA + MBON infographics
https://marinebon.github.io/fk-iea/
MIT License
0 stars 0 forks source link

Consider publishing website as Distill Website #9

Open bbest opened 5 years ago

bbest commented 5 years ago

Hey @7yl4r,

We should consider using Distill for R Markdown: Creating a Website. Distill for R Markdown is based on the format for the machine learning online interactive journal Distill.pub. It has some sweet features:

7yl4r commented 5 years ago

Wow, so many great links. :heart_eyes: I have bookmarked Distill.pub for my own amusement later.

So would Distill for R replace Blogdown+hugo?


I am not advocating to recreate the wheel, but we could implement features like figure layout and diagrams as "shortcodes". Here is a very simple example comparison:

distill

```{r}
knitr::include_graphics("images/figure.png")
```

hugo

```{r}
blogdown::shortcode("imgcap", src="images/figure.png")
```

My first impression is that Distill is more flexible with what you can do in R, but hugo is more flexible with static html, markdown, and theme-ing.

bbest commented 5 years ago

Hey @7yl4r,

This Rmd website seems like the most straightforward way to go for having a navbar, floating toc and tabsets:

marinebon.github.io/fk-iea_tmp image

Here I'm using the darkly theme in the _site.yml (see bootswatch.com for others).