Create an article from a rmarkdown file and add it in a hugo repository

nat_hugo_addarticle(
  urlpath,
  foldername,
  title,
  author,
  categories,
  description,
  slug,
  logourl_path,
  metadata_photo
)

Arguments

urlpath

Path to the rmarkdown file (usually a location on the web)

foldername

name of the folder to be created under `/content/articles/` like '2019-09-nat'

title

Set the title of the article like 'article_xxx'

author

Set the author name like sri, greg etc (corresponding to names in the hugo repository)

categories

Set the category of the article like 'learn', 'nat' etc.

description

Set the description of the article like '`nat` version 1.8.13 is now on CRAN!'

slug

Set the slug of the article like 'nat-1-8-13'

logourl_path

Path to the square logo file that is displayed as favicon (usually a location on the web)

metadata_photo

Set the metadata related to the photo to appear on the article (must be a wide figure) like c(photoauthor, photo_url)

Examples