rolandjesse.de/_includes/contact.html
2016-03-05 16:49:09 +01:00

35 lines
990 B
HTML

<!-- Contact Start -->
<section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }}
{% if site.email %}
{% if site.email contains '@' %}
{% assign newemail = site.email | split: '@' %}
<p>
<script>
function join_at_email(user, domain){
return (user && domain)?(user + "@" + domain):"";
}
document.write('<a href="mailto:'
+ join_at_email( "{{ newemail[0] }}", "{{ newemail[1] }}" )
+ '">'
+ join_at_email( "{{ newemail[0] }}", "{{ newemail[1] }}" )
+ '</a>'
);
</script>
</p>
{% else %}
<p><a href="mailto:{{ site.email }}">{{ site.email }}</a></p>
{% endif %}
{% endif %}
</div>
</div>
</section>
<!-- Contact End -->