Indent and simplify HTML snippets

This commit is contained in:
Andrea Cardaci 2018-05-29 21:52:10 +02:00
parent feae2cd8d7
commit e2433843b5
5 changed files with 37 additions and 41 deletions

View File

@ -25,9 +25,6 @@ layout: common
{% for example in examples %}
<div class="example">
{{ example.description | markdownify }}
{% capture code %}
{%- if function_name == 'suid-enabled' or function_name == 'suid-limited' %}
cp $(which {{ bin_name }}) .
@ -37,10 +34,9 @@ sudo chmod +s ./{{ bin_name }}
{{ example.code }}
{% endcapture %}
<pre><code>
{{- code | strip -}}
</code></pre>
<div class="example">
{{ example.description | markdownify }}
<pre><code>{{- code | strip -}}</code></pre>
</div>
{% endfor %}