Skip to content

Commit b87f8e5

Browse files
committed
Turn off secondary navigation as the page is too long
1 parent 7d09e70 commit b87f8e5

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

content/community/community-team/engagement-channels/contents.lr

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ title: Community Team: Engagement Channels
66
---
77
description: This page serves as a guide for Community Team members on how to engage with CC Open Source across various channels.
88
---
9+
is_long_page: true
10+
---
911
body:
1012

1113
You've joined the CC Community Team. Congratulations! This is a very clear
@@ -201,7 +203,7 @@ Commons handle](https://twitter.com/creativecommons).
201203
You can see all the upcoming tweets from CC and suggest any possible
202204
improvements to the text or the material.
203205

204-
## Suggest access
206+
### Suggest access
205207

206208
You can suggest new topics for the tweets as well and bring attention to any
207209
interesting thing you might know or have recently discovered.

models/page.ini

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ type = string
1010
label = Title
1111
type = markdown
1212

13+
[fields.is_long_page]
14+
label = Is long page?
15+
type = boolean
16+
1317
[fields.body]
1418
label = Body
1519
type = markdown

themes/vocabulary_theme/templates/page-with-toc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h4 class="b-header">On this page</h4>
100100
{% for item in this.body.toc %}
101101
<li>
102102
<a class="link" href="#{{ item.anchor }}">{{ item.title }}</a>
103-
{% if item.children %}
103+
{% if item.children and not this.is_long_page %}
104104
<ul>
105105
{% for subitem in item.children %}
106106
<li><a class="link" href="#{{ subitem.anchor }}"><i class="icon circle-filled"></i>{{ subitem.title }}</a></li>

0 commit comments

Comments
 (0)