client/posts: support content aware post flow option

This commit is contained in:
Shyam Sunder
2020-09-27 15:11:34 -04:00
parent afe4c5c847
commit eaa6107a6c
6 changed files with 29 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<div class='post-list'>
<% if (ctx.postFlow) { %><div class='post-list post-flow'><% } else { %><div class='post-list'><% } %>
<% if (ctx.response.results.length) { %>
<ul>
<% for (let post of ctx.response.results) { %>

View File

@ -47,6 +47,15 @@
<p class='hint'>Rather than using a paged navigation, smoothly scrolls through the content.</p>
</li>
<li>
<%= ctx.makeCheckbox({
text: 'Use post flow',
name: 'post-flow',
checked: ctx.browsingSettings.postFlow,
}) %>
<p class='hint'>Use a content-aware flow for thumbnails on the post search page.</p>
</li>
<li>
<%= ctx.makeCheckbox({
text: 'Enable transparency grid',