Skip to content

Commit 71cb12c

Browse files
committed
style: Fixed nav link indentations
1 parent 7ff204b commit 71cb12c

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

_includes/menu.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@
44
{%- endif -%}
55
{%- for node in sorted_pages -%}
66
{%- if node.menu != false -%}
7-
{%- if node.menu or node.title %}
87
{%- unless node.parent %}
9-
<a class="mdl-navigation__link parent{% if node.url == page.url or page.parent and page.parent == node.path %} is-active{% endif %}" href="{{ node.url | absolute_url }}"{% if node.tab %} target="_blank"{% endif %}>{% if node.menu %}{{ node.menu }}{% else %}{{ node.title }}{% endif %}</a>
8+
<a class="mdl-navigation__link parent{% if node.url == page.url or page.parent and page.parent == node.path %} is-active{% endif %}" href="{{ node.url | absolute_url }}"{% if node.tab %} target="_blank"{% endif %}>{% if node.menu %}{{ node.menu }}{% else %}{{ node.title }}{% endif %}</a>
109
{%- if site.menu_style != 'dropdown' or node.url == page.url or page.parent and page.parent == node.path -%}
1110
{%- for child in sorted_pages -%}
1211
{%- if child.menu != false -%}
1312
{%- if child.menu or child.title %}
1413
{%- if child.parent %}
1514
{%- if child.parent == node.path or child.parent == node.id %}
16-
<a class="mdl-navigation__link child{% if child.url == page.url %} is-active{% endif %}" href="{{ child.url | absolute_url }}"{% if child.tab %} target="_blank"{% endif %}>{% if child.menu %}{{ child.menu }}{% else %}{{ child.title }}{% endif %}</a>
15+
<a class="mdl-navigation__link child{% if child.url == page.url %} is-active{% endif %}" href="{{ child.url | absolute_url }}"{% if child.tab %} target="_blank"{% endif %}>{% if child.menu %}{{ child.menu }}{% else %}{{ child.title }}{% endif %}</a>
1716
{%- endif -%}
18-
{%- endif -%}
19-
{%- endif -%}
20-
{%- endif -%}
21-
{%- endfor -%}
22-
{%- endif -%}
23-
{%- endunless -%}
24-
{%- endif -%}
25-
{%- endif -%}
26-
{%- endfor -%}
17+
{% endif -%}
18+
{% endif -%}
19+
{% endif -%}
20+
{% endfor -%}
21+
{% endif -%}
22+
{% endunless -%}
23+
{% endif -%}
24+
{% endfor -%}

_layouts/news.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<!DOCTYPE html>
2-
<html lang="{{ site.lang | default: "en-GB" }}">
1+
<!doctype html>
2+
<html lang="{{ site.lang | default: "en" }}">
33

44
<head>
55
{% include head.html %}
@@ -22,16 +22,16 @@
2222
</header>
2323
<div class="mdl-layout__drawer">
2424
<span class="mdl-layout-title">
25-
{%- if site.logo %}
25+
{%- if site.logo %}
2626
<a id="site-title" href="{{ '/' | absolute_url }}">
27-
<img src="{{ site.logo | absolute_url }}" alt="" id="site-logo">
27+
<img src="{{ site.logo | absolute_url }}" alt="{{ site.title }}" id="site-logo">
2828
</a>
29-
{% else %}
29+
{% else %}
3030
<a id="site-title" href="{{ '/' | absolute_url }}">{{ site.title }}</a>
31-
{% endif -%}
31+
{% endif -%}
3232
</span>
3333
<nav class="mdl-navigation">
34-
{%- include menu.html -%}
34+
{%- include menu.html %}
3535
</nav>
3636
</div>
3737
<div class="ribbon-news" style="background-image: url('{{ page.image }}');"></div>

_pages/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ menu: About Us # Set to false to hide from the menu completely.
1010
weight: 3 # Lower weights rise to the top of the side navigation menu.
1111
# Override global color scheme for this page.
1212
# https://getmdl.io/customize/index.html
13-
mdl_colors: deep_orange-blue
13+
mdl_colors: green-deep_purple
1414
search: true # 'false' hides this page from search results.
1515
# Add the category this page should belong to.
1616
# When set, the permalink is made up of /:category/:title (e.g. /pages/about)

0 commit comments

Comments
 (0)