From a7183c40cdbe660e8bbf26fe2c9a1880056a3eda Mon Sep 17 00:00:00 2001 From: Rohan Deb Sarkar Date: Mon, 16 May 2022 07:12:41 +0530 Subject: [PATCH] Minor fixes for previous PR #668 (#672) --- _layouts/default.html | 3 --- _layouts/parse.html | 30 ------------------------------ 2 files changed, 33 deletions(-) delete mode 100644 _layouts/parse.html 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 }}