Can't import distill post with `distill::import_post`

Hi

I am trying to import a post from a separate Gitlab repository using the distill::import_post function. As an example I am using the standard distill example article:

---
title: "Untitled"
description: |
  A new article created using the Distill format.
author:
  - name: Nora Jones 
    url: https://example.com/norajones
    affiliation: Spacely Sprockets
    affiliation_url: https://example.com/spacelysprokets
date: "`r Sys.Date()`"
output: distill::distill_article
---

#```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
#```

Distill is a publication format for scientific and technical writing, native to the web. 

Learn more about using Distill for R Markdown at <https://rstudio.github.io/distill>.

The post renders well and the repository also includes the finished html product.

When I try to import the post in my blog, I get the following error message:

Error: Unable to import article (this article is a page within a Distill website rather than a standalone article

Can anyone lead me in the right direction regarding this error?

Best regards

Julian

The doc about the function is here:

What did you try exactly ?

This error means that you are trying to import from a website. How did you render you document: is this within a blog ? Is this a standalone article ,

If you have a reproducible issue, please open one on the Distill repository and we will look into it.

Hi,

thanks for your answer!

I tried to import from a (internal) gitlab repository like this:

https://internal_gitlab.com/group/blog

The finished html file for the blog was from a standalone distill::article rmarkdown file. By referencing the (raw) finished html file, i got rid of the error:

https://internal_gitlab.com/group/blog/-/raw/master/blog_post.html

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.