<!-- statements
Unsolved
Technical Support
-
Seems I can use this which works. Essentially, if it's a topic then I want to use a specific font for the title. If it's not, use the default.
<!-- IF posts.length --> <h2 id="title" class="PageHero-title">{title}</h2> <!-- ENDIF posts.length --> <!-- IF !posts.length --> <h2 id="title" class="PageHero-title titlefont">{title}</h2> <!-- ENDIF !posts.length -->
-
@baris No, it doesn't. Seems it's not recognised.
EDIT - yes, it does - looks like @baris forgot the
!
in the tag<!-- IF template.topic --> <h2 id="title" class="PageHero-title">{title}</h2> <!-- ENDIF template.topic --> <!-- IF !template.topic --> <h2 id="title" class="PageHero-title titlefont">{title}</h2> <!-- ENDIF !template.topic -->
Copyright © 2024 NodeBB | Contributors