ubunchuu-truong-us / ubunchuu-truong-us.github.io

▶️ Open-source ubunchuu-truong-us linux documentation. Built with 💚 and built for easy contribution 👨🏻‍💻.
https://ubunchuu.com
MIT License
11 stars 1 forks source link

Update the f*kin outdated footer year #66

Closed thangbuiq closed 2 months ago

thangbuiq commented 2 months ago

Description: It's too ridiculous to see our footer year is outdated, especially when the project is in great shape otherwise. This small issue stands out and needs to be addressed ASAP for consistency and professionalism.

Footer Image

Reference: https://ubunchuu-truong-us.github.io/

Proposed Solution: We can easily fix this by using the STRONGEST API in the world (sponsored by https://getfullyear.com/). Here's the simple JavaScript code to do it:

fetch('https://getfullyear.com/api/year')
  .then(response => response.json())
  .then(data => {
    console.log(data.sponsored_by);
    footerYear.textContent = data.year;
  });

Let's get this done ASAP! Cc: @lelouvincx @thangbuiq @tuantran0910 @greyyT

greyyT commented 2 months ago

We also need to care about their warning. The randomness from their API may lose our customers.

Image
lelouvincx commented 2 months ago

Ok please open a pull request to fix that!

thangbuiq commented 2 months ago

footer update automatically whenever docusaurus rebuild our site