Commit 31b69aff authored by Eric Poirier's avatar Eric Poirier
Browse files

#4 - Fix encoding for Social links in jumbotron


Signed-off-by: Eric Poirier's avatarEric Poirier <eric.poirier@eclipse-foundation.org>
parent daa0a980
......@@ -25,23 +25,7 @@
<div class="featured-story-block featured-story-block-content featured-container"></div>
</div>
</div>
<ul class="list-inline jumbotron-custom-social-icons-right">
<li>Share this page:</li>
<li><a href="#" onclick="
window.open(
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href+'?utm_source={{.Permalink}}&amp;utm_campaign={{ .Page.Params.headline }}&amp;utm_medium=social-media-facebook-icon'),
'facebook-share-dialog',
'width=626,height=436');
return false;"><img class="jumbotron-custom-social-icon" src="images/social-icons/facebook.svg"></a></li>
<li><a href="#" onclick="
window.open(
'https://twitter.com/intent/tweet?text={{ .Page.Params.headline }}%20-%20&amp;url='+encodeURIComponent(location.href+'?utm_source={{.Permalink}}&amp;utm_campaign={{ .Page.Params.headline }}&amp;utm_medium=social-media-twitter-icon'),
'twitter-share-dialog',
'width=626,height=436');
return false;"><img class="jumbotron-custom-social-icon" src="images/social-icons/twitter.svg"></a></li>
<!--<li><a href="https://www.linkedin.com/company/eclipse-foundation"><img class="jumbotron-custom-social-icon" src="images/social-icons/linkedin.svg"></a></li>
<li><a href="https://www.youtube.com/user/EclipseFdn"><img class="jumbotron-custom-social-icon" src="images/social-icons/youtube.svg"></a></li>-->
</ul>
{{ partial "jumbotron_socials.html" . }}
</div>
{{ end }}
</header>
......
......@@ -50,23 +50,7 @@
</ul>
</div>
<div class="col-xs-12 padding-left-0 hidden-md hidden-lg">
<ul class="list-inline jumbotron-custom-social-icons-right">
<li>Share this page:</li>
<li><a href="#" onclick="
window.open(
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href+'?utm_source={{.Permalink}}&amp;utm_campaign={{ .Page.Params.headline }}&amp;utm_medium=social-media-facebook-icon'),
'facebook-share-dialog',
'width=626,height=436');
return false;"><img class="jumbotron-custom-social-icon" src="images/social-icons/facebook.svg"></a></li>
<li><a href="#" onclick="
window.open(
'https://twitter.com/intent/tweet?text={{ .Page.Params.headline }}%20-%20&amp;url='+encodeURIComponent(location.href+'?utm_source={{.Permalink}}&amp;utm_campaign={{ .Page.Params.headline }}&amp;utm_medium=social-media-twitter-icon'),
'twitter-share-dialog',
'width=626,height=436');
return false;"><img class="jumbotron-custom-social-icon" src="images/social-icons/twitter.svg"></a></li>
<!--<li><a href="https://www.linkedin.com/company/eclipse-foundation"><img class="jumbotron-custom-social-icon" src="images/social-icons/linkedin.svg"></a></li>
<li><a href="https://www.youtube.com/user/EclipseFdn"><img class="jumbotron-custom-social-icon" src="images/social-icons/youtube.svg"></a></li>-->
</ul>
{{ partial "jumbotron_socials.html" . }}
</div>
</div>
</div>
......
<ul class="list-inline jumbotron-custom-social-icons-right">
<li>Share this page:</li>
<li><a href="#" onclick="
window.open(
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href+'?utm_source={{.Permalink}}&amp;utm_campaign={{ .Page.Params.headline | urlize }}&amp;utm_medium=social-media-facebook-icon'),
'facebook-share-dialog',
'width=626,height=436');
return false;"><img class="jumbotron-custom-social-icon" src="images/social-icons/facebook.svg"></a></li>
<li><a href="#" onclick="
window.open(
'https://twitter.com/intent/tweet?text=Learn about the new Eclipse IDE Working Group%20-%20&amp;url='+encodeURIComponent(location.href+'?utm_source={{.Permalink}}&amp;utm_campaign={{ .Page.Params.headline | urlize }}&amp;utm_medium=social-media-twitter-icon'),
'twitter-share-dialog',
'width=626,height=436');
return false;"><img class="jumbotron-custom-social-icon" src="images/social-icons/twitter.svg"></a></li>
</ul>
\ No newline at end of file
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