Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 01142ce

Browse files
committed
#1: Use jinja logic to swap index.html layout
1 parent c514a83 commit 01142ce

File tree

3 files changed

+10
-31
lines changed

3 files changed

+10
-31
lines changed

bin/build.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,3 @@ php ${SCRIPT_PATH}/table_responsive.php ${DOC_DIR}
9999
# Fix pipes in tables
100100
echo "Fixing pipes in tables"
101101
php ${SCRIPT_PATH}/table_fix_pipes.php ${DOC_DIR}
102-
103-
# Replace landing page content
104-
echo "Replacing landing page content"
105-
php ${SCRIPT_PATH}/swap_index.php ${DOC_DIR}

bin/swap_index.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

theme/main.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@
4343

4444
{% include "nav.html" %}
4545

46-
<!-- content:begin -->
47-
<div id="page-top" class="container docs">
48-
{% block content %}
49-
<div class="col-md-3">{% include "toc.html" %}</div>
50-
<div class="col-md-9" role="main">{% include "content.html" %}</div>
51-
{% endblock %}
52-
</div>
53-
<!-- content:end -->
46+
{% if page.input_path|string() == 'index.html' %}
47+
{{ page.content }}
48+
{% else %}
49+
<div id="page-top" class="container docs">
50+
{% block content %}
51+
<div class="col-md-3">{% include "toc.html" %}</div>
52+
<div class="col-md-9" role="main">{% include "content.html" %}</div>
53+
{% endblock %}
54+
</div>
55+
{% endif %}
5456

5557
{% include "footer.html" %}
5658

0 commit comments

Comments
 (0)