Refactor footer config
This commit is contained in:
parent
15dce3a539
commit
03ee76d815
14
README.md
14
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: {
|
||||
`<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: {
|
||||
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`,
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
@ -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.
|
||||
externalProjects: [
|
||||
{
|
||||
@ -183,6 +173,13 @@ const config = {
|
||||
'--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;
|
||||
|
||||
@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user