satRdays / satRday_site_template

Templates and partials for generating a site for a specific satRday conference
https://satrdays-event-template.netlify.com/
MIT License
1 stars 9 forks source link

Create tweetthis shortcode #10

Closed RMHogervorst closed 5 years ago

RMHogervorst commented 5 years ago

This is a very simple building block that allows us to create a tweet this anchor (link) with a filled in tweet.

You use it like this: {{< tweetthis "this is a test tweet with hashtags" "satRdays" >}} The first argument, tweetthis calls the correct shortcode, the second argument is the main text and the third is the hashtags. The end results is a prefilled tweet that people can modify in their browser.

DaveParr commented 5 years ago

Thanks for the PR @RMHogervorst .

On the face of it it looks sensible and correct, but I've had a thought about where this should be, and how it should be folded into this project.

We have a submodule for the theme here. Could you please fork that instead, and include it in the layouts folder of that module. Apologies, hugo has some complexities around themes, templates and sites.

Could you also then modify the partial file schedule.html to integrate into what you've written?

Thanks in advance.