Retrieving status.cafe Updates During Hugo Builds
status.cafe provides you with a JavaScript snippet to include your status on your site. I don’t update my status super often, so I don’t need to be hitting m15o’s servers on every page load. To get around this, I wanted to see if I could update my status as a build step in Hugo. This is the script status.cafe provides: document.writeln('<div id="statuscafe"><div id="statuscafe-username"></div><div id="statuscafe-content"></div></div>'); fetch("https://status.cafe/users/yequari/status.json") .then( r => r.json() ) ....