Closed RMHogervorst closed 4 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.
This might need a custom hugo shortcode.
Or manually create it, or build from R? Like a table with start, end speaker talk, tweetbutton
Something like in https://publish.twitter.com/?buttonType=TweetButton&widget=Button
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>
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.
I'll try to whip something up this week.
Well that all sounds great, let me know how you get on :)
possibly related to satRdays/satRday_site_template#3 .
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?
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
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.
Guess this one is done!
Shown here: https://twitter.com/robinson_es/status/1055816363506393095
tweet buttons on the schedule that pre-fill hashtags, speaker handle, and talk title!