Repository navigation
Expand file tree
/
Copy pathauto_examples.html
More file actions
executable file
·40 lines (38 loc) · 1.81 KB
/
Copy pathauto_examples.html
File metadata and controls
executable file
·40 lines (38 loc) · 1.81 KB
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
{% for example in examples %}
<div class="section">
<div class="row auto-eg-padding">
<div class=" row twelve columns">
<h4 id="{{ example.name | replace:' ','-' | remove:',' | downcase | strip_html }}"><a class="no_underline plot-blue" href="#{{ example.name | replace:' ','-' | remove:',' | downcase | strip_html }}">{{ example.name }}</a></h4>
</div>
<div class="row">
<div class="{% if example.arrangement contains 'horizontal' %}twelve{% else %}six{% endif %} columns">
{% if example.markdown_content %}
{{ example.markdown_content | markdownify }}
{% endif %}
{% if example.content != "" %}
<div class="z-depth-1">
<pre><code class="{{page.language}}">{{ example.content }}</code></pre>
</div>
{% endif %}
{% if example.description %}
<blockquote>
{{ example.description }}
</blockquote>
{% endif %}
</div>
{% if example.plot_url %}
<div class="{% if example.arrangement contains 'horizontal' %}twelve{% else %}six{% endif %} columns">
<div class="border" style="text-align:center;">
{% if example.plot_url contains '.gif' or example.plot_url contains '.png' %}
<img src="{{ example.plot_url }}" />
{% else %}
<iframe id="auto-examples" src="{{ example.plot_url }}{% if example.plot_url contains 'plot.ly' %}.embed{% endif %}"
style="width: {% if example.width %}{{example.width}}px;{% else %}100%;{% endif %} height: {% if example.height %}{{example.height}}px;{% else %}550px;{% endif %} border: none;"></iframe>
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}