Closed MichaelBrauner closed 3 years ago
There is a block present, though, I'd expect that there would be comments output to indicate that block?
Can you help me understand why you believe this is a bug?
Ah, I understand now. I have to write the title tag inside the block - otherwise the comments are landing inside of the page title.
Sorry for that. I love your work and your blogposts.
Cheers!
Hi Andrew! I'm running into this, and I agree that it's expected behavior, but I don't want it. I tried adding title
to use the excludeBlocksThatContain
setting, but no luck. Is that because the block itself is called title
, but it doesn't contain the word title
?
Use the excludeBlocksThatContain
config setting @KatieMFritz :
https://github.com/nystudio107/craft-templatecomments/blob/develop/src/config.php#L44
If should work if the block is or contains title
-- what version of the plugins are you using? Note: You might have to clear template caches after changing this setting, for it to apply to your compiled templates.
Describe the bug
When extending a template
base.html.twig
:And try to change the title:
Comments are printed into final result:
Expected behaviour
No comments should be printed into final result.
Versions