Skip to content
Permalink
Browse files

removed error commit message from log and rss

  • Loading branch information
Steve Krouse
Steve Krouse committed Aug 14, 2018
1 parent c91ccbc commit 96e128ab1aab928de1e68ee3f646702e10229822
Showing with 33 additions and 31 deletions.
  1. +30 −28 log.md
  2. +3 −3 log.rss
58 log.md
@@ -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 %}
@@ -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 96e128a

Please sign in to comment.
You can’t perform that action at this time.