-
-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Views and Likes causes undefined #416
Labels
Comments
@ModdyLP thanks, can you clarify something: is this just throwing warnings or actually messing up something up on the page? |
fix in dev branch, will be in the next release |
Re-opening to test "auto-close" when I merge to main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have enabled the views and likes only on posts and not on the home page or any site i don't want to. But now the script got injected and throws an error of undefined. The querySelector can't find the span of the views and likes and causes undefined. There should be a check for undefined.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If no views or likes activated, they should not show and don't throw an error.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Hugo & Blowfish versions
hugo v0.109.0-47b12b83e636224e5e601813ff3e6790c191e371+extended windows/amd64 BuildDate=2022-12-23T10:38:11Z VendorInfo=gohugoio
BlowFish 2.23.1
Additional context
Console Output
The text was updated successfully, but these errors were encountered: