Sha256: af16bfff1919a4fe02e23eac395113e39232f67a4a70a23e82d21ae59f597746
Contents?: true
Size: 738 Bytes
Versions: 23
Compression:
Stored size: 738 Bytes
Contents
--- layout: page title: Posts --- <ul> <%- if options["templates"] == "erb" -%> <%% collections.posts.resources.each do |post| %> <li> <a href="<%%= post.relative_url %>"><%%= post.data.title %></a> </li> <%% end %> <%- elsif options["templates"] == "serbea" -%> {% collections.posts.resources.each do |post| %} <li> <a href="{{ post.relative_url }}">{{ post.data.title }}</a> </li> {% end %} <%- else -%> {% for post in collections.posts.resources %} <li> <a href="{{ post.relative_url }}">{{ post.data.title }}</a> </li> {% endfor %} <%- end -%> </ul> If you have a lot of posts, you may want to consider adding [pagination](https://www.bridgetownrb.com/docs/content/pagination)!
Version data entries
23 entries across 23 versions & 1 rubygems