Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ Astro powers the blog.
You will need Node (or something similar, like Deno or Bun).

1. Install Dependencies: `npm install`
2. Run: `npm run dev`
3. Go to http://localhost:4321
2. *(optional)* To create a search index run: `npm run build`
3. Run: `npm run dev`
4. Go to http://localhost:4321

## Images

Expand Down
4 changes: 3 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import mdx from "@astrojs/mdx";

import sitemap from "@astrojs/sitemap";

import pagefind from "astro-pagefind";

// https://astro.build/config
export default defineConfig({
site: 'https://thedevexchange.com',
Expand All @@ -18,7 +20,7 @@ export default defineConfig({
plugins: [tailwindcss()],
},

integrations: [react(), expressiveCode(), mdx(), sitemap()],
integrations: [react(), expressiveCode(), mdx(), sitemap(), pagefind()],

trailingSlash: 'always',

Expand Down
199 changes: 199 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@tailwindcss/vite": "^4.1.8",
"astro": "^5.7.13",
"astro-expressive-code": "^0.41.2",
"astro-pagefind": "^1.8.5",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwindcss": "^4.1.8"
Expand Down
13 changes: 13 additions & 0 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import ThemeToggle from './ThemeToggle';
import SearchModal from './SearchModal.astro';
---
<style is:inline>
::view-transition-group(header) {
Expand All @@ -13,6 +14,16 @@ import ThemeToggle from './ThemeToggle';
<div class="flex gap-4 justify-between px-0 text-sm items-center">
<a href="https://www.zuehlke.com/en" target="_blank" class="hidden sm:block">ZÜHLKE</a>
<a href="https://www.zuehlke.com/en/careers" target="_blank" class="hidden sm:block">CAREERS</a>
<button id="search-button"
class="focus:outline-2 focus:outline-offset-2 focus:outline-slate-800 dark:focus:outline-slate-200 cursor-pointer"
aria-label="Open search">
<svg fill="none" height="30" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" width="30"
xmlns="http://www.w3.org/2000/svg">
<circle cx="11" cy="11" r="8"/>
<path d="m21 21-4.35-4.35"/>
</svg>
</button>
<a href="/rss.xml"
class="focus:outline-2 focus:outline-offset-2 focus:outline-slate-800 dark:focus:outline-slate-200">
<svg fill="none" height="30" stroke="currentColor" stroke-linecap="round"
Expand All @@ -27,3 +38,5 @@ import ThemeToggle from './ThemeToggle';
</div>
</nav>
</header>

<SearchModal />
Loading