Skip to content

Commit 2ee46e9

Browse files
author
Steve Krouse
committed
add additions & deletions to log
1 parent 4c7b6ee commit 2ee46e9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

_data/git-log.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

log.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ title: Log
1919
font-style: italic;
2020
}
2121
.commit > .files {
22-
color: rgb(255,169,77);
2322
margin-bottom: 5px;
2423
}
2524
.hash {
2625
font-size: 15px;
2726
}
27+
.additions {
28+
color: rgb(81,207,102);
29+
}
30+
.deletions {
31+
color: rgb(250,82,82);
32+
}
2833
</style>
2934

3035
<h1 id="title">Log</h1>
@@ -51,7 +56,11 @@ The data for this page is pulled from the commit message history for this reposi
5156
{% for change in commit.changes %}
5257
{% if change[2] != '_data/git-log.json' %}
5358
<div class="file">
54-
edited: <a target="_blank" href="https://github.com/stevekrouse/futureofcoding.org/blob/{{commit.commit}}/{{change[2]}}">{{change[2]}}</a>
59+
<span class="additions">{{change[0]}} additions</span> &
60+
<span class="deletions">{{change[1]}} deletions</span>
61+
<a target="_blank" href="https://github.com/stevekrouse/futureofcoding.org/blob/{{commit.commit}}/{{change[2]}}">
62+
{{change[2]}}
63+
</a>
5564
</div>
5665
{% endif %}
5766
{% endfor %}

0 commit comments

Comments
 (0)