diff --git a/templates/index.html b/templates/index.html
index 404fd1d..86f711e 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -5,205 +5,12 @@
{% endblock %}
{% block content %}
-
-
-
{{ cfg.instance.title }}
- {% autoescape off %}
- {{ cfg.instance.description | render_markdown }}
- {% endautoescape %}
-
- {% if len(cfg.instance.rules) > 0 %}
-
-
-
-
-
-
-
{{ cfg.instance.rules | render_markdown }}
-
-
-
-
-
- {% endif %}
-
-
-
- {% if cfg.lockInbox == false %}
-
-
Ask a question
-
-
- {% else %}
-
-
New questions cannot be asked right now.
- {% endif %}
-
-
- {% if combined %}
-
- {% if cfg.showQuestionCount == true %}
-
{{ len(combined) }} question(s)
- {% endif %}
-
- {% for item in combined %}
-
-
-
-
-
- {% for answer in item.answers %}
-
{{ answer.content | render_markdown }}
-
-
-
- {{ formatRelativeTime(str(answer.creation_date)) }}
- {% if item.question.pinned %}
- Pinned
- {% endif %}
-
-
- {% endfor %}
-
-
- {% endfor %}
- {% for item in combined %}
- {% for answer in item.answers %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {% endfor %}
- {% endfor %}
-
+
+ {% if cfg.style.homepageLayout == 'catask' %}
+ {% include 'snippets/layout/homepage/normal.html' %}
+ {% elif cfg.style.homepageLayout == 'retrospring' %}
+ {% include 'snippets/layout/homepage/retrospring.html' %}
{% endif %}
{% endblock %}
@@ -218,6 +25,54 @@
});
+