Skip to content

Commit

Permalink
Update cdk
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmbrown committed Feb 3, 2025
1 parent 81adbf8 commit f3a5a2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cdk/cf-functions/rewrite-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +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' }

var pathNames = uri.split('/')
if (pathNames.length > 2 && (pathNames[1] == 'notes' || pathNames[1] == 'tags')) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Search({ searchList }) {
value={query}
onChange={handleOnSearch}
placeholder="Search notes"
class="px-3 py-3"
class="px-4 py-3"
/>
</div>
{query.length > 1 && (
Expand Down

0 comments on commit f3a5a2a

Please sign in to comment.