Closed jerodsanto closed 9 years ago
@adamstac I added sass processing for you :)
Also, there is now an index.erb
which will be the home page and a nightly.erb
which will represent a single issue (could maybe rename this to issue.erb
if we want).
Both will use the same nightly.scss
file once deployed. You can still rake generate
which will process the sass, the index, and the currenty day's issue, putting it in to dist/:year/:month/:day
for review.
That dist
dir will be the root directory on the web server. We can also add an images
dir, which we will copy over to dist/images
so they can be served up from /images
to the web.
Shipped a first pass on the Nightly-theme. Thanks for the work on this bro!
:+1: good stuff. What do you think about stars count? Should we include that somewhere?
100% I'll work more on this.
@adamstac a few improvements I made tonight:
images
directory will be copied to dist/images
each time rake generate
is run. This means nightly.erb
and index.erb
can reference those as /images/{image}.{ext}
and it'll work in production.nightly.erb
you can now access repo.stargazers_count
(total stars) and repo.new_stargazers_count
(new stars in last 24 hours) for each repo. Obviously, the top_new
list of repos will have an identical count for both, but the top_all
list's counts will differ.Another thing I noticed: when the repo.language
is nil we are still printing the bullet point. Might want to account for that in your design.
Getting close, bro!
A few more notes:
Speaking to #1 above: perhaps instead of "in the past 24 hours" we can have it say "on Feb 14th, 2015" or similar. That'd get the date in there nicely.
I got it started, but @adamstac can finish it better than I can.