Add a way to include code into a post
This commit is contained in:
parent
e6d73eeceb
commit
708f9bebfa
1
themes/vanilla/layouts/shortcodes/codeblock
Normal file
1
themes/vanilla/layouts/shortcodes/codeblock
Normal file
|
@ -0,0 +1 @@
|
|||
{{ highlight (readFile (printf "code/%s" (.Get 1))) (.Get 0) "" }}
|
1
themes/vanilla/layouts/shortcodes/rawblock
Normal file
1
themes/vanilla/layouts/shortcodes/rawblock
Normal file
|
@ -0,0 +1 @@
|
|||
<pre><code>{{ readFile (printf "code/%s" (.Get 0)) }}</code></pre>
|
Loading…
Reference in New Issue
Block a user