aboutsummaryrefslogtreecommitdiff
path: root/views/blob.eta
diff options
context:
space:
mode:
Diffstat (limited to 'views/blob.eta')
-rw-r--r--views/blob.eta11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/blob.eta b/views/blob.eta
index 566f5b0..9b478b5 100644
--- a/views/blob.eta
+++ b/views/blob.eta
@@ -1,3 +1,12 @@
<% layout("./layout") %>
-<pre class="blob"><code><%= it.rawContent %></code></pre>
+<div>
+ <% if (it.language) { %>
+ <div>language: <%= it.language %></div>
+ <% } %>
+ <% if (it.size !== undefined) { %>
+ <div>size: <%= it.size %> bytes</div>
+ <% } %>
+</div>
+
+<pre class="box"><code><%= it.rawContent %></code></pre>