mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Include source tags in nsite deployments
This commit is contained in:
1 parent
ee240cdfda
commit
113fc0a326
4 files changed
+57
-2
No files matched your search
@@ -188,6 +188,7 @@ export class NsiteAdapter implements DeployAdapter {
|
||||
private blossomServers: string[];
|
||||
private siteTitle?: string;
|
||||
private siteDescription?: string;
|
||||
private sourceUrl?: string;
|
||||
private siteIdentifier?: string;
|
||||
|
||||
constructor(config: NsiteDeployConfig) {
|
||||
@@ -199,6 +200,7 @@ export class NsiteAdapter implements DeployAdapter {
|
||||
this.blossomServers = config.blossomServers;
|
||||
this.siteTitle = config.siteTitle;
|
||||
this.siteDescription = config.siteDescription;
|
||||
this.sourceUrl = config.sourceUrl;
|
||||
this.siteIdentifier = config.siteIdentifier;
|
||||
}
|
||||
|
||||
@@ -309,6 +311,10 @@ export class NsiteAdapter implements DeployAdapter {
|
||||
tags.push(['description', this.siteDescription]);
|
||||
}
|
||||
|
||||
if (this.sourceUrl) {
|
||||
tags.push(['source', this.sourceUrl]);
|
||||
}
|
||||
|
||||
const manifestEvent = await this.signer.signEvent({
|
||||
kind: manifestKind,
|
||||
content: '',
|
||||
|
||||
@@ -58,6 +58,8 @@ export interface NsiteDeployConfig {
|
||||
siteTitle?: string;
|
||||
/** Optional site description included as a ["description", ...] tag in the manifest */
|
||||
siteDescription?: string;
|
||||
/** Optional source repository location included as a ["source", ...] tag in the manifest */
|
||||
sourceUrl?: string;
|
||||
/**
|
||||
* Optional named-site identifier (the `d` tag value).
|
||||
* When set → publishes kind 35128 (named site), URL = {base36pubkey}{identifier}.{gateway}
|
||||
|
||||
Reference in new issue
Block a user