hexo-include icon indicating copy to clipboard operation
hexo-include copied to clipboard

use code block and include at same time

Open sonnyhcl opened this issue 5 years ago • 0 comments

Actually, I met the same question as you asked in https://github.com/hexojs/hexo/issues/2201. I want to insert a code file as a collapsed spoiler and it seems difficult to deal with nesting macros. Is there any way to render something like below?

{% spoiler site_config.yml %}

{% codeblock test lang:yml %}
{% include _config.yml %}
{% endcodeblock %}

{% endspoiler %}

sonnyhcl avatar May 02 '19 05:05 sonnyhcl