aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
authorJieiku2022-05-30 23:20:43 -0700
committerJieiku2022-05-30 23:20:43 -0700
commit30ea88e8d8c201c3fcce409a54712de820610dff (patch)
treeccf9c2ea31816153f59c725d85ba8eaa54e3ef21 /templates/page.html
parentd8cd3b9988f9021ea1b285db3231048acb7b74f4 (diff)
downloadabridge-30ea88e8d8c201c3fcce409a54712de820610dff.tar.gz
abridge-30ea88e8d8c201c3fcce409a54712de820610dff.tar.bz2
abridge-30ea88e8d8c201c3fcce409a54712de820610dff.zip
Add Favicons, Add Head Macro, 404 noindex, config.toml Resources, Whitespace Cleanup
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html65
1 files changed, 30 insertions, 35 deletions
diff --git a/templates/page.html b/templates/page.html
index f92574e..6ea50d6 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,40 +1,35 @@
{% extends "base.html" %}
{% import "macros/macros.html" as macros %}
-{{config.title}} - {{page.title}}
-{% block content %}
- <article>
- {{ macros::title(page=page) }}
+{%- block content %}
+ <article>
+ {{- macros::title(page=page) }}
{{ page.content | safe }}
- {% block page_before_footer %}
- {% endblock page_before_footer %}
- {% block page_footer %}
- {{ macros::footer(page=page) }}
- {% endblock page_footer %}
- {% block page_after_footer %}
- {% endblock page_after_footer %}
- </article>
- {% block toc %}
- {% if page.extra.toc %}
- {% set toc = page.toc %}
- {% endif %}
- {% if toc %}
- <div class="toc">
- <div class="toc-sticky">
- <h3>Index</h3>
- {% for h in toc %}
- <div class="toc-item">
- <a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a>
- </div>
- {% if h.children %}
- {% for h2 in h.children %}
- <div class="toc-item-child">
- <a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a>
- </div>
- {% endfor %}
- {% endif %}
- {% endfor %}
+ {%- block page_footer %}
+ {{- macros::footer(page=page) }}
+ {%- endblock page_footer %}
+ </article>
+ {%- block toc %}
+ {%- if page.extra.toc %}
+ {%- set toc = page.toc %}
+ {%- endif %}
+ {%- if toc %}
+ <div class="toc">
+ <div class="toc-sticky">
+ <h3>Index</h3>
+ {%- for h in toc %}
+ <div class="toc-item">
+ <a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a>
</div>
+ {%- if h.children %}
+ {%- for h2 in h.children %}
+ <div class="toc-item-child">
+ <a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a>
+ </div>
+ {%- endfor %}
+ {%- endif %}
+ {%- endfor %}
</div>
- {% endif %}
- {% endblock toc %}
-{% endblock content %}
+ </div>
+ {%- endif %}
+ {%- endblock toc %}
+{%- endblock content %}