From fcb8710657416564245d40c545218539b3b46673 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sat, 2 May 2020 19:52:58 +0900 Subject: [PATCH] =?UTF-8?q?<=20=E2=80=98theme/templates/index.html.orig?= =?UTF-8?q?=E2=80=99=20>=20=E2=80=98theme/templates/index.html=E2=80=99=20?= =?UTF-8?q?<=20=E2=80=98theme/templates/index.html=E2=80=99=20>=20?= =?UTF-8?q?=E2=80=98theme/templates/index.html.new=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/templates/index.html | 108 +++++++++----------------------- theme/templates/index.html.new | 82 ++++++++++++++++++++++++ theme/templates/index.html.orig | 34 ---------- 3 files changed, 112 insertions(+), 112 deletions(-) create mode 100644 theme/templates/index.html.new delete mode 100644 theme/templates/index.html.orig diff --git a/theme/templates/index.html b/theme/templates/index.html index 46bceb7..32d4e36 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -1,82 +1,34 @@ - - +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles %} - - {% block title %}{{ SITENAME }}{%endblock%} - - - - - - - - - -
- - -
- {{ SITENAME }} -
-
- - {% for category, articles in categories %} - - {% if category.name == 'notes' %} - - {% for article in articles %} - - - -
- {{ article.content }} -
- - {% if not HIDE_DATE %} - +
+ {{ article.content }}{% include 'comments.html' %} +
+ {% if loop.length > 1 %} +
+

All posts

+
    + {% endif %} + {# other items #} + {% else %} +
  1. {{ article.title }}
  2. + {% endif %} + {% if loop.length > 1 %} +
+
{% endif %} - - {% endfor %} - - {% endif %} - {% endfor %} - -
- - - - - - +{% else %} + No posts found. +{% endif %} +{% endblock content %} diff --git a/theme/templates/index.html.new b/theme/templates/index.html.new new file mode 100644 index 0000000..46bceb7 --- /dev/null +++ b/theme/templates/index.html.new @@ -0,0 +1,82 @@ + + + + + {% block title %}{{ SITENAME }}{%endblock%} + + + + + + + + + +
+ + +
+ {{ SITENAME }} +
+
+ + {% for category, articles in categories %} + + {% if category.name == 'notes' %} + + {% for article in articles %} + + + +
+ {{ article.content }} +
+ + {% if not HIDE_DATE %} + + {% endif %} + + {% endfor %} + + {% endif %} + + {% endfor %} + +
+ + + + + + diff --git a/theme/templates/index.html.orig b/theme/templates/index.html.orig deleted file mode 100644 index 32d4e36..0000000 --- a/theme/templates/index.html.orig +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "base.html" %} -{% block content_title %}{% endblock %} -{% block content %} -{% if articles %} - {% for article in articles %} - - {# First item #} - {% if loop.first %} -
-

{# {{ SITENAME }} #} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %} {#:#} {{ article.title }}

- {% if not HIDE_DATE %}{% endif %} -
- -
- {{ article.content }}{% include 'comments.html' %} -
- {% if loop.length > 1 %} -
-

All posts

-
    - {% endif %} - {# other items #} - {% else %} -
  1. {{ article.title }}
  2. - {% endif %} - {% if loop.length > 1 %} -
-
- {% endif %} - {% endfor %} -{% else %} - No posts found. -{% endif %} -{% endblock content %}