Insert Plotly graphs #38
-
Hello, I would like to insert plots from Plotly, I have been trying the solutions listed here: and following the example from here: But it doesn't work with the Relearn theme, after adding to the HEAD section in layouts/partials/header.html:
and adding layouts/shortcodes/load-plotly.html:
and layout/shortcodes/plotly:
and setting
I get this error:
I am using hugo 0.85 in macOS Catalina Thanks! Edgardo |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is a Hugo / Go issue but most certainly it must be:
When using a shortcode you only must use a https://discourse.gohugo.io/t/conditional-inner-logic-for-shortcodes/131/4 |
Beta Was this translation helpful? Give feedback.
This is a Hugo / Go issue but most certainly it must be:
{{% load-plotly %}} {{% plotly json="example.json" height="450px" %}}
When using a shortcode you only must use a
/
if the shortcode itself uses.inner
.https://discourse.gohugo.io/t/conditional-inner-logic-for-shortcodes/131/4