Skip to content

Commit 110a0bb

Browse files
author
Steve Krouse
committed
custom log file is looking prettier!
1 parent de367ce commit 110a0bb

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

_data/git-log.json

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

log.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,37 @@ title: Log
33
---
44

55
<style>
6-
.commit-header {
7-
font-size: 20px;
6+
.header {
7+
font-size: 35px;
8+
font-weight: bold;
9+
}
10+
#title {
11+
font-size: 50px;
12+
}
13+
.date {
14+
font-size: 15px;
15+
color: #aaa;
16+
margin-right: 10px
817
}
918
</style>
1019

11-
# Log
20+
<h1 id="title">Log</h1>
21+
22+
This log represents my progress on the Future of Coding project. I intend to update this log every weekday.
23+
24+
The data for this log are pulled from the commit message history for this repository.
1225

1326
<div id="commits-container">
14-
{% for commit in site.data.git-log %}
15-
<div>
16-
<div class="commit-header">{{ commit.committer.date }} - <a href="https://github.com/stevekrouse/futureofcoding.org/commit/{{ commit.commit }}">{{ commit.commit }}</a></div>
17-
<div class="commit-message">{{ commit.message | markdownify }}</div>
18-
</div>
27+
{% for commit in site.data.git-log %}
28+
{% if commit.message != 'updated git log' %}
29+
{% unless commit.message contains 'Merge branch' %}
30+
{% assign first_line = commit.message | newline_to_br | split: '<br />' | first %}
31+
{% assign date = commit.committer.date | date_to_string | prepend: "_" | append: "_" %}
32+
{% assign header = first_line | remove: "#" | prepend: '</span>' | prepend: date | prepend: '<span class="header"><span class="date">' | append: '</span>' %}
33+
{% assign message = commit.message | remove_first: first_line | prepend: header %}
34+
<div class="commit">{{ message | markdownify }}</div>
35+
{% endunless %}
36+
{% endif %}
1937
{% endfor %}
2038
</div>
2139

0 commit comments

Comments
 (0)