Skip to content

Commit

Permalink
Separate leet-name property
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Nov 16, 2023
1 parent 11d6bc3 commit bec2902
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ theme: academic-jekyll-theme
data:
settings:
menu:
- name: AB0UT
- name: About
leet-name: AB0UT
url: /about
- name: T1M3L1N3
- name: Timeline
leet-name: T1M3L1N3
url: /timeline
- name: B10G
- name: Blog
leet-name: B10G
url: /blog
social:
# fa-class is the Font Awesome class for the icon
Expand Down
8 changes: 4 additions & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<div>
<a href="{{ site.github.url }}/" class="d-flex align-items-center text-decoration-none" title="Home">
<img src="/assets/img/cyberlang-logo.png" alt="CYB3RL4NG logo" width="30" style="margin-right: 10px;">
<span class="fs-4 fw-bold">{{ site.title }}</span>
<span class="fs-4 fw-bold" style="font-family: 'PixeloidMono'">{{ site.title }}</span>
</a>
</div>
<nav class="d-inline-flex mt-2 mt-md-0 ms-md-auto">
{% for item in site.data.settings.menu %}
{% if page.title == item.name %}
<a class="me-3 py-2 text-decoration-none menu-underline-no-animation" href="{{ site.github.url }}{{ item.url }}">{{ item.name }}</a>
<a class="me-3 py-2 text-decoration-none menu-underline-no-animation" href="{{ site.github.url }}{{ item.url }}">{{ item.leet-name }}</a>
{% elsif item.name == "Blog" and page.layout == "post" %}
<a class="me-3 py-2 text-decoration-none menu-underline-no-animation" href="{{ site.github.url }}{{ item.url }}">{{ item.name }}</a>
<a class="me-3 py-2 text-decoration-none menu-underline-no-animation" href="{{ site.github.url }}{{ item.url }}">{{ item.leet-name }}</a>
{% else %}
<a class="me-3 py-2 text-decoration-none menu-underline-animation" href="{{ site.github.url }}{{ item.url }}">{{ item.name }}</a>
<a class="me-3 py-2 text-decoration-none menu-underline-animation" href="{{ site.github.url }}{{ item.url }}">{{ item.leet-name }}</a>
{% endif %}
{% endfor %}
</nav>
Expand Down

0 comments on commit bec2902

Please sign in to comment.