-
Notifications
You must be signed in to change notification settings - Fork 13.3k
/
Copy pathsource.html
26 lines (26 loc) · 1.01 KB
/
source.html
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
<div class="example-wrap"> {# #}
{# https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag#data-nosnippet-attr
Do not show "1 2 3 4 5 ..." in web search results. #}
<div data-nosnippet><pre class="src-line-numbers">
{% for line in lines.clone() %}
{% if embedded %}
<span>{{line|safe}}</span>
{%~ else %}
<a href="#{{line|safe}}" id="{{line|safe}}">{{line|safe}}</a>
{%~ endif %}
{% endfor %}
</pre></div> {# #}
<pre class="rust"> {# #}
<button class="copy-code" title="Copy to clipboard"> {# #}
<img src="{{static_root_path|safe}}{{files.clipboard_svg}}" {#+ #}
width="15" height="15" {#+ #}
alt="Copy to clipboard"> {# #}
</button> {# #}
<code>
{% if needs_expansion %}
<button class="expand">↕</button>
{% endif %}
{{code_html|safe}}
</code> {# #}
</pre> {# #}
</div>