Cusdis Docker Setup for Hugo

What You deploy Cusdis via Docker, add the provided script and HTML block to your PaperMod Hugo project, and all of a sudden the Cusdis iframe is not taking the correct height. Here is how to fix it. Why Why is this problem happening? After looking at the code provided by the cusdis deployment for adding into the hugo project. <div id="cusdis_thread" data-host="https://your-deployment-url" data-app-id="YOUR-APP-ID" data-page-id="{{ PAGE_ID }}" data-page-url="{{ PAGE_URL }}" data-page-title="{{ PAGE_TITLE }}" ></div> <script async defer src="https://your-deployment-url/js/cusdis.es.js"></script> the script cusdis.es.js has different code then what you get if you would have used the official cusdis deployment to create a project and tried to get the html block from that project. ...

September 8, 2024 · 1 min · 196 words · Sagar Nayak

Delete Old GitHub Packages Versions with a Bash Script

What When you are sending multiple packages to GitHub for your project and you don’t need the older ones, here is how to delete the extras. This can also be used to run any kind of script from a Linux cron job on a regular basis so you can focus on the work rather than maintaining the packages. How To do this you need the github auth token which has access to the github packages edit rights. and a linux system. ...

August 15, 2024 · 2 min · 349 words · Sagar Nayak