Skip to content

Commit 96e128a

Browse files
author
Steve Krouse
committed
removed error commit message from log and rss
1 parent c91ccbc commit 96e128a

File tree

2 files changed

+33
-31
lines changed

2 files changed

+33
-31
lines changed

log.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,34 +44,36 @@ The data for this page is pulled from the commit message history for this reposi
4444
{% for commit in site.data.git-log %}
4545
{% if commit.message != 'updated git log' %}
4646
{% unless commit.message contains 'Merge branch' %}
47-
{% assign first_line = commit.message | newline_to_br | split: '<br />' | first %}
48-
{% assign date = commit.committer.date | date: "%m/%d/%y %a %l:%M %p" %}
49-
{% assign message = commit.message | remove_first: first_line %}
50-
<div class="commit">
51-
<a class="hash" href="https://github.com/stevekrouse/futureofcoding.org/commit/{{ commit.commit }}"><h2 class="header">
52-
{{ first_line | remove: "#" | replace: "<li>", "li" }}
53-
</h2></a>
54-
<div class="date">{{ date }}</div>
55-
{% if commit.changes != empty %}
56-
<div class="files">
57-
{% for change in commit.changes %}
58-
{% if change[2] != '_data/git-log.json' %}
59-
<div class="file">
60-
<a target="_blank" class="changes" href="https://github.com/stevekrouse/futureofcoding.org/blob/{{commit.commit}}/{{change[2]}}">
61-
<span class="additions">{{change[0]}} additions</span> &
62-
<span class="deletions">{{change[1]}} deletions</span>
63-
</a>
64-
<a target="_blank" href="/{{change[2] | remove: ".md"}}">
65-
{{change[2]}}
66-
</a>
67-
</div>
68-
{% endif %}
69-
{% endfor %}
70-
</div>
71-
{% endif %}
72-
{{ message | markdownify }}
73-
{{ site.data.commitToJournalMarkdown[commit.commit] | markdownify }}
74-
</div>
47+
{% unless commit.message contains 'Please enter the commit message for your changes.' %}
48+
{% assign first_line = commit.message | newline_to_br | split: '<br />' | first %}
49+
{% assign date = commit.committer.date | date: "%m/%d/%y %a %l:%M %p" %}
50+
{% assign message = commit.message | remove_first: first_line %}
51+
<div class="commit">
52+
<a class="hash" href="https://github.com/stevekrouse/futureofcoding.org/commit/{{ commit.commit }}"><h2 class="header">
53+
{{ first_line | remove: "#" | replace: "<li>", "li" }}
54+
</h2></a>
55+
<div class="date">{{ date }}</div>
56+
{% if commit.changes != empty %}
57+
<div class="files">
58+
{% for change in commit.changes %}
59+
{% if change[2] != '_data/git-log.json' %}
60+
<div class="file">
61+
<a target="_blank" class="changes" href="https://github.com/stevekrouse/futureofcoding.org/blob/{{commit.commit}}/{{change[2]}}">
62+
<span class="additions">{{change[0]}} additions</span> &
63+
<span class="deletions">{{change[1]}} deletions</span>
64+
</a>
65+
<a target="_blank" href="/{{change[2] | remove: ".md"}}">
66+
{{change[2]}}
67+
</a>
68+
</div>
69+
{% endif %}
70+
{% endfor %}
71+
</div>
72+
{% endif %}
73+
{{ message | markdownify }}
74+
{{ site.data.commitToJournalMarkdown[commit.commit] | markdownify }}
75+
</div>
76+
{% endunless %}
7577
{% endunless %}
7678
{% endif %}
7779
{% endfor %}

log.rss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ title: Future of Coding Log
99
<link>http://futureofcoding.org/log</link>
1010
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
1111
<ttl>600</ttl>
12-
{% 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 | remove: '## ' %} {% assign date = commit.committer.date | date_to_rfc822 %} {% assign message = commit.message | remove_first: first_line | strip_newlines | remove_first: '* TOC{: toc }' | remove: '#' %}
12+
{% for commit in site.data.git-log %} {% if commit.message != 'updated git log' %} {% unless commit.message contains 'Merge branch' %} {% unless commit.message contains 'Please enter the commit message for your changes.' %} {% assign first_line = commit.message | newline_to_br | split: '<br />' | first | remove: '## ' %} {% assign date = commit.committer.date | date_to_rfc822 %} {% assign message = commit.message | remove_first: first_line | strip_newlines | remove_first: '* TOC{: toc }' | remove: '#' %}
1313
<item>
14-
<title>{{ first_line | | escape}}</title>
14+
<title>{{ first_line | escape}}</title>
1515
<description>
1616
{{ message | slice: 0, 200 | remove: '<' | escape }}...
1717
</description>
1818
<link>http://futureofcoding.org/log#{{ first_line | slugify}}</link>
1919
<guid isPermaLink="false">{{ first_line | slugify}}?date={{ date | uri_escape }}</guid>
2020
<pubDate>{{ date }}</pubDate>
2121
</item>
22-
{% endunless %} {% endif %}{% endfor %}
22+
{% endunless %} {% endunless %} {% endif %}{% endfor %}
2323
</channel>
2424
</rss>
2525

0 commit comments

Comments
 (0)