Skip to content

Commit

Permalink
Fix doc_link syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdavidwong committed Sep 24, 2021
1 parent bd242b2 commit 0e71195
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions _includes/doc-heading.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!-- Variables -->
{% include variables.html %}
<!-- Create heading -->
{% if page.permalink == doc_link_4.0 %}
{% if page.permalink == doc_link_4_0 %}
{% assign meta = doc-index-4.0 | where_exp: "item", "item.topic != nil" %}
<h1 class="more-top add-left outer-heading">
<a href="{{ doc_link_4.0 }}" class="heading-link">
<a href="{{ doc_link_4_0 }}" class="heading-link">
<i class="fa fa-book"></i> {{ meta[0].metatopic }}</a>
</h1>
{% elsif %}
{% assign meta = doc-index-4.1 | where_exp: "item", "item.topic != nil" %}
<h1 class="more-top add-left outer-heading">
<a href="{{ doc_link_4.1 }}" class="heading-link">
<a href="{{ doc_link_4_1 }}" class="heading-link">
<i class="fa fa-book"></i> {{ meta[0].metatopic }}</a>
</h1>
{% else %}
Expand All @@ -20,14 +20,14 @@ <h1 class="more-top add-left outer-heading">
<!-- Section heading -->
{% if path_segments contains section.category %}
<h1 class="more-top add-left outer-heading">
<a href="{{ doc_link_4.0 }}#{{ section.title | slugify }}" class="heading-link">
<a href="{{ doc_link_4_0 }}#{{ section.title | slugify }}" class="heading-link">
<i class="fa fa-book"></i>{{ section.title }}
</a>
<!-- Breadcrumb heading -->
{% for subsection in section.sub-pages %}
{% if path_segments contains subsection.subcategory %}
/
<a href="{{ doc_link_4.0 }}#{{ subsection.title | slugify }}" class="heading-link">
<a href="{{ doc_link_4_0 }}#{{ subsection.title | slugify }}" class="heading-link">
{{ subsection.title }}
</a>
{% endif %}
Expand All @@ -41,14 +41,14 @@ <h1 class="more-top add-left outer-heading">
<!-- Section heading -->
{% if path_segments contains section.category %}
<h1 class="more-top add-left outer-heading">
<a href="{{ doc_link_4.1 }}#{{ section.title | slugify }}" class="heading-link">
<a href="{{ doc_link_4_1 }}#{{ section.title | slugify }}" class="heading-link">
<i class="fa fa-book"></i>{{ section.title }}
</a>
<!-- Breadcrumb heading -->
{% for subsection in section.sub-pages %}
{% if path_segments contains subsection.subcategory %}
/
<a href="{{ doc_link_4.1 }}#{{ subsection.title | slugify }}" class="heading-link">
<a href="{{ doc_link_4_1 }}#{{ subsection.title | slugify }}" class="heading-link">
{{ subsection.title }}
</a>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
{% endif %}
<!-- Doc link -->
{% assign doc_link = lang | append: "/doc/" %}
{% assign doc_link_4.0 = lang | append: "/doc/4.0/" %}
{% assign doc_link_4.1 = lang | append: "/doc/4.1/" %}
{% assign doc_link_4_0 = lang | append: "/doc/4.0/" %}
{% assign doc_link_4_1 = lang | append: "/doc/4.1/" %}
<!-- Team link -->
{% assign team_link = lang | append: "/team/" %}
<!-- News by category link -->
Expand Down
4 changes: 2 additions & 2 deletions _layouts/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div class="container">
{% include doc-heading.html %}
<div class="more-bottom white-box page-content">
{% if page.permalink == doc_link_4.0 %}
{% if page.permalink == doc_link_4_0 %}
{% include doc-index-4.0.html %}
{% elsif page.permalink == doc_link_4.1 %}
{% elsif page.permalink == doc_link_4_1 %}
{% include doc-index-4.1.html %}
{% else %}
{% include doc-content.html %}
Expand Down

0 comments on commit 0e71195

Please sign in to comment.