disable toc on contact page
This commit is contained in:
parent
f46c4e4052
commit
1743bfa685
|
@ -2,8 +2,17 @@
|
||||||
title = "Contact"
|
title = "Contact"
|
||||||
description = "How to get in contact"
|
description = "How to get in contact"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
[extra]
|
||||||
|
disable_toc = true
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
## NOTE WIP:
|
||||||
|
|
||||||
|
This page has dummy data
|
||||||
|
|
||||||
|
|
||||||
|
## Contact Info
|
||||||
|
|
||||||
You can reachout through:
|
You can reachout through:
|
||||||
|
|
||||||
- phone 1234 56 78 90
|
- phone 1234 56 78 90
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
form {
|
form {
|
||||||
width: 100%;
|
/* width: 100%; */
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top: 5px solid var(--primary-color);
|
border-top: 5px solid var(--primary-color);
|
||||||
|
|
|
@ -68,6 +68,38 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{% block toc %}
|
||||||
|
{% if section.toc %}
|
||||||
|
{% set toc = section.toc %}
|
||||||
|
{% elif page.toc %}
|
||||||
|
{% set toc = page.toc %}
|
||||||
|
{% endif %}
|
||||||
|
{% if toc %}
|
||||||
|
{% if page.extra.disable_toc %}
|
||||||
|
{% else %}
|
||||||
|
<div class="toc">
|
||||||
|
<div class="toc-sticky">
|
||||||
|
{% 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>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock toc %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% block sidebar %}
|
{% block sidebar %}
|
||||||
<!-- <div> -->
|
<!-- <div> -->
|
||||||
<!-- Your cool sidebar -->
|
<!-- Your cool sidebar -->
|
||||||
|
|
Loading…
Reference in a new issue