blowfish
blowfish copied to clipboard
🎨 Github Card shortcode + minify alters its appearance
Describe the bug
To Reproduce Steps to reproduce the behavior:
- Add a GitHub card shortcode somewhere on your website.
- Build the website without minification:
hugo server
- Open the page with the GitHub card: it appears normal with language, stars and forks displayed on the same line.
- Now build the website with minification:
hugo server --minify
- Open the same page with the GitHub card: language, stars and forks and their respective numbers are each displayed on a new line.
Expected behavior The appearance of the GitHub card is the same when using --minify as the 'normal' one, i.e. language, stars and forks information appear all one the same line.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Zorin OS 17
- Browser: tested both in Chromium and Firefox
- Version : Chromium 124.0.6367.60 , Firefox 125.0.1
Hugo & Blowfish versions Hugo v0.125.1 + Blowfish v2.65.0
Additional context
Hello @CTHRU I am closing this ticket as all of Blowfish websites are built using the minify tag in the latest version of Hugo and this problem isn't there.
I have no idea what is different at your side, but for me using v2.66.0 it still looks like this when minified
Whereas non-minified, it looks like this.
The screenshots are taken from the same webpage.
Can you share the repo URL and public url for website?
It took me a while to find some time to setup a test website, but here it is:
Blowfish test repo on Codeberg
- Clone the repo
- Run a local server with
--minify
optionhugo server --minify
I hope this helps in pinpointing the issue.
Hi, would it be possible to reopen this so that a skilled contributor could take a look at this? I updated the test repo to the latest Hugo and Blowfish version and the issue is still there. I also noticed in another thread here that it also happens when adding a GitHub card to a Timeline (there was a screenshot with the exact same lay-out issue I experience). Unfortunately, I seem to have forgotten in which issue I saw it.
Thank you for re-opening the issue.