Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Last X Content Type Under Links #18

Open
patdavid opened this issue Jun 16, 2016 · 12 comments
Open

Add Last X Content Type Under Links #18

patdavid opened this issue Jun 16, 2016 · 12 comments

Comments

@patdavid
Copy link
Member

On the main page, there are three primary links for the three biggest types of content on the site:

  • Articles
  • Blog
  • Discuss

Including the short text under each link, I thought it would be nice to include the X last titles of those content as well. Here's an example of what the Discuss feed might look like:

image

@Beep6581
Copy link

Looks good. It shows people a sample of what they can find there without having to click.

@paperdigits
Copy link
Contributor

Would you move the latest articles and blog posts to a similar position?

@patdavid
Copy link
Member Author

@paperdigits yes, I was thinking the latest blog+article posts as well (though those are things that can be added during build-time obviously - the discuss feed will need to parse a little json with js enabled).

@paperdigits
Copy link
Contributor

We'd need to parse https://discuss.pixls.us/latest.json right?

@patdavid
Copy link
Member Author

@paperdigits Yep! I think there may even be a way to limit the response to be even smaller? (I haven't checked on that in a while, so I could be mistaken).

@paperdigits
Copy link
Contributor

paperdigits commented Dec 28, 2016 via email

@patdavid
Copy link
Member Author

I haven't been able to find one either - have we checked how big the json response is? Maybe it's not too bad?

@paperdigits
Copy link
Contributor

Seems to be the last 30 posts in the json response.

@paperdigits
Copy link
Contributor

I'm going to slowly work my way through this, as my javascript is horrible.

$.ajax("https://discuss.pixls.us/latest.json").then(function (result) { 
  var topics = result.topic_list.topics; 
  for (var t = 0; t < topics.length; t++) {
    console.log(topics[t].title); 
  }
});

@patdavid
Copy link
Member Author

Where'd the jquery come from?

@paperdigits
Copy link
Contributor

paperdigits commented May 16, 2017 via email

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

No branches or pull requests

3 participants