First of all - a big thank you for putting toot.html together! A Hugo shortcode that parses a Toot and integrates it into a static webpage like this is exactly what I'm looking for.
I'm unable to get it to work, however, and was wondering if you could help me?
I run a separate "flavour" of Hugo known as "blogdown" which integrates Hugo with R to allow for R Markdown files to be parsed into websites.
I try to call your shortcode like this:
r htmltools::HTML("{{< toot id=\"110168841652121342\" >}}")
This is the accepted way for blogdown to pass shortcodes and it works fine with other shortcodes. When trying to use it with your shortcode, the %s isn't converted into anything.
Before I try to dig a bit deeper, would this numeric code be sufficient for my toot to be pulled? I haven't specified my domain name or link to any JS libraries anywhere. Would that be required or should that be parsed from just this number?
(It could be an issue with blogdown specifically, for example)
First of all - a big thank you for putting toot.html together! A Hugo shortcode that parses a Toot and integrates it into a static webpage like this is exactly what I'm looking for.
I'm unable to get it to work, however, and was wondering if you could help me?
I run a separate "flavour" of Hugo known as "blogdown" which integrates Hugo with R to allow for R Markdown files to be parsed into websites.
I try to call your shortcode like this:
r htmltools::HTML("{{< toot id=\"110168841652121342\" >}}")
This is the accepted way for blogdown to pass shortcodes and it works fine with other shortcodes. When trying to use it with your shortcode, the
%s
isn't converted into anything.Before I try to dig a bit deeper, would this numeric code be sufficient for my toot to be pulled? I haven't specified my domain name or link to any JS libraries anywhere. Would that be required or should that be parsed from just this number?
(It could be an issue with blogdown specifically, for example)
Thanks for any help you may be able to give!