eratic / packages / core / src / index.ts
131 words
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
 * @eratic/core — everything the four sites share.
 *
 * Import from the package root for config, schemas and helpers:
 *   import { SITES, baseEntry, formatDate } from '@eratic/core';
 *
 * Components and layouts are imported by path, because .astro files cannot be
 * re-exported from a .ts module:
 *   import Base from '@eratic/core/layouts/Base.astro';
 *   import Figure from '@eratic/core/components/Figure.astro';
 */

export { IDENTITY, SITES, NAV_ORDER, MEDIA, mediaUrl, absoluteUrl } from './config.js';
export type { SiteKey, SiteDef } from './config.js';

export { baseEntry, themeOverride, canvas, imageWithAlt } from './lib/schema.js';

export { rssFeed, jsonFeed, published, absolutise } from './lib/feeds.js';
export type { FeedItem } from './lib/feeds.js';

export { readExif, exifLine } from './lib/exif.js';
export type { PhotoExif } from './lib/exif.js';

export {
	formatDate,
	formatDateShort,
	formatMonth,
	isoDate,
	groupByMonth,
	readingTime,
	prettyHost,
} from './lib/format.js';

static mirror of HEAD · about · clone: git clone https://git.makefuture.ro/eratic.git