-
Notifications
You must be signed in to change notification settings - Fork 331
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
[FR] Twitter shortcode is changing syntax: when would it be appropriate to update the docs? #701
Comments
Here's some R code I wrote to help migrate my blog posts. https://gist.github.com/lcolladotor/fb6d0cfd08b0baa26a9d114726d9bb62 |
…otor/fb6d0cfd08b0baa26a9d114726d9bb62. Related to rstudio/blogdown#701 and gohugoio/hugo@0cc39af" This reverts commit 834e879.
Yes, I'll update the docs as well as the |
Ok, sounds good! Thanks! |
Awesome, thanks Yihui for 3c1ea2c. I looked at it and it's great. Thanks again! |
Hello, if you'd like to update your tweet shortcodes with a python script (I used it for Hugo academic) I have a gist for you: https://gist.github.com/SolomonMg/2ad779d06ff0c0609d323014b2ec3b32 |
|
Hi,
Given the changes in Twitter's API, hugo had to change their
shortcode
for it. See https://discourse.gohugo.io/t/the-tweet-shortcode-will-soon-require-two-named-parameters-user-and-id/35871/2 which links to gohugoio/hugo@0cc39af.With that in mind,
blogdown/docs/02-hugo.Rmd
Line 202 in 34fd546
{{< tweet user="jtleek" id="852205086956818432" }}
andblogdown/docs/02-hugo.Rmd
Line 211 in 34fd546
blogdown::shortcode('tweet', user='jtleek', id='852205086956818432')
.Here's an example:
Created on 2022-04-30 by the reprex package (v2.0.1)
However, I'm not sure if this will affect users who are using older versions of Hugo. So I'm not sure if changing the documentation makes sense.
In any case,
hugo
will still work with the old shortcodes for a while.In my personal case, it's a pain since I used this shortcode a lot at https://github.com/lcolladotor/lcolladotorsource:
Best,
Leo
The text was updated successfully, but these errors were encountered: