dingoblog / dingo

Blog engine written in Go
MIT License
284 stars 37 forks source link

A contributors page #15

Open dinever opened 8 years ago

dinever commented 8 years ago

Let's build a contributors page which lists our contributors from github.com/dinever/dingo/graphs/contributors as a thank-you and encourage more people to get involved into this.

I'm thinking about writing a script to automatically fetch information from this GitHub API and creates a .go file before each release in the future.

TimothyYe commented 8 years ago

What do you mean "creates a .go file before each release" ?

dinever commented 8 years ago

Hi @TimothyYe,

The original idea is that we create a hard-coded .go file like this each time we create a release:

package Dingo

var contributors = []string{
    "dinever",
    "nak3",
    "samdfonseca",
    "bentranter",
    "TimothyYe",
    "youngsterxyf",
}

However, this idea is a little bit stupid.

We should probably just crawl and cache the contributors from api.github.com/repos/dingoblog/dingo/contributors, and render the content when user visits the contributors page.

Note that the page should be placed in the admin dashboard. Like in /admin/about/.

TimothyYe commented 8 years ago

@dinever , We can use javascript to get JSON data from that API interface and render it to /admin/about instantly once user visit that page.