sbg-api
Version:
Pre-processing all source posts before rendering from hexo. Useful for low-end devices to prevent using large number of hexo plugins.
20 lines (19 loc) • 375 B
TypeScript
/**
* transform permalink format in `_config.yml`
* @param post post path
*/
export declare function parsePermalink(post: string, config: {
[key: string]: any;
/**
* permalink pattern
*/
permalink_pattern: string;
/**
* post created date
*/
date: moment.MomentInput;
/**
* post title
*/
title: string;
}): string;