simplify project fields
This commit is contained in:
parent
f9c84c53f4
commit
3f9cf6a057
4 changed files with 56 additions and 45 deletions
4
libs/types/src/content/dateRange.d.ts
vendored
4
libs/types/src/content/dateRange.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
export type DateRange = {
|
||||
from: string
|
||||
to: string
|
||||
from: string | number
|
||||
to: string | number
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import type { DateRange } from '../dateRange'
|
||||
import type { EntryTagCollection } from '../entryTag'
|
||||
import type { EntryWithConfig, EntryWithContent } from './shared'
|
||||
|
||||
|
@ -7,18 +8,11 @@ import type { EntryWithConfig, EntryWithContent } from './shared'
|
|||
* At minimum, the title should be specified.
|
||||
*/
|
||||
export type ProjectListingInfo = {
|
||||
/**[Supports Markdown]
|
||||
* Caption displayed below the title of the project on the projects page
|
||||
*/
|
||||
caption?: string
|
||||
/**[Supports Markdown]
|
||||
* Optional subtitle for the project
|
||||
*/
|
||||
subtitle?: string
|
||||
date?: DateRange | string | number
|
||||
/**[Supports Markdown]
|
||||
* Information to summarize a project
|
||||
*/
|
||||
summary?: string
|
||||
description?: string
|
||||
/**
|
||||
* Tags that correspond to project filters on the portfolio page if defined
|
||||
*/
|
||||
|
@ -27,14 +21,9 @@ export type ProjectListingInfo = {
|
|||
* The title of the project
|
||||
*/
|
||||
title: string
|
||||
/**[CSS:background]
|
||||
* Background image, repeat, attachment, and position for the project
|
||||
*/
|
||||
thumbnailBackground?: string
|
||||
/**[CSS:background-size]
|
||||
* Background image size
|
||||
*/
|
||||
thumbnailBackgroundSize?: string
|
||||
thumbnail?: {
|
||||
style: CSSStyleDeclaration
|
||||
}
|
||||
}
|
||||
|
||||
export type ProjectEntries = { [key: string]:
|
||||
|
@ -43,10 +32,6 @@ export type ProjectEntries = { [key: string]:
|
|||
}
|
||||
|
||||
export type ProjectList = {
|
||||
projects: { [key: string]: {
|
||||
config: string
|
||||
content: string
|
||||
}}
|
||||
projects: ProjectEntries
|
||||
tags?: EntryTagCollection
|
||||
removeFromView?: boolean
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue