Sha256: 6ac7a11cf21e58e230f6a4054f4dad4d3adad61657fb04472baab893259aad0b

Contents?: true

Size: 725 Bytes

Versions: 1

Compression:

Stored size: 725 Bytes

Contents

---
layout: plugins/shortcodes
---

{%- if site.debug.compress == false -%}
    {{ content }}
{%- else -%}
    {%- if content contains "<pre" -%}
        {%- assign content_blocks = content | split: "<pre" -%}
        {%- for content_block in content_blocks -%}
            {%- if content_block contains "</pre>" -%}
                {%- assign pre_blocks = content_block | split: "</pre>" -%}
                <pre{{ pre_blocks.first }}</pre> {{ pre_blocks.last | split: " " | join: " " -}}
            {%- else -%}
                {{- content_block | split: " " | join: " " -}}
            {%- endif -%}
        {%- endfor -%}
    {%- else -%}
        {{- content | split: " " | join: " " -}}
    {%- endif -%}
{%- endif -%}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-rtd-theme-2.0.7 _layouts/plugins/compress.liquid