crumplab_blog_index: create index.html for articles blog page

View source: R/build.R

crumplab_blog_indexR Documentation

create index.html for articles blog page

Description

This function replaces 'pkgdown::build_articles_index' which does not allow override of site-wide settings in'_pkgdown.yml'. This function allows overrides for 'articles/index.html', which I am currently using to list blog posts. As a result, it is possible to have unique meta tags (or other unique features) specified through overrides for this page that are different from the site-wide tags.

Usage

crumplab_blog_index(pkg = ".", override = yaml::read_yaml("_blog.yml"))

Arguments

pkg

The package name

override

a list of overrides, defaults to the overrides specified in '_blog.yml'

Value

builds the 'articles/index.html' page

Examples

## Not run: 
crumplab_blog_index()

## End(Not run)

CrumpLab/crumplabr documentation built on June 29, 2023, 11:25 a.m.