diff options
author | Steph Enders <steph@senders.io> | 2023-06-26 09:38:56 -0400 |
---|---|---|
committer | Steph Enders <steph@senders.io> | 2023-06-26 09:38:56 -0400 |
commit | ca7dca1dc8c1899c7c4fbc44ff99ea91a79a7ae5 (patch) | |
tree | 77b7808bde429f9f7b03fca6bc2a743d71cb4b62 | |
parent | 289b34805071b4f1df4ac70eb50942e79dc1dd19 (diff) |
Create a page template and add nav to template
Rather than cloning common resources like the nav.
We're making it static and customizing it. I can't see the nav being
updated so frequrently and commonly across all pages. So for now we'll
make it fixed in each page. We can always sed or something to fix any
URLs like I did in my other site
-rw-r--r-- | entries/index.html | 16 | ||||
-rw-r--r-- | entries/template.html | 17 | ||||
-rw-r--r-- | templates/nav.html | 13 |
3 files changed, 30 insertions, 16 deletions
diff --git a/entries/index.html b/entries/index.html index 8e51c94..058aa06 100644 --- a/entries/index.html +++ b/entries/index.html @@ -9,9 +9,21 @@ </head> <body> <header> - <h1>Hello, the Woman in my Eye</h1> + <h1><a href="/">Hello, the Woman in my Eye</a></h1> </header> - {nav} + <nav title="site menu"> + <ul> + <li> + <a href='resources'>resosurces</a> + </li> + <li> + <a href='/about'>about</a> + </li> + <li> + <a href='/blog'>blog</a> + </li> + </ul> + </nav> <main> <article> <h2>Introduction</h2> diff --git a/entries/template.html b/entries/template.html index 40e2447..91b24c7 100644 --- a/entries/template.html +++ b/entries/template.html @@ -10,7 +10,22 @@ <header> <h1>SOMETHING CLEVER, the Woman in my Eye</h1> </header> - {nav} + <nav title="site menu"> + <ul> + <li> + <a href='/'>home</a> + </li> + <li> + <a href='/resources'>resosurces</a> + </li> + <li> + <a href='/about'>about</a> + </li> + <li> + <a href='/blog'>blog</a> + </li> + </ul> + </nav> <main> <article> <h2>Entry Title</h2> diff --git a/templates/nav.html b/templates/nav.html deleted file mode 100644 index c21e9cb..0000000 --- a/templates/nav.html +++ /dev/null @@ -1,13 +0,0 @@ -<nav title="site menu"> - <ul> - <li> - <a href='/resources'>resources</a> - </li> - <li> - <a href='/about'>about</a> - </li> - <li> - <a href='/blog'>blog</a> - </li> - </ul> -</nav> |