-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Hugo_stats.json is missing some classes when there is somewhere an apostrophe in string #8530
Comments
The collector collects classes in HTML files written to |
Not sure if I understand well what you want.
|
Thanks for your question Bep !! Trying to narrow th pb => My descrition is not fully accurate. I found that the problem occurs when I have an other partial called earlier in the code in So the problem is not index.html vs list.html. Sorry for not seing that before. partial
|
THIS. DOESNT. MAKE. SENSE. Removing the comment line Just that. |
Removing the |
Minimal reproducible example: git clone --single-branch -b hugo-github-issue-8530 https://github.com/jmooring/hugo-testing hugo-github-issue-8530
cd hugo-github-issue-8530
hugo
cat hugo_stats.json The hugo_stats.json file will contain the "pass" class, but the "fail" class will be missing. See "pass" and "fail" shortcodes. |
It's the quite tricky business of dealing with quotation marks. @bep: |
Well, unfortunately, PR #8436 don't fix this issue as well. It fixes "only" fixes these four bugs with testcases there. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Following this thread in community I open this issue. Summary is:
If a partial has some icon define as
<i class="myiconclass"></i>
and is called from mainindex.html
the classes are not written inhugo_stats.json
when runninghugo
.If this same partial is called from
mysection/list.html
then it works as expected.[EDIT] This happens in my multilingual site with
defaultContentLanguageInSubdir = false
optionThe text was updated successfully, but these errors were encountered: