summaryrefslogtreecommitdiff
path: root/src/_layouts/code.html
diff options
context:
space:
mode:
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 }}