From 0007657634b51ea1fa8635dff468e2004298c5dd Mon Sep 17 00:00:00 2001 From: SJTU-ViSYS <88317801+SJTU-ViSYS@users.noreply.github.com> Date: Fri, 23 Feb 2024 10:39:19 +0800 Subject: [PATCH] Delete _layouts directory --- _layouts/default.liquid | 32 ------------------------------- _layouts/tasks/compress.liquid | 21 -------------------- _layouts/tasks/shortcodes.liquid | 33 -------------------------------- 3 files changed, 86 deletions(-) delete mode 100644 _layouts/default.liquid delete mode 100644 _layouts/tasks/compress.liquid delete mode 100644 _layouts/tasks/shortcodes.liquid diff --git a/_layouts/default.liquid b/_layouts/default.liquid deleted file mode 100644 index 4e7e211..0000000 --- a/_layouts/default.liquid +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: tasks/compress ---- - -{%- include rest/defaults.liquid -%} -{%- include common/rest/defaults.liquid -%} - - - - - {%- include common/metadata.liquid -%} - {%- include common/title.liquid -%} - {%- include common/twitter_cards.liquid -%} - {%- include common/opengraph.liquid -%} - {%- include common/schema.liquid -%} - {%- include common/links.liquid -%} - {%- include rest/styles.liquid -%} - {%- include common/script.liquid -%} - {%- include extra/head.html -%} - - - {%- include templates/sidebar.liquid -%} - {%- include templates/content.liquid -%} - {%- include templates/addons.liquid -%} - {%- include extra/body.html -%} - {%- include rest/script.liquid -%} - {%- include common/mermaid.liquid-%} - {%- include common/mathjax.liquid-%} - {%- include common/google_gtag.liquid-%} - {%- include common/google_adsense.liquid-%} - - diff --git a/_layouts/tasks/compress.liquid b/_layouts/tasks/compress.liquid deleted file mode 100644 index c0c58d9..0000000 --- a/_layouts/tasks/compress.liquid +++ /dev/null @@ -1,21 +0,0 @@ ---- -layout: tasks/shortcodes ---- - -{%- if site.debug.compress == false -%} - {{ content }} -{%- else -%} - {%- if content contains "" -%} - {%- assign pre_blocks = content_block | split: "" -%} - {{ pre_blocks.last | split: " " | join: " " -}} - {%- else -%} - {{- content_block | split: " " | join: " " -}} - {%- endif -%} - {%- endfor -%} - {%- else -%} - {{- content | split: " " | join: " " -}} - {%- endif -%} -{%- endif -%} diff --git a/_layouts/tasks/shortcodes.liquid b/_layouts/tasks/shortcodes.liquid deleted file mode 100644 index 4a0197d..0000000 --- a/_layouts/tasks/shortcodes.liquid +++ /dev/null @@ -1,33 +0,0 @@ -{%- include common/rest/i18n.liquid -%} - -{%- assign shortcodes = "mermaid, warning, note, tip, danger" | split: ", " -%} - -{%- if site.debug.shortcodes == false -%} - {{ content }} -{%- else -%} - {%- if content contains "" -%} - {%- assign pre_blocks = content_block | split: "" -%} - {%- if content_block contains '> {% endcomment -%} - {%- assign custom = content_block | replace_first: '>', "" | split: "" -%} - {%- assign lang = custom.first -%} - {%- assign codes = custom.last | split: "" | first -%} - {%- if shortcodes contains lang -%} - {%- include shortcodes/{{ lang }}.liquid -%} {{- pre_blocks.last -}} - {%- else -%} - {{ pre_blocks.last }} - {%- endif -%} - {%- else -%} - {{ pre_blocks.last -}} - {%- endif -%} - {%- else -%} - {{- content_block -}} - {%- endif -%} - {%- endfor -%} - {%- else -%} - {{- content -}} - {%- endif -%} -{%- endif -%}