Skip to content

Divide array into sections #23

Description

@zcjhnsn

I love this whole project so much. It's been super helpful. Just a quick question:

In your example, you have the "Today" section. How would I be able to make it so that some of the news articles would be under a section titled "Yesterday"? This section would be under the Today section.

For ease, say that the entertainment section has 3 articles I want to place in the today section, then the next articles in the array would go under the "today" section.

The only way I've been able to do it is having the today and yesterday sections contain each article. So the entertainment one would have the first two articles in the array under the Today section and the same two articles under the Tomorrow section.

I hope this all makes sense, if not just let me know.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions