Fixes minor spacing and comment nits (#1128)

This PR simply fixes a few spacing and comment nits I found.
This commit is contained in:
Eric Knibbe 2023-01-10 14:23:21 -05:00 committed by GitHub
parent c296f914af
commit 49d004f271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 13 deletions

View File

@ -76,7 +76,7 @@ search:
# For copy button on code # For copy button on code
enable_copy_code_button: true enable_copy_code_button: true
# To disable support for mermaid diagrams (https://mermaid-js.github.io/mermaid/), # To disable support for mermaid diagrams (https://mermaid.js.org),
# comment out the `mermaid` and `version` keys below # comment out the `mermaid` and `version` keys below
# By default, consuming the theme as a gem leaves mermaid disabled; it is opt-in # By default, consuming the theme as a gem leaves mermaid disabled; it is opt-in
mermaid: mermaid:

View File

@ -7,10 +7,10 @@
</div> </div>
<nav aria-label="Main" id="site-nav" class="site-nav"> <nav aria-label="Main" id="site-nav" class="site-nav">
{% assign pages_top_size = site.html_pages {% assign pages_top_size = site.html_pages
| where_exp:"item", "item.title != nil" | where_exp:"item", "item.title != nil"
| where_exp:"item", "item.parent == nil" | where_exp:"item", "item.parent == nil"
| where_exp:"item", "item.nav_exclude != true" | where_exp:"item", "item.nav_exclude != true"
| size %} | size %}
{% if pages_top_size > 0 %} {% if pages_top_size > 0 %}
{% include nav.html pages=site.html_pages key=nil %} {% include nav.html pages=site.html_pages key=nil %}
{% endif %} {% endif %}

View File

@ -1,4 +1,4 @@
<!-- Feather. MIT License: https://github.com/twbs/icons/blob/main/LICENSE.md --> <!-- Bootstrap Icons. MIT License: https://github.com/twbs/icons/blob/main/LICENSE.md -->
<symbol id="svg-copy" viewBox="0 0 16 16"> <symbol id="svg-copy" viewBox="0 0 16 16">
<title>Copy</title> <title>Copy</title>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16">

View File

@ -58,7 +58,7 @@
{%- endunless -%} {%- endunless -%}
{%- assign nav_order_pages = title_pages {%- assign nav_order_pages = title_pages
| where_exp: "item", "item.nav_order != nil" -%} | where_exp: "item", "item.nav_order != nil" -%}
{%- assign title_order_pages = title_pages {%- assign title_order_pages = title_pages
| where_exp: "item", "item.nav_order == nil" -%} | where_exp: "item", "item.nav_order == nil" -%}
@ -174,7 +174,7 @@
{%- if node.child_nav_order == 'desc' or node.child_nav_order == 'reversed' -%} {%- if node.child_nav_order == 'desc' or node.child_nav_order == 'reversed' -%}
{%- assign children_list = children_list | reverse -%} {%- assign children_list = children_list | reverse -%}
{%- endif -%} {%- endif -%}
<ul class="nav-list "> <ul class="nav-list">
{%- for child in children_list -%} {%- for child in children_list -%}
{%- unless child.nav_exclude -%} {%- unless child.nav_exclude -%}
<li class="nav-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}"> <li class="nav-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">

View File

@ -16,10 +16,10 @@ layout: table_wrappers
{% endcomment %} {% endcomment %}
{% capture nav %} {% capture nav %}
{% assign pages_top_size = site.html_pages {% assign pages_top_size = site.html_pages
| where_exp:"item", "item.title != nil" | where_exp:"item", "item.title != nil"
| where_exp:"item", "item.parent == nil" | where_exp:"item", "item.parent == nil"
| where_exp:"item", "item.nav_exclude != true" | where_exp:"item", "item.nav_exclude != true"
| size %} | size %}
{% if pages_top_size > 0 %} {% if pages_top_size > 0 %}
{% include nav.html pages=site.html_pages key=nil %} {% include nav.html pages=site.html_pages key=nil %}
{% endif %} {% endif %}

View File

@ -1,5 +1,4 @@
// Typography // Typography
// stylelint-disable selector-no-type, selector-max-type, selector-max-specificity, selector-max-id // stylelint-disable selector-no-type, selector-max-type, selector-max-specificity, selector-max-id
h1, h1,