-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify CSS but wrapping scraped example into a div and move the tit…
…le out of the code block
- Loading branch information
1 parent
01d8235
commit e3af6dc
Showing
8 changed files
with
93 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
<div class="example-wrap scraped-example{% if !info.needs_expansion +%} expanded{% endif %}" data-locs="{{info.locations}}"> | ||
<div class="scraped-example{% if !info.needs_expansion +%} expanded{% endif %}" data-locs="{{info.locations}}"> {# #} | ||
<div class="scraped-example-title"> | ||
{{info.name +}} (<a href="{{info.url}}">{{info.title}}</a>) {# #} | ||
</div> | ||
{# 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() %} | ||
{# ~#} | ||
<span>{{line|safe}}</span> | ||
{% endfor %} | ||
</pre></div> {# #} | ||
<pre class="rust"> {# #} | ||
<code> | ||
{{code_html|safe}} | ||
</code> {# #} | ||
</pre> {# #} | ||
{% if info.needs_prev_next_buttons || info.needs_expansion %} | ||
<div class="button-holder"> | ||
{% if info.needs_prev_next_buttons %} | ||
<button class="prev">≺</button> {# #} | ||
<button class="next">≻</button> | ||
{% endif %} | ||
{% if info.needs_expansion %} | ||
<button class="expand">↕</button> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
<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 class="src-line-numbers" data-nosnippet> {# #} | ||
<pre> | ||
{% for line in lines.clone() %} | ||
{# ~#} | ||
<span>{{line|safe}}</span> | ||
{% endfor %} | ||
</pre> {# #} | ||
</div> {# #} | ||
<pre class="rust"> {# #} | ||
<code> | ||
{{code_html|safe}} | ||
</code> {# #} | ||
</pre> {# #} | ||
{% if info.needs_prev_next_buttons || info.needs_expansion %} | ||
<div class="button-holder"> | ||
{% if info.needs_prev_next_buttons %} | ||
<button class="prev">≺</button> {# #} | ||
<button class="next">≻</button> | ||
{% endif %} | ||
{% if info.needs_expansion %} | ||
<button class="expand">↕</button> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> {# #} | ||
</div> {# #} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters