We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0e74d commit 0bf262bCopy full SHA for 0bf262b
slides-core/src/main/resources/slides-core/slides/template.bespoke/listing.html.slim
@@ -0,0 +1,16 @@
1
+/ forked to handle classes for sources
2
+- _has_title = title?
3
+- content_for :pre
4
+ - if style == 'source' && (_lang = local_attr :language)
5
+ / NOTE class attribute required for highlight.js and prettify
6
+ / QUESTION should we add a "highlight" class to pre?
7
+ pre.source id=(id unless _has_title) class=role : code data-lang=_lang class="language-#{_lang} prettyprint" =content
8
+ - else
9
+ / QUESTION should we add a class to pre?
10
+ pre id=(id unless _has_title) class=role : code =content
11
+- if _has_title
12
+ figure.listing id=id
13
+ figcaption=title
14
+ - yield_content :pre
15
+- else
16
0 commit comments