blob: f16eefc075b15adaa52254e2e872b00c57c41023 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{indrajith.dev}</title>
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
<link rel="stylesheet" href="/css/styles.css">
</head>
<body>
<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="/" hx-get="/" hx-target="#content" hx-push-url="true" class="hvr-underline-reveal" id="home" class="links">home</a></li>
<li><a href="/posts" hx-get="/post" hx-target="#content" hx-push-url="true" class="hvr-underline-reveal" id="posts" class="links">posts</a></li>
<li><a href="/timeline" hx-get="/timeline" hx-target="#content" hx-push-url="true" class="hvr-underline-reveal" id="cv" class="links">timeline</a></li>
<li><a href="/about" hx-get="/about" hx-target="#content" hx-push-url="true" class="hvr-underline-reveal" id="about" class="links">about</a></li>
<li><a href="https://git.indrajith.dev" class="hvr-underline-reveal" id="cv" class="links">git</a></li>
<li><a href="/contact" hx-get="/contact" hx-target="#content" hx-push-url="true" 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>
<hr>
</header>
<main id="content">
<%= content %>
</main>
<footer>
<hr>
<ul>
<li>
<p>© 2024 Indrajith K L </p>
</li>
</ul>
<img src="/images/indrajith.dev.gif" class="etyone" alt="">
</footer>
<script>htmx.config.getCacheBusterParam = true</script>
<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>
</body>
</html>
|