summaryrefslogtreecommitdiff
path: root/src/_layouts/code.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-01-21 17:22:53 -0700
committerBrian Picciano <mediocregopher@gmail.com>2021-01-21 17:22:53 -0700
commitbcf9b230be6d74c71567fd0771b31d47d8dd39c7 (patch)
tree2d0fc16142d55bbd5876ac6b8174c2857883b40e /src/_layouts/code.html
parentd57fd70640948cf20eeb41b56e8d4e23e616cec0 (diff)
build the blog with nix
Diffstat (limited to 'src/_layouts/code.html')
-rw-r--r--src/_layouts/code.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/_layouts/code.html b/src/_layouts/code.html
new file mode 100644
index 0000000..18cfb3b
--- /dev/null
+++ b/src/_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 }}