Sha256: a03727a79c2403d9256f719f023158022086ecc7f7996ea4319240cfc22203b9
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
{%- if site.debug.compress == false -%} {{ content }} {%- else -%} {%- assign items = content | split: "<pre" -%} {%- for item in items -%} {%- assign block = item | split: "</pre>" -%} {%- assign block_after = block.last | split: " " | join: " " -%} {%- if block.size == 1 -%} {{ block_after }} {%- else -%} {%- assign blocks = block.first | replace_first: ">", "```<temp>```" | split: "```<temp>```" -%} {%- assign admonitions = "note, tip, warning, danger" | split: ", " -%} {%- assign type = blocks.first | replace: '"', '' | replace: " class=language-", "" -%} {%- comment %} admonitions card {% endcomment -%} {%- if admonitions contains type -%} <div class="admonition {{ type }}"> {%- comment %} title will be translated via ui {% endcomment -%} <p class="admonition-title" ui="{{ type }}"><span class="progress"></span></p>{{ blocks.last | markdownify | strip_newlines -}} </div>{{ block_after -}} {%- else -%} <pre{{ block.first }}</pre>{{ block_after -}} {%- endif -%} {%- endif -%} {%- endfor -%} {%- endif -%}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-rtd-theme-1.1.2 | _layouts/plugins/compress.liquid |