-
The Shadocs Hugo theme has bundled a snippets shortcut. It would be awesome if something similar could be implemented into the relearn theme. Use Case My idea was to add my Ansible roles as git sub modules (similar to the theme files itself) and then include the file directly with the snippet shortcode. And also benefit from the current code highlighting. Bonus: A snippet can be used in Tabs :) I've simply tried to copy the shortode from Shadocs theme and technically it would work but it has some trade-offs like the tabs that are not working, etc. But the Include itself would work. Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
At the moment I don't plan to introduce such a feature. But you may work around with the existing shortcodes Plain file include (will be interpreted as markdown) as used in the exampleSite:
File include as code:
Plain file include in a tab:
File include as code in a tab:
Let me know, if this solves your case. |
Beta Was this translation helpful? Give feedback.
At the moment I don't plan to introduce such a feature. But you may work around with the existing shortcodes
include
andtabs
or a combination of both like:Plain file include (will be interpreted as markdown) as used in the exampleSite:
File include as code:
Plain file include in a tab:
File include as code in a tab:
Let me know, if this solves your case.