Skip to content

Commit 45a7c0f

Browse files
committed
fix hilight tags
Signed-off-by: Alex Ivanov <ai@contributor.pw>
1 parent 3c27f7a commit 45a7c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/codeFromFile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ $file := .Get 0 }}
22
{{ $dir := default .Page.File.Dir (.Get 1) }}
33
{{ $path := path.Join $dir $file }}
4-
{{ $ext := default (path.Ext $file) (.Get 2) }}
4+
{{ $ext := default (substr (path.Ext $file) 1) (.Get 2) }}
55
{{ $opt := default "" (.Get 3) }}
66

77
<strong>{{ $file }}</strong>

0 commit comments

Comments
 (0)