This isn't a feature request, rather a 'how do I' by hacking what is in Statamic now.
- On my homepage I wish to display the contents of my blog and photos folders
- These should be grouped by day, and only the most recent 5 days with any content shown (for example: if There was only content published [3,16,22,26,33] days ago, it should just show those days)
- I wish to then further group my photos by hour "At around 6pm I took 3 photos", etc.
- Finally, photos and blog posts should be able to be styled differently.
Here's the content of my default.html
file so far:
<h1>{{ title }}</h1>
{{ entries:listing folder="blog|photos" group_by_date="l, jS F Y" since="-2 years" }}
{{ if grouped_date }}
{{ if !first }}
</ul>
{{ /if }}
<h3>{{ grouped_date }}</h3>
<ul>
{{ endif }}
<li>
<a href="{{ url }}">{{ url }}{{ title }}</a>
</li>
{{ if last }}
</ul>
{{ /if }}
{{ /entries:listing }}
Hope all that makes sense! Thanks in advance for your help.