mirror of
https://github.com/Patiun/com.gregkilmer.www.git
synced 2026-11-08 04:08:24 +00:00
Domain update
This commit is contained in:
@@ -53,13 +53,13 @@ const fullTitle = title
|
||||
|
||||
const canonical = new URL(
|
||||
Astro.url.pathname,
|
||||
Astro.site ?? "https://patiun.com",
|
||||
Astro.site ?? "https://gregkilmer.com",
|
||||
);
|
||||
const ogImageUrl = ogImage
|
||||
? new URL(ogImage, Astro.site ?? "https://patiun.com").toString()
|
||||
? new URL(ogImage, Astro.site ?? "https://gregkilmer.com").toString()
|
||||
: new URL(
|
||||
"/images/hero-portrait.jpg",
|
||||
Astro.site ?? "https://patiun.com",
|
||||
Astro.site ?? "https://gregkilmer.com",
|
||||
).toString();
|
||||
---
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ export const siteIdentity = {
|
||||
/** Spec tagline; appears beside the logo. */
|
||||
tagline: 'Developer. Maker. Storyteller.',
|
||||
/** Spec domain. */
|
||||
domain: 'patiun.com',
|
||||
domain: 'gregkilmer.com',
|
||||
} as const;
|
||||
|
||||
/**
|
||||
|
||||
@@ -121,16 +121,16 @@ async function deliver(msg: Message): Promise<boolean> {
|
||||
});
|
||||
const hostname = (() => {
|
||||
try {
|
||||
return new URL(process.env.SITE_URL ?? 'https://patiun.com').hostname;
|
||||
return new URL(process.env.SITE_URL ?? 'https://gregkilmer.com').hostname;
|
||||
} catch {
|
||||
return 'patiun.com';
|
||||
return 'gregkilmer.com';
|
||||
}
|
||||
})();
|
||||
await transport.sendMail({
|
||||
from: process.env.SMTP_FROM ?? `Greg's Site <no-reply@${hostname}>`,
|
||||
to: process.env.CONTACT_TO ?? 'greg@patiun.com',
|
||||
to: process.env.CONTACT_TO ?? 'greg@gregkilmer.com',
|
||||
replyTo: `${msg.name} <${msg.email}>`,
|
||||
subject: `New message from ${msg.name} via patiun.com`,
|
||||
subject: `New message from ${msg.name} via gregkilmer.com`,
|
||||
text: `Name: ${msg.name}\nEmail: ${msg.email}\n\n${msg.message}`,
|
||||
});
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user