diff --git a/README.md b/README.md index 9ef9916..84fa513 100644 --- a/README.md +++ b/README.md @@ -289,17 +289,6 @@ const config = { username: 'arifszn', // to hide blog section, keep it empty limit: 5, // How many posts to display. Max is 10. }, - // Display a footer. Supports plain text or HTML. (Optional) - footer: { - `

- Made with GitProfile - and ❤️

` - }, googleAnalytics: { id: '', // GA3 tracking id/GA4 tag id UA-XXXXXXXXX-X | G-XXXXXXXXXX }, @@ -367,6 +356,9 @@ const config = { '--rounded-btn': '3rem', }, }, + + // Optional Footer. Supports plain text or HTML. + footer: `Copyright © 2023 John Doe`, }; ``` diff --git a/gitprofile.config.js b/gitprofile.config.js index 55dec05..32e626f 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -83,16 +83,6 @@ const config = { }, ], - // Optional custom footer. To hide the footer, just remove it from here - footer: `

- Made with GitProfile and ❤️ -

`, - // To hide the `My Projects` section, keep it empty. externalProjects: [ { @@ -183,6 +173,13 @@ const config = { '--rounded-btn': '3rem', }, }, + + // Optional Footer. Supports plain text or HTML. + footer: `Made with GitProfile and ❤️`, }; export default config; diff --git a/src/helpers/utils.jsx b/src/helpers/utils.jsx index f2ed1f4..ae508c6 100644 --- a/src/helpers/utils.jsx +++ b/src/helpers/utils.jsx @@ -135,7 +135,6 @@ export const sanitizeConfig = (config) => { ]; return { - footer: config?.footer, github: { username: config?.github?.username || '', sortBy: config?.github?.sortBy || 'stars', @@ -188,6 +187,7 @@ export const sanitizeConfig = (config) => { themes: themes, customTheme: customTheme, }, + footer: config?.footer, }; };