satRdays / hugo-satrdays-theme

theme for satRdays conference websites
Apache License 2.0
8 stars 7 forks source link

maybe add a 'tweet this talk' button to schedule? #3

Closed RMHogervorst closed 4 years ago

RMHogervorst commented 6 years ago

Shown here: https://twitter.com/robinson_es/status/1055816363506393095

tweet buttons on the schedule that pre-fill hashtags, speaker handle, and talk title!

DaveParr commented 5 years ago

I like this idea. Any suggestions on how to achieve it? It might well be possible in hugo, I just haven't spotted how yet.

RMHogervorst commented 5 years ago

This might need a custom hugo shortcode.

RMHogervorst commented 5 years ago

Or manually create it, or build from R? Like a table with start, end speaker talk, tweetbutton

RMHogervorst commented 5 years ago

Something like in https://publish.twitter.com/?buttonType=TweetButton&widget=Button

RMHogervorst commented 5 years ago

I bet we could create something like this <a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-size="large" data-text="talk by " data-hashtags="satRdays" data-related="satrdays_org" data-lang="en" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

RMHogervorst commented 5 years ago

Maybe it's better if hugo builds the html table based on a yaml / toml file that contains the information like start ,end time, speaker, title of talk, speaker twitter handle, link to slides.

Hugo builds this table and the tweet buttons up with a general hashtag from the site config.

RMHogervorst commented 5 years ago

I'll try to whip something up this week.

DaveParr commented 5 years ago

Well that all sounds great, let me know how you get on :)

RMHogervorst commented 5 years ago

possibly related to satRdays/satRday_site_template#3 .

RMHogervorst commented 5 years ago

My approach is like this

First simple step is here https://github.com/satRdays/satRday_site_template/pull/10

Although, maybe you want to add this to the hugo satRdays template?

RMHogervorst commented 5 years ago

Also @DaveParr I don't know yet how to turn this link into a tweet button or something. My html skills are the worst. I tried

DaveParr commented 4 years ago

As per discussion on https://github.com/satRdays/hugo-satrdays-theme/pull/9 I've assigned this to @RMHogervorst for completion, but in order to help me out I'd really appreciate a PR on this when it's actually ready for a merge.

RMHogervorst commented 4 years ago

Guess this one is done!