🙏Twitter has a teacher named @AlexProgramerOh who shared a solution for synchronizing xLog dashboard to GitHub personal homepage, which looks cool!
As a programming novice, I still don't quite understand how to do it, so I asked for guidance and the divination showed that it can be done ☯️
The method is as follows👇
- Fork this project Alex-Programer: Config files for my GitHub profile. to your own GitHub
- Fill in the name of xLog in xlog card to obtain the dashboard display code. If you don't know the name, you can check it in the settings of xLog backend.
⚠️Note that this is an example, please copy your own code <picture> <source media="(prefers-color-scheme: light)" srcSet="https://xlog-card.vercel.app/api/lenband?theme=light" /> <source media="(prefers-color-scheme: dark)" srcSet="https://xlog-card.vercel.app/api/lenband?theme=dark" /> <img src="https://xlog-card.vercel.app/api/lenband?theme=light" alt="" /> </picture>
- Go to the forked repository, and in the settings, change the repository name to match your GitHub account name. This is very important.
- Modify the content in
README.mdand copy the code obtained from xlog card into readme.md. Modify other text information according to your needs.
- Refresh the page, and there will be an additional section on the right. Click the green button to display the xLog dashboard on your GitHub personal homepage. The data will be synchronized and updated🌈