Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of "Tweet This" to the timeline #8

Open
paul-hammant opened this issue Dec 13, 2020 · 0 comments
Open

Addition of "Tweet This" to the timeline #8

paul-hammant opened this issue Dec 13, 2020 · 0 comments

Comments

@paul-hammant
Copy link

I've put this in pages/ files inlined in the markdown section:

<a class="btn btn--gray-border" href="https://twitter.com/intent/tweet?url=https%3A%2F%2Ftimelinez.github.io%2Faerosolized-covid-19%2Ftest&via=AerosolizedC19&text=%23COVIDisAirborne%20%23masks4All%20%23bewareOfSharedAir%20%23ventilation. See: " target="_blank">Tweet This Page</a>

I'd prefer to have it in a template:

<a class="btn btn--gray-border" href="https://twitter.com/intent/tweet?url=https%3A%2F%2Ftimelinez.github.io%2Faerosolized-covid-19{{ page.url }}&via=AerosolizedC19&text=%23COVIDisAirborne%20%23masks4All%20%23bewareOfSharedAir%20%23ventilation. See: " target="_blank">Tweet This Page</a>

That is not perfect as it doesn't have the hash of the location in the URL, and Jekyll/Liquid doesn't know anything about that I don't think.

I'm not sure how it goes solved - maybe some Javascript to fix url the URL to include the location.hash after hashchange. I tried to get that working but couldn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant