Browse Source

Revert "Experimentally enable shortcodes"

This reverts commit 5cc92d3a9d.
search
Danila Fedorin 2 years ago
parent
commit
2bc2c282e1
  1. 2
      themes/vanilla/layouts/shortcodes/codelines.html

2
themes/vanilla/layouts/shortcodes/codelines.html

@ -14,5 +14,5 @@
<div class="highlight-group">
<div class="highlight-label">From <a href="https://dev.danilafe.com/Web-Projects/blog-static/src/branch/master/code/{{ .Get 1 }}">{{ path.Base (.Get 1) }}</a>,
{{ if eq (.Get 2) (.Get 3) }}line {{ .Get 2 }}{{ else }} lines {{ .Get 2 }} through {{ .Get 3 }}{{ end }}</div>
{{ highlight (htmlEscape (delimit $v "\n")) (.Get 0) (printf "linenos=table,linenostart=%d%s" (.Get 2) (.Scratch.Get "opts")) }}
{{ highlight (delimit $v "\n") (.Get 0) (printf "linenos=table,linenostart=%d%s" (.Get 2) (.Scratch.Get "opts")) }}
</div>

Loading…
Cancel
Save