hirsun-vuepress-theme-hope-plus
Version:
A light vuepress theme with tons of features and typewriter effect
100 lines (99 loc) • 2.13 kB
TypeScript
import type { ReadingTime } from "vuepress-plugin-reading-time2";
import type { Author } from "vuepress-shared";
export declare const enum ArticleInfoType {
type = "y",
title = "t",
shortTitle = "s",
icon = "i",
author = "a",
date = "d",
localizedDate = "l",
category = "c",
tag = "g",
isEncrypted = "n",
isOriginal = "o",
readingTime = "r",
excerpt = "e",
sticky = "u",
cover = "v",
index = "I",
order = "O"
}
export declare const enum PageType {
article = "a",
home = "h",
slide = "s",
page = "p"
}
export interface ArticleInfo extends Record<string, unknown> {
/**
* Type
*/
[]: PageType;
/**
* Article title
*/
[]: string;
/**
* Article short title
*/
[]: string;
/**
* Page icon
*/
[]?: string;
/**
* Whether this page should be indexed
*
* used in other functions, e.g.: sidebar and catalog
*/
[]?: boolean;
/**
* The order of this page in same directory
*/
[]?: number;
/**
* Article author
*/
[]?: Author | false;
/**
* writing date info
*/
[]?: number;
/**
* writing date info in current language
*/
[]?: string;
/**
* article category
*/
[]?: string[];
/**
* Article tag
*/
[]?: string[];
/**
* Reading time info
*/
[]?: ReadingTime;
/**
* article excerpt
*/
[]: string;
/**
* Whether is encrypted
*/
[]?: true;
/**
* Whether is original
*/
[]?: true;
/**
* Sticky info
*/
[]?: number | boolean;
/**
* Cover image
*/
[]?: string;
}