Skip to content

Commit

Permalink
technical docs new hidden page
Browse files Browse the repository at this point in the history
  • Loading branch information
luukee committed Sep 4, 2024
1 parent a2e2c58 commit a19f597
Show file tree
Hide file tree
Showing 4 changed files with 1,380 additions and 1,191 deletions.
12 changes: 7 additions & 5 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ <h3 class="masthead-title masthead-title__sidebar">
<div class="doc-posts-list">
{% for node in pages_list %}
{% if group == null or group == node.group %}
{% if page.url == node.url %}
<li class="sidebar-nav-item active"><a href="{{node.url}}" class="active">{{node.title}}</a></li>
{% else %}
<li><a class="sidebar-nav-item" href="{{node.url}}">{{node.title}}</a></li>
{% endif %}
{% if node.hidden != true %}
{% if page.url == node.url %}
<li class="sidebar-nav-item active"><a href="{{node.url}}" class="active">{{node.title}}</a></li>
{% else %}
<li><a class="sidebar-nav-item" href="{{node.url}}">{{node.title}}</a></li>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
Expand Down
24 changes: 13 additions & 11 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ <h2 class="post-list-heading">{{ page.list_title }}</h2>
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
<p>{{ post.excerpt }}</p>
{%- endif -%}
{%- include post-meta.html post = post -%}
</li>
{% unless post.hidden %}
<li>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
<p>{{ post.excerpt }}</p>
{%- endif -%}
{%- include post-meta.html post = post -%}
</li>
{% endunless %}
{%- endfor -%}
</ul>

Expand Down
Loading

0 comments on commit a19f597

Please sign in to comment.