routes: add syntax highlight
1 file changed, 7 insertions(+), 1 deletion(-)
changed files
M templates/file.html → templates/file.html
@@ -6,8 +6,13 @@ <body> {{ template "nav" . }} <main> <p>{{ .path }} (<a style="color: gray" href="?raw=true">view raw</a>)</p> + {{if .chroma }} + <div class="chroma-file-wrapper"> + {{ .content }} + </div> + {{else}} <div class="file-wrapper"> - <table > + <table> <tbody><tr> <td class="line-numbers"> <pre>@@ -24,6 +29,7 @@ </td> </tbody></tr> </table> </div> + {{end}} </main> </body> </html>