Commit f5c85bd9 authored by Kirk Lange's avatar Kirk Lange Committed by Kirk Lange

More robust feedback panel

parent 6233e8e1
......@@ -102,27 +102,40 @@ layout: default
</div>
{% if site.twitter_username and site.disqus_account %}
<div class="content-panel feedback">
I <i class="fa fa-heart"></i> feedback.<br />
Let me know what you think of this article on twitter <a href="http://www.twitter.com/{{ site.twitter_username }}">@{{ site.twitter_username }}</a> or leave a comment below!
</div>
{% elsif site.twitter_username %}
<div class="content-panel feedback">
I <i class="fa fa-heart"></i> feedback.<br />
Let me know what you think of this article on twitter <a href="http://www.twitter.com/{{ site.twitter_username }}">@{{ site.twitter_username }}</a>!
</div>
{% elsif site.disqus_account %}
<div class="content-panel feedback">
I <i class="fa fa-heart"></i> feedback.<br />
Let me know what you think of this article in the comment section below!
</div>
{% if page.twitterurl or site.disqus_account or page.redditurl %}
<div class="content-panel feedback">
What do you all think? I'd <i class="fa fa-heart"></i> love to hear from you<br/>
{% if site.twitter_username and page.twitterurl %}
{% if site.disqus_account and page.redditurl %}
over on <a href="https://www.reddit.com/r/duplicates/{{ page.redditurl }}">reddit</a>,
<a href="http://www.twitter.com/{{ site.twitter_username }}/status/{{ page.twitterurl }}">twitter</a>,
or in the comments section below!
{% elsif site.disqus_account %}
over on <a href="http://www.twitter.com/{{ site.twitter_username }}/status/{{ page.twitterurl }}">twitter</a>
or in the comments section below!
{% elsif page.redditurl %}
over on <a href="https://www.reddit.com/r/duplicates/{{ page.redditurl }}">reddit</a> or
<a href="http://www.twitter.com/{{ site.twitter_username }}/status/{{ page.twitterurl }}">twitter</a>!
{% else %}
over on <a href="http://www.twitter.com/{{ site.twitter_username }}/status/{{ page.twitterurl }}">twitter</a>!
{% endif %}
{% else %}
{% if site.disqus_account and page.redditurl %}
over on <a href="https://www.reddit.com/r/duplicates/{{ page.redditurl }}">reddit</a>
or in the comments section below!
{% elsif page.redditurl %}
over on <a href="https://www.reddit.com/r/duplicates/{{ page.redditurl }}">reddit</a>!
{% elsif site.disqus_account %}
in the comments section below!
{% endif %}
{% endif %}
</div>
{% endif %}
{% if site.disqus_account %}
<div class="content-panel comments">
<div id="disqus_thread">
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<noscript>Enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment