From 0ad35bc0382581ac9180c56166a8b972cfc0ddc5 Mon Sep 17 00:00:00 2001 From: Amos Date: Wed, 26 Jun 2024 20:32:49 +0800 Subject: [PATCH] Revert: HTML formatting --- src/_layouts/base.html | 252 ++++++++++++++++++++--------------------- 1 file changed, 120 insertions(+), 132 deletions(-) diff --git a/src/_layouts/base.html b/src/_layouts/base.html index 0bc8bfec77..d33a6cdaf5 100644 --- a/src/_layouts/base.html +++ b/src/_layouts/base.html @@ -3,141 +3,129 @@ - - - - {% if short-title %}{{short-title}}{% else %}{{title}}{% endif %} | {{site.title}} - - - - - - {% unless strip_fonts == true -%} - - - {% endunless -%} - - {%- if isProduction == true -%} - - - - - {% endif -%} - - {% assign desc = description | default: site.description | strip_html | strip_newlines | truncate: 160 -%} - {% unless desc and desc != '' or page.url contains '/posts' or page.url contains '/community' -%} - {% assign error = page.url | append: ' must have a description specified!' -%} - {{ error | throw_error }} - {% endunless %} - - {% assign og_image_path = image.path | default: layout.image.path | default: site.default_share_image -%} - - - - - - - - - - - {% unless strip_fonts == true -%} - - - - + + + + {% endif -%} + + {% assign desc = description | default: site.description | strip_html | strip_newlines | truncate: 160 -%} + {% unless desc and desc != '' or page.url contains '/posts' or page.url contains '/community' -%} + {% assign error = page.url | append: ' must have a description specified!' -%} + {{ error | throw_error }} + {% endunless %} + + {% assign og_image_path = image.path | default: layout.image.path | default: site.default_share_image -%} + + + + + + + + + + + {% unless strip_fonts == true -%} + + + + - {% endunless -%} - - {% if diff2html -%} - - - - {% endif -%} - - - - - {% if css -%} - {% for cssFile in css -%} - {% assign asset_path = '/assets/css/{{cssFile}}' -%} - - {% endfor -%} - {% endif -%} - - - - - - {%- if isProduction == true -%} - - {% endif -%} - -
- - {% include header.html %} - - {% render banner.html %} - - {{ content }} - - {% render footer.html %} - - - - - - - - - - - {% if js -%} - {% for jsFile in js -%} - - {% endfor -%} - {% endif -%} + {% endunless -%} - + {% if diff2html -%} + + + + {% endif -%} + + + + + {% if css -%} + {% for cssFile in css -%} + {% assign asset_path = '/assets/css/{{cssFile}}' -%} + + {% endfor -%} + {% endif -%} + + + + + + {%- if isProduction == true -%} + + {% endif -%} + +
+ + {% include header.html %} + {% render banner.html %} + + {{ content }} + + {% render footer.html %} + + + + + + + + + + + {% if js -%} + {% for jsFile in js -%} + + {% endfor -%} + {% endif -%} + + \ No newline at end of file