mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
update
This commit is contained in:
committed by
Morten Olsen
parent
b654ba7e74
commit
e6e938bd42
@@ -18,7 +18,8 @@ export type Profile = {
|
||||
value: string;
|
||||
link: string;
|
||||
logo: string;
|
||||
}[]
|
||||
}[];
|
||||
resumeImage?: string;
|
||||
platforms: {
|
||||
name: string;
|
||||
level: number;
|
||||
@@ -50,9 +51,16 @@ export class ProfileDB {
|
||||
const image = this.#assets.getPath(
|
||||
'profile',
|
||||
structure.avatar,
|
||||
)
|
||||
)?.url
|
||||
structure.avatar = image || null;
|
||||
}
|
||||
if (structure.resumeImage) {
|
||||
const image = this.#assets.getPath(
|
||||
'profile',
|
||||
structure.resumeImage,
|
||||
)
|
||||
structure.resumeImage = image || null;
|
||||
}
|
||||
structure.social = structure.social.map((social) => {
|
||||
const image = this.#assets.getPath('profile', social.logo);
|
||||
return {
|
||||
@@ -62,8 +70,8 @@ export class ProfileDB {
|
||||
})
|
||||
structure.resume = this.#assets.getPath(
|
||||
'profile',
|
||||
'a4.tex.yml',
|
||||
);
|
||||
'a4.gen.yml',
|
||||
)?.url || null;
|
||||
return structure;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user