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

-
-
- - -
-
- - -

Markdown supported {{ cfg.charLimit }}

-
-
- - -
-
- {# -
- reserved for version 1.6.0 or later - - - -
- #} - -
-
-
- {% else %} -
-

New questions cannot be asked right now.

- {% endif %} -
-
- {% if combined %} -
- {% if cfg.showQuestionCount == true %} -

{{ len(combined) }} question(s)

- {% endif %} -
- {% for item in combined %} -
-
-
-
-

- {% if item.question.from_who %} - {{ item.question.from_who }} - {% else %} - {{ cfg.anonName }} - {% endif %} -

-

{{ formatRelativeTime(str(item.question.creation_date)) }}

-
-
{{ item.question.content | render_markdown }}
- -
-
-
- {% for answer in item.answers %} -
{{ answer.content | render_markdown }}
-
- -
- {% 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 @@ }); +