Permalink
Browse files

added link to github commit in log

  • Loading branch information...
stevekrouse committed Dec 6, 2017
1 parent 665d1f1 commit 385906bee4d4c560dc87fd91c12d2fc1e670f40c
Showing with 6 additions and 3 deletions.
  1. +1 −1 _data/git-log.json
  2. +5 −2 log.md
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
7 log.md
@@ -21,15 +21,18 @@ title: Log
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.
The data for this log are pulled from the commit message history for this repository. <a href="' | prepend: link | prepend: '">'
<div id="commits-container">
{% 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 link = 'https://github.com/stevekrouse/futureofcoding.org/commit/' | append: commit.commit %}
{% assign date_span = '<span class="date">' | append: date | append: '</span>' %}
{% assign first_line_span = '<a href="' | append: link | append: '">' | append: first_line | remove: "#" | append: '</a>' %}
{% assign header = '<span class="header">' | append: date_span | append: first_line_span | append: '</span>' %}
{% assign message = commit.message | remove_first: first_line | prepend: header %}
<div class="commit">{{ message | markdownify }}</div>
{% endunless %}

0 comments on commit 385906b

Please sign in to comment.