Skip to content

Commit

Permalink
Merge branch 'al-folio-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
george-gca committed Nov 29, 2024
2 parents f5a086a + 7c22e48 commit dc8770f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.3.8)
rexml (3.3.9)
rouge (4.4.0)
safe_yaml (1.0.5)
sass-embedded (1.80.3-aarch64-linux-gnu)
Expand Down
13 changes: 11 additions & 2 deletions _includes/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@
{% if child.title == 'divider' %}
<div class="dropdown-divider"></div>
{% else %}
<a class="dropdown-item {% if page.title == child.title %}active{% endif %}" href="{{ child.permalink | relative_url }}">
<a
class="dropdown-item {% if page.title == child.title %}active{% endif %}"
href="{% if child.permalink contains '://' %}{{ child.permalink }}{% else %}{{ child.permalink | relative_url }}{% endif %}"
>
{{- child.title -}}
</a>
{% endif %}
Expand All @@ -97,7 +100,13 @@
{% else %}
{% assign parent_link = p.permalink | remove: 'index.html' %}
<li class="nav-item {% if page.url contains parent_link %}active{% endif %}">
{% if p.permalink contains '/blog/' %}{% assign url = '/blog/' %} {% else %}{% assign url = p.url %}{% endif %}
{%- if p.permalink contains '://' -%}
{%- assign url = p.permalink -%}
{%- elsif p.permalink contains '/blog/' -%}
{%- assign url = '/blog/' -%}
{%- else -%}
{%- assign url = p['url'] -%}
{%- endif %}
<a class="nav-link" href="{{ url | relative_url }}">
{{- p.title }}
{% if page.url contains p.url %}
Expand Down

0 comments on commit dc8770f

Please sign in to comment.