From e80f1b5c8aaa83c3e590a485ba2926ae855aa2a4 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Thu, 5 Dec 2019 19:09:26 +0800 Subject: fix: correct some html tags, css properties --- _layouts/articles.html | 2 +- _layouts/post.html | 60 ++++++++++++++++++++++++-------------------------- 2 files changed, 30 insertions(+), 32 deletions(-) (limited to '_layouts') diff --git a/_layouts/articles.html b/_layouts/articles.html index 89e9d86..46ba5c5 100644 --- a/_layouts/articles.html +++ b/_layouts/articles.html @@ -11,4 +11,4 @@ sidebar: category-list {{ content }} {% include views/pagination.html %} -
+
diff --git a/_layouts/post.html b/_layouts/post.html index cae5476..dbf623d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -7,47 +7,45 @@ sidebar: ---
-
+
- {%- assign name = 'banner' -%} - {%- include functions.html func='get_value' -%} - {%- assign banner = return -%} + {%- assign name = 'banner' -%} + {%- include functions.html func='get_value' -%} + {%- assign banner = return -%} - {%- if banner == nil -%} - {%- include views/post-header.html -%} - {%- endif -%} - - {%- include views/article.html -%} + {%- if banner == nil -%} + {%- include views/post-header.html -%} + {%- endif -%} -
- {%- if page.previous -%} - « Prev - {%- else -%} - - {%- endif -%} + {%- include views/article.html -%} - {%- if page.next -%} - Next » - {%- else -%} - - {%- endif -%} -
+
+ {%- if page.previous -%} + « Prev + {%- else -%} + + {%- endif -%} - {%- if page.comments != false -%} + {%- if page.next -%} + Next » + {%- else -%} + + {%- endif -%} +
- {%- if site.disqus.shortname -%} - {%- include extensions/comments/disqus.html -%} - {%- endif -%} + {%- if page.comments != false -%} - {%- if site.gitment.username -%} - {%- include extensions/comments/gitment.html -%} - {%- endif -%} + {%- if site.disqus.shortname -%} + {%- include extensions/comments/disqus.html -%} + {%- endif -%} - {%- endif -%} + {%- if site.gitment.username -%} + {%- include extensions/comments/gitment.html -%} + {%- endif -%} -
+ {%- endif -%} - {%- include extensions/mathjax.html -%} +
-- cgit v1.2.3