fix component thumbnail for blog articles
This commit is contained in:
1 parent
8976d56495
commit
c0b75c341a
1 file changed
+4
-1
@@ -15,6 +15,7 @@ export interface DiscordButton {
|
||||
export class SeoService {
|
||||
private readonly rootDomain = 'https://itzminey.dev';
|
||||
private readonly defaultImage = 'https://itzminey.dev/assets/ogimg.png';
|
||||
private readonly defaultThumb = 'https://itzminey.dev/assets/thumb.png';
|
||||
private readonly siteColor = '#0095a4';
|
||||
|
||||
constructor(
|
||||
@@ -54,6 +55,8 @@ export class SeoService {
|
||||
existingScript.remove();
|
||||
}
|
||||
|
||||
const thumb = meta?.image || this.defaultThumb;
|
||||
|
||||
const sectionComponent = {
|
||||
type: 9,
|
||||
components: [
|
||||
@@ -65,7 +68,7 @@ export class SeoService {
|
||||
accessory: {
|
||||
type: 11,
|
||||
media: {
|
||||
url: 'https://itzminey.dev/assets/thumb.png'
|
||||
url: thumb
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user