diff options
Diffstat (limited to 'src/views/layout.ecr')
-rw-r--r-- | src/views/layout.ecr | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/views/layout.ecr b/src/views/layout.ecr index f16eefc..2a537ea 100644 --- a/src/views/layout.ecr +++ b/src/views/layout.ecr @@ -3,9 +3,9 @@ <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> + <title> <%= page_title %> | {indrajith.dev}</title> <link rel="stylesheet" href="/css/styles.css"> + <link rel="icon" href="/favicon.ico"> </head> <body> <header class="header"> @@ -15,20 +15,22 @@ <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="/" id="home" class="hvr-underline-reveal links">home</a></li> + <li><a href="/posts" class="hvr-underline-reveal links" id="posts">posts</a></li> + <li><a href="/timeline" class="hvr-underline-reveal links" id="cv">timeline</a></li> + <li><a href="/about" class="hvr-underline-reveal links" id="about">about</a></li> + <li><a href="https://git.indrajith.dev" class="hvr-underline-reveal links" id="cv">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> <hr> </header> - <main id="content"> + + <main id="content" hx-ext="response-targets"> <%= content %> </main> + <footer> <hr> <ul> @@ -38,7 +40,6 @@ </ul> <img src="/images/indrajith.dev.gif" class="etyone" alt=""> </footer> - <script>htmx.config.getCacheBusterParam = true</script> <script> (function(){ const currentLocation = location.pathname; |