- character entity fix for tweets
- ~600 errors from w3 validator needs fix
- character entity issue for policies with double quotations
This commit is contained in:
Viren Mohindra 2016-11-22 01:44:32 -05:00
commit ced99efd4f
3 changed files with 13 additions and 1 deletions

View file

@ -23,7 +23,7 @@ Site is now running at [localhost:4000](http://localhost:4000)
8. ~~Clean up duplicates, if any.~~
9. Implement functionality to let me click on the "broken", "in progress", "achieved" categories so I can see which things fall into those categories.
10. Rich data so Google can parse it. Maybe something on http://schema.org/?
11. Add tweet button #47
11. ~~Add tweet button #47~~
# Report Issues
1. Pull Request would be the best option.

View file

@ -1,3 +1,4 @@
#status has three options: notStarted, broken, and achieved
tabs:
-
id: 100days

View file

@ -99,6 +99,7 @@ comments: false
<!-- Tab panes -->
<div class="tab-content">
{% for tab in site.data.data.tabs %}
<!-- {% increment issue_number %} -->
<div role="tabpanel" class="tab-pane {% if forloop.index == 1 %}active{% endif %} fade in" id="{{tab.id}}">
<div class="row">
<div class="input-group">
@ -129,6 +130,16 @@ comments: false
{% endfor %}
</td>
<td>
{% capture status %}{% if point.status == "notStarted" %} hasn't started {%elsif point.status == "broken" %} broke {% elsif point.status == "achieved" %} achieved {% else %}{% endif %}{% endcapture %}
{% capture message %}&commat;realDonaldTrump{{ status }}promise no. {% increment issue_number %}: {{ point.text | truncate: 52 }} on{% endcapture %}{% capture tweettext%}{{ message }}&amp;hashtags=TrumpTracker&amp;{% endcapture %}
{% if point.status %}
<div class="text-center">
<a href="https://twitter.com/share?url=https://trumptracker.github.io/&amp;text={{ tweettext }}" target="_blank">
<i class="fa fa fa-twitter"></i>
</a>
</div>
{% endif %}
{% if point.comments %}
<a href="{{point.comments}}" target="_blank" rel="nofollow" class="btn btn-default btn-sm"><i class="fa fa-comments text-muted"></i>&nbsp;Comment</a>
{% endif %}