I see that I can get a RSS feed for a particular blog by appending /rss.xml to the end of the base blog URL and I can do the same for a specific topic by appending /rss.xml to a topic URL.
My question, how can I get an RSS for a particular archive…say /archive/2017/04?
We leverage a Hubspot blog for a monthly newsletter. We send that direct readers to the archive for a particular month /archive/2017/04 for April. I want to put a list on the side of the archive page of the “articles” in that months edition…like an index of what’s in that months edition. It is really just a repeat of the posts on that particular listing page. I’ve tried a post listing module…but that doesn’t work for me.
Help!
The “contents” object on the archive page should contain only the posts from that month, so you could do something like this in a Custom HubL in the sidebar:
{% for content in contents %}
<p>{{ content.name }}</p>
{% endfor %}}
Perfect!
Now would I hide that HubL on a post page?
You saved me today!!!
Actually…that works perfect for the Listing Page…but on the post page it’s blank (because there is only one post on the post page).
Is there a way that I can modify the {% for content in contents %} and display:
Is there a way to use a for loop or if statement that would do what you proposed on the listing page ({% for content in contents %}) and on the post page…somehow pull all posts from the same time period of the current post (by yyyy/mm)?