diff options
author | Indrajith K L | 2024-06-21 02:42:38 +0530 |
---|---|---|
committer | Indrajith K L | 2024-06-21 02:42:38 +0530 |
commit | 1d422d90f8d923ea8644a65d37de7d2948f1ddc4 (patch) | |
tree | 940f9d9c97753510245b062352300a6df35b4917 /src/views/layout.ecr | |
parent | bb6528e4cf66a2eb6e8306d73c9a608d036ae001 (diff) | |
download | indrajith-dev-crystal-1d422d90f8d923ea8644a65d37de7d2948f1ddc4.tar.gz indrajith-dev-crystal-1d422d90f8d923ea8644a65d37de7d2948f1ddc4.tar.bz2 indrajith-dev-crystal-1d422d90f8d923ea8644a65d37de7d2948f1ddc4.zip |
* Removes HTMX - Will be covering in the future
* Adds 404, about, contact, timeline
* Updates layout - removes HTMX, cleanup macros
* Update template renderer macro to accept page title
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; |