diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2020-11-26 21:25:19 -0700 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2020-11-26 21:25:19 -0700 |
commit | e346068f586b6011f3e665a552945e30dce12c25 (patch) | |
tree | 9d757cc4306e554816cdc237674d5b1a5f74e955 /_layouts | |
parent | 0450e50258fa0dacfd1c651942dfd97fc3b768e6 (diff) |
working out how to use longer code examples
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/code.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/_layouts/code.html b/_layouts/code.html new file mode 100644 index 0000000..18cfb3b --- /dev/null +++ b/_layouts/code.html @@ -0,0 +1,10 @@ +--- +layout: default +--- + +{% capture body %}```{{ page.lang | default: "go" }} +{% include_relative {{ page.include }} %}```{% endcapture %} + +<br/><a href="{{ page.include }}">Raw source file</a> + +{{ body | markdownify }} |