ropensci / roweb

:no_entry: [DEPRECATED] Active at https://github.com/ropensci/roweb2
https://legacy.ropensci.org
Other
18 stars 29 forks source link

Bug with tech-notes #261

Open karthik opened 8 years ago

karthik commented 8 years ago

Now that the blog loop ignores technotes, the main ropensci.org/blog page is empty for page 1 because it does nothing when there is just a tech note. Given that we have two consecutive tech notes now, one has to go to page 2 to see a post. This would confuse people and is also bad design.

Instead of:

if category is technotes or pt
    do nothing
else
    do stuff

We need to do something better to prevent this. Not deploying this new post till we can fix this issue.

sckott commented 8 years ago

we can do

{% for post in site.categories.blog %}
    <h3><a href="{{ site.dir }}{{ post.url }}">{{ post.title }}</a></h3>
    {{ post.authors | map: "name" | join: ", " }} &mdash; <i>{{ post.date | date: "%B %e, %Y" }}</i><br>
    {{ post.content | strip_html | truncatewords:75}}<br>
    <hr class="gray-line">
{% endfor %}

instead of using paginator in https://github.com/ropensci/roweb/blob/master/blog/index.html#L27-L37

but then we don't have pagination.

apparently jekyll folks really don't want or can't support filtering by category when using pagination

tried various other things, none have worked