Skip to content

Commit

Permalink
Updated head.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Earl Soriano Fojas/Server Solutions G /SRPH/Engineer/Samsung Electronics committed Nov 22, 2023
1 parent 905434a commit 8934af4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- comment -%}
Include as: {%- include_cached nav.html pages=pages -%}
Include as: {%- include_cached nav_custom.html pages=pages -%}
Depends on: include.pages.
Results in: HTML for the navigation panel.
Includes:
Expand Down
10 changes: 5 additions & 5 deletions _includes/components/sidebar_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Depends on: page(?), site.
Results in: HTML for the side bar.
Includes:
title.html, nav.html, nav_footer_custom.html
title.html, nav_custom.html, nav_footer_custom.html
Overwrites:
pages_top_size, collections_size, collection_entry,
collection_key, collection_value, collection, nav_footer_custom.
Expand All @@ -24,7 +24,7 @@
| where_exp:"item", "item.nav_exclude != true"
| size %}
{% if pages_top_size > 0 %}
{% include_cached nav.html pages=site.html_pages %}
{% include_cached nav_custom.html pages=site.html_pages %}
{% endif %}
{%- if site.nav_external_links -%}
<ul class="nav-list">
Expand Down Expand Up @@ -55,15 +55,15 @@
</button>
{%- endif -%}
<div class="nav-category">{{ collection_value.name }}</div>
{% include_cached nav.html pages=collection %}
{% include_cached nav_custom.html pages=collection %}
</li>
</ul>
{% else %}
<div class="nav-category">{{ collection_value.name }}</div>
{% include_cached nav.html pages=collection %}
{% include_cached nav_custom.html pages=collection %}
{% endif %}
{% else %}
{% include_cached nav.html pages=collection %}
{% include_cached nav_custom.html pages=collection %}
{% endif %}
{% endif %}
{% endfor %}
Expand Down
8 changes: 6 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
site.search_enabled, site.static_files, site.favicon_ico.
Results in: HTML for the head element.
Includes:
head_nav.html, head_custom.html.
css/activation.scss.liquid, head_custom.html.
Overwrites:
ga_tracking_ids, ga_property, file, favicon.
Should not be cached, because included files depend on page.
Expand All @@ -16,7 +16,11 @@

<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_url }}">

{% include head_nav.html %}
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-head-nav.css' | relative_url }}" id="jtd-head-nav-stylesheet">

<style id="jtd-nav-activation">
{% include css/activation.scss.liquid %}
</style>

{% if site.ga_tracking != nil %}
{% assign ga_tracking_ids = site.ga_tracking | split: "," %}
Expand Down

0 comments on commit 8934af4

Please sign in to comment.