Skip to content

Commit

Permalink
removed error commit message from log and rss
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Krouse committed Aug 14, 2018
1 parent 1134fb5 commit ce0e949
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
58 changes: 30 additions & 28 deletions log.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,36 @@ The data for this page is pulled from the commit message history for this reposi
{% 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: "%m/%d/%y %a %l:%M %p" %}
{% assign message = commit.message | remove_first: first_line %}
<div class="commit">
<a class="hash" href="https://github.com/stevekrouse/futureofcoding.org/commit/{{ commit.commit }}"><h2 class="header">
{{ first_line | remove: "#" | replace: "<li>", "li" }}
</h2></a>
<div class="date">{{ date }}</div>
{% if commit.changes != empty %}
<div class="files">
{% for change in commit.changes %}
{% if change[2] != '_data/git-log.json' %}
<div class="file">
<a target="_blank" class="changes" href="https://github.com/stevekrouse/futureofcoding.org/blob/{{commit.commit}}/{{change[2]}}">
<span class="additions">{{change[0]}} additions</span> &
<span class="deletions">{{change[1]}} deletions</span>
</a>
<a target="_blank" href="/{{change[2] | remove: ".md"}}">
{{change[2]}}
</a>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{{ message | markdownify }}
{{ site.data.commitToJournalMarkdown[commit.commit] | markdownify }}
</div>
{% unless commit.message contains 'Please enter the commit message for your changes.' %}
{% assign first_line = commit.message | newline_to_br | split: '<br />' | first %}
{% assign date = commit.committer.date | date: "%m/%d/%y %a %l:%M %p" %}
{% assign message = commit.message | remove_first: first_line %}
<div class="commit">
<a class="hash" href="https://github.com/stevekrouse/futureofcoding.org/commit/{{ commit.commit }}"><h2 class="header">
{{ first_line | remove: "#" | replace: "<li>", "li" }}
</h2></a>
<div class="date">{{ date }}</div>
{% if commit.changes != empty %}
<div class="files">
{% for change in commit.changes %}
{% if change[2] != '_data/git-log.json' %}
<div class="file">
<a target="_blank" class="changes" href="https://github.com/stevekrouse/futureofcoding.org/blob/{{commit.commit}}/{{change[2]}}">
<span class="additions">{{change[0]}} additions</span> &
<span class="deletions">{{change[1]}} deletions</span>
</a>
<a target="_blank" href="/{{change[2] | remove: ".md"}}">
{{change[2]}}
</a>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{{ message | markdownify }}
{{ site.data.commitToJournalMarkdown[commit.commit] | markdownify }}
</div>
{% endunless %}
{% endunless %}
{% endif %}
{% endfor %}
Expand Down
6 changes: 3 additions & 3 deletions log.rss
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ title: Future of Coding Log
<link>http://futureofcoding.org/log</link>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<ttl>600</ttl>
{% 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: '#' %}
{% 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: '#' %}
<item>
<title>{{ first_line | | escape}}</title>
<title>{{ first_line | escape}}</title>
<description>
{{ message | slice: 0, 200 | remove: '<' | escape }}...
</description>
<link>http://futureofcoding.org/log#{{ first_line | slugify}}</link>
<guid isPermaLink="false">{{ first_line | slugify}}?date={{ date | uri_escape }}</guid>
<pubDate>{{ date }}</pubDate>
</item>
{% endunless %} {% endif %}{% endfor %}
{% endunless %} {% endunless %} {% endif %}{% endfor %}
</channel>
</rss>

0 comments on commit ce0e949

Please sign in to comment.