Skip to content

Commit

Permalink
Update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmbrown committed Feb 3, 2025
1 parent 4f0f167 commit 83d7d45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cdk/cf-functions/rewrite-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function handler(event) {
if (uri.endsWith('/')) { request.uri = '/index.html' }
if (uri.endsWith('/about')) { request.uri = '/about/index.html' }
if (uri.endsWith('/tags')) { request.uri = '/tags/index.html' }
if (uri.endsWith('/search')) { request.uri = '/search/index.html' }
if (uri.endsWith('/notes/search')) { request.uri = '/notes/search/index.html' }

var pathNames = uri.split('/')
if (pathNames.length > 2 && (pathNames[1] == 'notes' || pathNames[1] == 'tags')) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Icon } from 'astro-icon/components'
<span class="navItem" id="tags"><a href="/tags">Tags</a></span>
<span class="navItem" id="about"><a href="/about">About</a></span>
<span class="navItem" id="search">
<a href="/search"><Icon name="mdi:search" width="30" height="27"/></a>
<a href="/notes/search"><Icon name="mdi:search" width="30" height="27"/></a>
</span>
</div>
</nav>
4 changes: 2 additions & 2 deletions src/pages/search.astro β†’ src/pages/notes/search.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import Main from '../layouts/Main.astro'
import Main from '../../layouts/Main.astro'
import { getCollection } from 'astro:content'
import SearchBar from '../components/SearchBar.astro'
import SearchBar from '../../components/SearchBar.astro'
const allNotes = await getCollection('notes')
allNotes.sort((a, b) => Date.parse(b.data.pubDate) - Date.parse(a.data.pubDate))
Expand Down

0 comments on commit 83d7d45

Please sign in to comment.