Commit 10aedf16 authored by Christopher Guindon's avatar Christopher Guindon
Browse files

Merge branch 'epoirier/main/issue-4' into 'master'

#4 - Fix encoding for Social links in jumbotron

See merge request !7
parents 3e6c190b 31b69aff
......@@ -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