Permalink
Browse files

custom log file is looking prettier!

  • Loading branch information...
stevekrouse committed Dec 6, 2017
1 parent f7b5434 commit 313083992740638d7ae6304222261a4bd8f3f579
Showing with 27 additions and 9 deletions.
  1. +1 −1 _data/git-log.json
  2. +26 −8 log.md
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
34 log.md
@@ -3,19 +3,37 @@ title: Log
---
<style>
.commit-header {
font-size: 20px;
.header {
font-size: 35px;
font-weight: bold;
}
#title {
font-size: 50px;
}
.date {
font-size: 15px;
color: #aaa;
margin-right: 10px
}
</style>
# Log
<h1 id="title">Log</h1>
This log represents my progress on the Future of Coding project. I intend to update this log every weekday.
The data for this log are pulled from the commit message history for this repository.
<div id="commits-container">
{% for commit in site.data.git-log %}
<div>
<div class="commit-header">{{ commit.committer.date }} - <a href="https://github.com/stevekrouse/futureofcoding.org/commit/{{ commit.commit }}">{{ commit.commit }}</a></div>
<div class="commit-message">{{ commit.message | markdownify }}</div>
</div>
{% for commit in site.data.git-log %}
{% if commit.message != 'updated git log' %}
{% unless commit.message contains 'Merge branch' %}
{% assign first_line = commit.message | newline_to_br | split: '<br />' | first %}
{% assign date = commit.committer.date | date_to_string | prepend: "_" | append: "_" %}
{% assign header = first_line | remove: "#" | prepend: '</span>' | prepend: date | prepend: '<span class="header"><span class="date">' | append: '</span>' %}
{% assign message = commit.message | remove_first: first_line | prepend: header %}
<div class="commit">{{ message | markdownify }}</div>
{% endunless %}
{% endif %}
{% endfor %}
</div>

0 comments on commit 3130839

Please sign in to comment.