From 2f876ba73cd40fed865ab6c725939fe86d1c9cf4 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 20 Nov 2023 13:37:47 -0500 Subject: themes/default/layouts/_default/_markup/render-codeblock: Editable content default true Better compromise --- themes/default/layouts/_default/_markup/render-codeblock.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'themes/default/layouts') diff --git a/themes/default/layouts/_default/_markup/render-codeblock.html b/themes/default/layouts/_default/_markup/render-codeblock.html index 435a12b..91ee9f6 100644 --- a/themes/default/layouts/_default/_markup/render-codeblock.html +++ b/themes/default/layouts/_default/_markup/render-codeblock.html @@ -5,17 +5,13 @@ {{- $id := print "code-block:" $hash | safeURL -}} {{- $edit := "false" -}} -{{- if not (in $options "linenos=1") -}} - {{- $edit = "true" -}} -{{- end -}} -
{{ $type }}
- + {{- highlight .Inner $type (print $options ",lineAnchors=" "code-line:" $hash) -}}
-- cgit v1.2.3