However, we would like to add additional information to the content of the <h1> tag depending on the listing view. For example when the user visits topic "X" which filters only the posts for topic "X". I would like the the topic "X" being displayed in the <h1> tag, in order to give the site visitor a proper information which topic has been selected and filtered.
Is there any HubL tag which can provide me with the current topic? So I can output the content?
How would this be done today? the {{ topic }} does not seem to be present on blog listing pages anymore? (it is not in the documentation about available variables either).
This is a nice solution for the user with JavaScript enabled.
However, I wanted to avoid as well duplicated <h1> content and want to insert the topic here for search engines. I have an idea how to solve it with HubL. I will post it here as soon I have done some tests.