Skip to content

Commit 3815caa

Browse files
author
Steve Krouse
committed
added link to github commit in log
1 parent 2772739 commit 3815caa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

_data/git-log.json

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

log.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ title: Log
2121

2222
This log represents my progress on the Future of Coding project. I intend to update this log every weekday.
2323

24-
The data for this log are pulled from the commit message history for this repository.
24+
The data for this log are pulled from the commit message history for this repository. <a href="' | prepend: link | prepend: '">'
2525

2626
<div id="commits-container">
2727
{% for commit in site.data.git-log %}
2828
{% if commit.message != 'updated git log' %}
2929
{% unless commit.message contains 'Merge branch' %}
3030
{% assign first_line = commit.message | newline_to_br | split: '<br />' | first %}
3131
{% 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>' %}
32+
{% assign link = 'https://github.com/stevekrouse/futureofcoding.org/commit/' | append: commit.commit %}
33+
{% assign date_span = '<span class="date">' | append: date | append: '</span>' %}
34+
{% assign first_line_span = '<a href="' | append: link | append: '">' | append: first_line | remove: "#" | append: '</a>' %}
35+
{% assign header = '<span class="header">' | append: date_span | append: first_line_span | append: '</span>' %}
3336
{% assign message = commit.message | remove_first: first_line | prepend: header %}
3437
<div class="commit">{{ message | markdownify }}</div>
3538
{% endunless %}

0 commit comments

Comments
 (0)