-
Notifications
You must be signed in to change notification settings - Fork 1
/
jekyll.tpl
73 lines (56 loc) · 1.43 KB
/
jekyll.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{% extends 'display_priority.tpl' %}
{%- block header -%}
---
layout: post
title: "{{resources['metadata']['name']}}"
tags: [python]
---
{%- endblock header -%}
{% block output_prompt %}
{%- endblock output_prompt %}
{% block input %}
{{ '{% highlight python %}' }}
{{ cell.input }}
{{ '{% endhighlight %}' }}
{% endblock input %}
{% block pyerr %}
{{ super() }}
{% endblock pyerr %}
{% block traceback_line %}
{{ line | indent | strip_ansi }}
{% endblock traceback_line %}
{% block pyout %}
{% block data_priority scoped %}
{{ super() }}
{% endblock %}
{% endblock pyout %}
{% block stream %}
{{ output.text | indent }}
{% endblock stream %}
{% block data_svg %}
![svg]({{ output.svg_filename | path2support }})
{% endblock data_svg %}
{% block data_png %}
![png]({{ output.png_filename | path2support }})
{% endblock data_png %}
{% block data_jpg %}
![jpeg]({{ output.jpeg_filename | path2support }})
{% endblock data_jpg %}
{% block data_latex %}
{{ output.latex }}
{% endblock data_latex %}
{% block data_html scoped %}
{{ output.html }}
{% endblock data_html %}
{% block data_text scoped %}
{{ output.text | indent }}
{% endblock data_text %}
{% block markdowncell scoped %}
{{ cell.source | wrap_text(80) }}
{% endblock markdowncell %}
{% block headingcell scoped %}
{{ '#' * cell.level }} {{ cell.source | replace('\n', ' ') }}
{% endblock headingcell %}
{% block unknowncell scoped %}
unknown type {{ cell.type }}
{% endblock unknowncell %}