Closed dklinges9 closed 4 years ago
hey there, you had a simple mistake.
please replace your shortcode with this <p style="color:{{.Get
color}}">this is the framework text</p>
Did it solve your issue? I am going to close this issue, if you face any more issues, don't hesitate to reopen it.
Apologies for the late reply (my website dev work is sporadic)– this didn't seem to change anything– I pasted your suggestion into the short code, and did some further messing around. What exactly was different between my short code and your edit?
my version:
<p style =“color:{{.Get `color`}}”>this is the framework text</p>
your version:
<p style="color:{{.Get color}}">this is the framework text</p>
you took away the space after "style" and didn't have "color" in single quotes (but I think that part was the markdown rendering of the comment)?
no, just look at the quotation, you entered the wrong quotation. it should "" , not “”
Hi team,
I'm only modestly experienced with YAML and hugo sites, so apologies if this issue is unclear/not endemic to the theme/I'm missing something fundamental about using shortcodes.
I tried adding a shortcode (layouts/shortcodes/myshortcode.html) to one of the markdown files (content/english/faq/_index.md), and it appears that the content of the shortcode itself is passed into the content file, rather than rendering the shortcode.
I'm pulling from a hugo tutorial for a simple one-tag shortcode.
shortcode.html content:
faq/_index.md content:
which renders as such:
Ultimately I hope to be embedding youtube videos or other pages into the content files, which I've been able to do using other Hugo themes but not here....
Thanks!