🙏 On Twitter, a teacher @AlexProgramerOh shared a solution to sync the xLog dashboard to a GitHub personal homepage, which seems very cool!
As a programming novice, I still don't quite understand how to do it, so I consulted the oracle again, and the result 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
- Go to xlog card and fill in the xLog name to get the dashboard display code. If you don't know this name, you can check it in the settings under the domain name in the xLog backend.
⚠️ Note 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 into the forked repository and change the repository name in settings; it must match your GitHub account name, which is very important.
- Modify the content in
README.md
, copy the code obtained from xlog card into readme.md, and modify other text information according to your needs.
- Refresh, and you will see this additional content on the right. Click the green button to display the xLog dashboard on your GitHub personal homepage, and the data will sync and update 🌈