diff --git a/_layouts/default.html b/_layouts/default.html index cc35ba0e6f1d..669729f9a6a7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,6 +1,3 @@ ---- -layout: parse ---- diff --git a/_layouts/parse.html b/_layouts/parse.html deleted file mode 100644 index 4da5f35df186..000000000000 --- a/_layouts/parse.html +++ /dev/null @@ -1,30 +0,0 @@ -{%- if site.remove_HTML_comments -%} - {%- assign _comments = "" | split: " " -%} - {%- capture _comment_befores -%}{{ content }}{%- endcapture -%} - {%- assign _comment_befores = _comment_befores | split: _comments.first -%} - {%- for _comment_before in _comment_befores -%} - {%- if forloop.first -%} - {%- continue -%} - {%- endif -%} - {%- capture _comment_outside -%} - {%- if _carry -%} - {{ _comments.first }} - {%- endif -%} - {{ _comment_before }} - {%- endcapture -%} - {%- capture _comment -%} - {%- unless _carry -%} - {{ _comments.first }} - {%- endunless -%} - {{ _comment_outside | split: _comments.last | first }} - {%- if _comment_outside contains _comments.last -%} - {{ _comments.last }} - {%- assign _carry = false -%} - {%- else -%} - {%- assign _carry = true -%} - {%- endif -%} - {%- endcapture -%} - {%- assign content = content | remove_first: _comment -%} - {%- endfor -%} -{%- endif -%} -{{ content | beautify | minify }}