summaryrefslogtreecommitdiff
path: root/static/src/_layouts/code.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-07-31 11:35:39 -0600
committerBrian Picciano <mediocregopher@gmail.com>2021-07-31 11:35:39 -0600
commitf1998c321a4eec6d75b58d84aa8610971bf21979 (patch)
treea90783eb296cc50e1c48433f241624f26b99be27 /static/src/_layouts/code.html
parent03a35dcc38b055f15df160bd300969e3b703d4b1 (diff)
move static files into static sub-dir, refactor nix a bit
Diffstat (limited to 'static/src/_layouts/code.html')
-rw-r--r--static/src/_layouts/code.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/static/src/_layouts/code.html b/static/src/_layouts/code.html
new file mode 100644
index 0000000..18cfb3b
--- /dev/null
+++ b/static/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 }}