@dosgato/templating
Advanced tools
Comparing version 0.0.129 to 0.0.130
@@ -347,2 +347,3 @@ /// <reference types="node" /> | ||
linkId: string; | ||
fallbackTitle: string; | ||
createdAt: Date; | ||
@@ -349,0 +350,0 @@ modifiedAt: Date; |
@@ -109,2 +109,14 @@ import type { ContextBase, DataData, PageData, PageRecord, PageRecordOptionalData } from './component.js'; | ||
/** | ||
* Exactly like resolveLink but also returns the title of the target page, if the target page | ||
* is internal to the CMS. If the target is a random web page outside the CMS, title will be | ||
* undefined. Perhaps in the future title could be scraped from the page HTML. | ||
*/ | ||
resolveLinkAndTitle: (lnk: string | LinkDefinition | undefined, opts?: { | ||
absolute?: boolean; | ||
extension?: string; | ||
}) => Promise<{ | ||
href?: string; | ||
title?: string; | ||
}>; | ||
/** | ||
* Get a link href for a page | ||
@@ -111,0 +123,0 @@ * |
{ | ||
"name": "@dosgato/templating", | ||
"version": "0.0.129", | ||
"version": "0.0.130", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104456
2284