From ced99efd4fb8ecfd089e39c48d1cc8eaafd8e202 Mon Sep 17 00:00:00 2001 From: Viren Mohindra Date: Tue, 22 Nov 2016 01:44:32 -0500 Subject: [PATCH] #33 complete - character entity fix for tweets - ~600 errors from w3 validator needs fix - character entity issue for policies with double quotations --- README.md | 2 +- _data/data.yaml | 1 + index.html | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b82f92..e8c022d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/_data/data.yaml b/_data/data.yaml index 0f36517..36f1aaa 100644 --- a/_data/data.yaml +++ b/_data/data.yaml @@ -1,3 +1,4 @@ +#status has three options: notStarted, broken, and achieved tabs: - id: 100days diff --git a/index.html b/index.html index 6582498..9074e09 100644 --- a/index.html +++ b/index.html @@ -99,6 +99,7 @@ comments: false
{% for tab in site.data.data.tabs %} +
@@ -129,6 +130,16 @@ comments: false {% endfor %} + {% capture status %}{% if point.status == "notStarted" %} hasn't started {%elsif point.status == "broken" %} broke {% elsif point.status == "achieved" %} achieved {% else %}{% endif %}{% endcapture %} + + {% capture message %}@realDonaldTrump{{ status }}promise no. {% increment issue_number %}: {{ point.text | truncate: 52 }} on{% endcapture %}{% capture tweettext%}{{ message }}&hashtags=TrumpTracker&{% endcapture %} + {% if point.status %} +
+ + + +
+ {% endif %} {% if point.comments %}  Comment {% endif %}