Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
junsan1 committed Jun 24, 2024
1 parent 0f98d0e commit 37ef7e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions _includes/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ '/' | append: page.lang | relative_url }}">{% include localize.liquid key="home" default="Home" %}</a></li>
<li class="breadcrumb-item"><a href="{{ '/' | append: page.lang | relative_url }}">{{ locale.home | default: "Home" }}</a></li>
{% assign crumbs = page.url | remove: '/index.html' | split: '/' %}
{% for crumb in crumbs offset: 1 %}
{% if forloop.last %}
<li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>
{% else %}
{% assign crumb_limit = forloop.index | plus: 1 %}
{% capture crumb_url %}{% for c in crumbs limit: crumb_limit %}{{ c | append: '/' }}{% endfor %}{% endcapture %}
<li class="breadcrumb-item"><a href="{{ crumb_url | relative_url }}">{% include localize.liquid key=crumb default=crumb %}</a></li>
{% assign crumb_key = crumb %}
<li class="breadcrumb-item"><a href="{{ crumb_url | relative_url }}">{{ locale[crumb_key] | default: crumb | capitalize }}</a></li>
{% endif %}
{% endfor %}
</ol>
Expand Down
10 changes: 5 additions & 5 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
</button>
<nav>
<ul>
<li><a href="{{ "/" | append: page.lang | relative_url }}">{{ locale.main }}</a></li>
<li><a href="{{ "/software" | prepend: page.lang | prepend: "/" | relative_url }}">{{ locale.software }}</a></li>
<li><a href="{{ "/brokers" | prepend: page.lang | prepend: "/" | relative_url }}">{{ locale.brokers }}</a></li>
<li><a href="{{ "/algopedia" | prepend: page.lang | prepend: "/" | relative_url }}">{{ locale.algopedia }}</a></li>
<li><a href="{{ "/" | append: page.lang | relative_url }}">{{ locale.home | default: "Home" }}</a></li>
<li><a href="{{ "/software" | prepend: page.lang | prepend: "/" | relative_url }}">{{ locale.software | default: "Software" }}</a></li>
<li><a href="{{ "/brokers" | prepend: page.lang | prepend: "/" | relative_url }}">{{ locale.brokers | default: "Brokers" }}</a></li>
<li><a href="{{ "/algopedia" | prepend: page.lang | prepend: "/" | relative_url }}">{{ locale.algopedia | default: "Algopedia" }}</a></li>
</ul>
</nav>
<div class="language-selector">
Expand All @@ -45,7 +45,7 @@

<footer>
<div class="footer-content">
<p>&copy; {{ site.time | date: '%Y' }} AlgoTradingLib. {{ locale.footer_copyright }}</p>
<p>&copy; {{ site.time | date: '%Y' }} AlgoTradingLib. {{ locale.footer_copyright | default: "AlgoTradingLib" }}</p>
<p>{{ locale.footer_contact }}: info@algotradinglib.com</p>
</div>
</footer>
Expand Down

0 comments on commit 37ef7e1

Please sign in to comment.