rename blog -> article

This commit is contained in:
lightling 2024-08-14 02:19:31 -04:00
parent 96f6032b85
commit 7a0d229e67
10 changed files with 47 additions and 47 deletions

View file

@ -1,5 +1,5 @@
import { Router } from 'vue-router'
import { BlogEntry } from '../content/templates/blog-list'
import { ArticleEntry } from '../content/templates/article-list'
import { GalleryEntry } from '../content/templates/gallery-list'
import { TemplateType } from '../content/templates/templateType'
import { WarningModal } from './warnings'
@ -39,10 +39,10 @@ export type MarkdownDefinition = ContentfulRouteDefintion & {
}
/**
* Defines the config for a route using the `blog-list` {@link TemplateType}
* Defines the config for a route using the `article-list` {@link TemplateType}
*/
export type BlogListDefinition = ConfigfulRouteDefinition & {
template: 'blog-list'
export type ArticleListDefinition = ConfigfulRouteDefinition & {
template: 'article-list'
view: {
stylesheetUrls: string[]
}
@ -63,7 +63,7 @@ export type GalleryListDefinition = ConfigfulRouteDefinition & {
*/
export type RouteDefinition =
| MarkdownDefinition
| BlogListDefinition
| ArticleListDefinition
| GalleryListDefinition
/**
@ -77,9 +77,9 @@ export type RouteCollection = { [key: string]: RouteDefinition }
export interface RoutedWindow extends Window {
/** refers to a template's primary route config; may briefly refer to sub config until a view is fully resolved */
routeConfig: RouteDefinition
/** refers to a template's sub config in the case of child routes under a template (e.g. blog-view under blog-list) */
/** refers to a template's sub config in the case of child routes under a template (e.g. article-view under article-list) */
routeSubConfig: any
/** refers to content config for various view routes (e.g. {@link GalleryEntry}, {@link BlogEntry}, etc.) */
/** refers to content config for various view routes (e.g. {@link GalleryEntry}, {@link ArticleEntry}, etc.) */
routeContentConfig: any
/** vue-router instance */
router?: Router

View file

@ -1,5 +1,5 @@
/**
* Defines a tag used by entries in a gallery-list/blog-list,
* Defines a tag used by entries in a gallery-list/article-list,
* used for filtering entries from view
*/
export type EntryTag = {
@ -19,11 +19,11 @@ export type EntryTag = {
}
/**
* Defines the list of tags in a gallery-list/blog-list,
* Defines the list of tags in a gallery-list/article-list,
* a key-value object where the value is the entry,
* and the key represents the id of a tag;
* the id of a tag must be unique,
* and the ids specified in a gallery/blog entry must match
* and the ids specified in a gallery/article entry must match
* the ids specified in `EntryTagCollection` in order for them to work effectively
*/
export type EntryTagCollection = { [id: string]: EntryTag }

View file

@ -0,0 +1,12 @@
import type { MediaEntry } from './shared'
/**
* This describes additional information about a article entry
* to display when listing the entry on the article-list page.
*/
export type ArticleEntry = {
/**
* URL to the markdown document of the article entry
*/
url: string
} & MediaEntry

View file

@ -1,12 +0,0 @@
import type { MediaEntry } from './shared'
/**
* This describes additional information about a blog entry
* to display when listing the entry on the blog-list page.
*/
export type BlogEntry = {
/**
* URL to the markdown document of the blog entry
*/
url: string
} & MediaEntry

View file

@ -4,5 +4,5 @@
*/
export type TemplateType =
| 'markdown'
| 'blog-list'
| 'article-list'
| 'gallery-list'

View file

@ -8,7 +8,7 @@ export * from './content/dateRange'
export * from './content/entryTag'
export * from './content/link'
export * from './content/templates/blog-list'
export * from './content/templates/article-list'
export * from './content/templates/gallery-list'
export * from './content/templates/shared'
export * from './content/templates/templateType'