theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.13k stars 1.14k forks source link

Embedded Tweets do not render media #526

Open sgargbugreporter opened 2 years ago

sgargbugreporter commented 2 years ago

Media in embedded tweets does not render. Using the examples provided at https://gohugo.io/content-management/shortcodes/#example-tweet-input, I expect to see the media rendered as shown in https://gohugo.io/content-management/shortcodes/#example-tweet-display. See below: image However, this does not render as shown below: image The HTML source for the above is:

<blockquote class="[twitter-tweet]()"><p lang="[en]()" dir="[ltr]()">Owl bet you&#39;ll lose this staring contest 🦉 <a href="https://t.co/eJh4f2zncC">pic.twitter.com/eJh4f2zncC</a></p>&mdash; San Diego Zoo Wildlife Alliance (@sandiegozoo) <a href="https://twitter.com/sandiegozoo/status/1453110110599868418?ref_src=twsrc%5Etfw">October 26, 2021</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

which is the same as that given in the documentation at https://gohugo.io/content-management/shortcodes/#example-tweet-output

Am not sure what is happening here.

budparr commented 2 years ago

Hi @sgargbugreporter Those are Hugo functions, so not sure how our theme could possibly impact them. Can you give us a link to your repo and we'll have a look for you?