Refactor footer config

This commit is contained in:
Ariful Alam 2023-01-13 16:26:04 +06:00
parent 15dce3a539
commit 03ee76d815
3 changed files with 11 additions and 22 deletions

View File

@ -289,17 +289,6 @@ const config = {
username: 'arifszn', // to hide blog section, keep it empty username: 'arifszn', // to hide blog section, keep it empty
limit: 5, // How many posts to display. Max is 10. limit: 5, // How many posts to display. Max is 10.
}, },
// Display a footer. Supports plain text or HTML. (Optional)
footer: {
`<p class="font-mono text-sm">
Made with <a
class="text-primary"
href="https://github.com/arifszn/gitprofile"
target="_blank"
rel="noreferrer"
>GitProfile</a>
and ❤️</p>`
},
googleAnalytics: { googleAnalytics: {
id: '', // GA3 tracking id/GA4 tag id UA-XXXXXXXXX-X | G-XXXXXXXXXX id: '', // GA3 tracking id/GA4 tag id UA-XXXXXXXXX-X | G-XXXXXXXXXX
}, },
@ -367,6 +356,9 @@ const config = {
'--rounded-btn': '3rem', '--rounded-btn': '3rem',
}, },
}, },
// Optional Footer. Supports plain text or HTML.
footer: `Copyright © 2023 John Doe`,
}; };
``` ```

View File

@ -83,16 +83,6 @@ const config = {
}, },
], ],
// Optional custom footer. To hide the footer, just remove it from here
footer: `<p class="font-mono text-sm">
Made with <a
class="text-primary"
href="https://github.com/arifszn/gitprofile"
target="_blank"
rel="noreferrer"
>GitProfile</a> and
</p>`,
// To hide the `My Projects` section, keep it empty. // To hide the `My Projects` section, keep it empty.
externalProjects: [ externalProjects: [
{ {
@ -183,6 +173,13 @@ const config = {
'--rounded-btn': '3rem', '--rounded-btn': '3rem',
}, },
}, },
// Optional Footer. Supports plain text or HTML.
footer: `Made with <a
class="text-primary" href="https://github.com/arifszn/gitprofile"
target="_blank"
rel="noreferrer"
>GitProfile</a> and `,
}; };
export default config; export default config;

View File

@ -135,7 +135,6 @@ export const sanitizeConfig = (config) => {
]; ];
return { return {
footer: config?.footer,
github: { github: {
username: config?.github?.username || '', username: config?.github?.username || '',
sortBy: config?.github?.sortBy || 'stars', sortBy: config?.github?.sortBy || 'stars',
@ -188,6 +187,7 @@ export const sanitizeConfig = (config) => {
themes: themes, themes: themes,
customTheme: customTheme, customTheme: customTheme,
}, },
footer: config?.footer,
}; };
}; };