Update frontpage.html

This commit is contained in:
Dan Combest 2016-10-26 14:18:58 -05:00 committed by GitHub
parent 1fb178c60c
commit f23b215666

View file

@ -17,16 +17,12 @@ format: blog-index
{% if page.callforaction.url contains 'http' %}
{% assign url = '' %}
{% else %}
{% if page.callforaction.url contains 'https' %}
{% assign url = '' %}
{% else %}
{% assign url = site.url %}
{% endif %}
{% endif %}
{% if page.callforaction %}
<div class="row t60 b60">
<div class="small-12 text-center columns">
<a class="button large radius {{ page.callforaction.style }}" href="{{ url }}{{ site.baseurl }}{{ page.callforaction.url }}"{% if page.callforaction.url contains 'http' %} target="_blank" {% endif %}>{{ page.callforaction.text }}</a>
<a class="button large radius {{ page.callforaction.style }}" href="{{ page.callforaction.url }}"{% if page.callforaction.url contains 'http' %} target="_blank" {% endif %}>{{ page.callforaction.text }}</a>
</div><!-- /.small-12.columns -->
</div><!-- /.row -->
{% endif %}