aboutsummaryrefslogtreecommitdiff
path: root/src/_includes/partials/header.njk
blob: 64b8846301fd6e5bf72bd08690ef86e3dc8e502c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<header class="header">
    <div class="logo-container">
        <a class="logo" href="/">indrajith.dev</a>
    </div>
    <h4 class="slogan">(Software is Art)</h4>
    <nav>
        <ul>
            <li><a href="/about" class="hvr-underline-reveal" id="about" class="links">about</a></li>
            <li><a href="/posts" class="hvr-underline-reveal" id="posts" class="links">posts</a></li>
            <li><a href="/timeline" class="hvr-underline-reveal" id="cv" class="links">timeline</a></li>
            <li><a href="https://git.indrajith.dev" class="hvr-underline-reveal" id="cv" class="links">git</a></li>
            <li><a href="/contact" id="cv" class="links hvr-underline-reveal">contact</a></li>
            <li><a href="/feed.xml" id="cv" class="links hvr-underline-reveal">feed</a></li>
        </ul>

    </nav>
</header>

<script>
(function(){
    const currentLocation = location.pathname;
    const navs = ["about","posts","cv"];
    const currentNav = navs.find(nav=>currentLocation.includes(nav));
    if (currentNav) {
        document.getElementById(currentNav).parentElement.classList.add("text-lightish-50");
    }
})();
</script>