make tweet action open in new tab and add image for twitter card

pull/7/head
Michael Q Larson 2014-12-26 12:33:27 -08:00
parent 99ebcdd2be
commit 16ec131799
2 changed files with 4 additions and 3 deletions

View File

@ -36,7 +36,7 @@ block content
- if (cc) - if (cc)
a.animated.fadeIn.delay-2.btn.btn-lg.btn-primary.btn-block.next-button(name='_csrf', value=_csrf, aria-hidden='true') Take me to my next challenge a.animated.fadeIn.delay-2.btn.btn-lg.btn-primary.btn-block.next-button(name='_csrf', value=_csrf, aria-hidden='true') Take me to my next challenge
- if (points && points > 2) - if (points && points > 2)
a.animated.fadeIn.delay-2.btn-twitter.btn.btn-lg.btn-info.btn-block(href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20Free%20Code%20Camp%20Challenge%20%23#{number}:%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/challenges/#{number}&hashtags=learntocode, javascript") a.animated.fadeIn.delay-2.btn-twitter.btn.btn-lg.btn-info.btn-block(href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20Free%20Code%20Camp%20Challenge%20%23#{number}:%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/challenges/#{number}&hashtags=learntocode, javascript" target="_blank")
i.fa.fa-twitter   i.fa.fa-twitter  
= phrase = phrase
- else - else

View File

@ -21,8 +21,9 @@ link(href="https://plus.google.com/114148836969274586544", rel="author")
meta(content="freecodecamp", name="twitter:creator") meta(content="freecodecamp", name="twitter:creator")
meta(content="http://www.freecodecamp.com", name="twitter:url") meta(content="http://www.freecodecamp.com", name="twitter:url")
meta(content="freecodecamp", name="twitter:site") meta(content="freecodecamp", name="twitter:site")
//meta(content="summary_large_image", name="twitter:card") meta(content="summary_large_image", name="twitter:card")
meta(content="Free Code Camp is a community of busy people learning to code by collaborating on projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our coding bootcamp.", name="twitter:title") meta(name="twitter:image:src" content="https://s3.amazonaws.com/freecodecamp/challenges.png")
meta(content="Free Code Camp: a community of busy people learning to code", name="twitter:title")
meta(content="https://pbs.twimg.com/profile_images/522961310212833280/XE6vGAaO.jpeg", name="twitter:image:src") meta(content="https://pbs.twimg.com/profile_images/522961310212833280/XE6vGAaO.jpeg", name="twitter:image:src")
meta(content="Free Code Camp is a community of busy people learning to code by collaborating on projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our coding bootcamp.", name="twitter:description") meta(content="Free Code Camp is a community of busy people learning to code by collaborating on projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our coding bootcamp.", name="twitter:description")
meta(content="a40ee5d5dba3bb091ad783ebd2b1383f", name="p:domain_verify") meta(content="a40ee5d5dba3bb091ad783ebd2b1383f", name="p:domain_verify")