diff options
| author | Joe Mou <dev@mou.fo> | 2026-01-28 15:10:00 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-01-28 15:32:53 -0500 |
| commit | 8770424ae7a0affbb4b05903d355fe856f853797 (patch) | |
| tree | 7515a66d6003d6eeed225677d606ca4e6847d791 /views/blob.eta | |
| parent | 9c0a011974f1392110164052c3481509641d2f58 (diff) | |
Image support
Diffstat (limited to 'views/blob.eta')
| -rw-r--r-- | views/blob.eta | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/views/blob.eta b/views/blob.eta index 4972209..ea07059 100644 --- a/views/blob.eta +++ b/views/blob.eta @@ -12,7 +12,9 @@ </div> </div> -<% if (it.htmlContent) { %> +<% if (it.image) { %> + <div class="box"><img src="/<%= it.repo.owner %>/<%= it.repo.name %>/raw/<%= it.branch %>/<%= it.path %>"></div> +<% } else if (it.htmlContent) { %> <div class="box"><%~ it.htmlContent %></div> <% } else if (it.htmlLines) { %> <pre class="box"><code><%~ it.htmlLines.join("\n") %></code></pre> |
