Skip to content

Commit a840629

Browse files
committed
hide blog, setup post update and set to draft
1 parent 3014cab commit a840629

6 files changed

Lines changed: 102 additions & 260 deletions

File tree

src/content/blog/mac-setup.md

Lines changed: 0 additions & 216 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: 'Mac Setup'
3+
description: 'Recommended apps and settings'
4+
pubDate: 'Feb 22 2025'
5+
updatedDate: 'July 18 2025'
6+
cover: './macbook.jpg'
7+
coverAlt: 'MacBook Pro'
8+
draft: true
9+
---
10+
11+
Recommended Mac settings, app downloads and shortcuts primarily for getting a web development
12+
environment up and running.
13+
14+
## Manual settings
15+
16+
- Sign in to Apple Account to use `mas` App Store CLI in next section
17+
- General > About > Set device name
18+
- Keep awake when lid is closed to use with external monitors: Settings > Battery > Options Enable
19+
"Prevent automatic sleeping on power adapter when the display is off"
20+
- "Safari" menu > Settings > Advanced: Show features for web developers
21+
22+
## Run install script
23+
24+
Installs homebrew, apps, CLI tools, pnpm, Node.js, system settings, dock items. VS Code extensions
25+
can be installed via this script or settings sync in the next section.
26+
27+
- Download zip from [install.sh](https://github.com/davidlyons/install.sh) (forked from
28+
[install.sh](https://github.com/donnybrilliant/install.sh))
29+
- Open Terminal, navigate to the repo directory, and execute:
30+
31+
```
32+
./install.sh
33+
```
34+
35+
## More manual settings
36+
37+
- Open apps and set permissions
38+
- Rectangle > Settings > Launch on login
39+
- GitHub sign in with `gh auth login` to clone repos
40+
- VS Code sign in with GitHub account to sync settings, extensions, shortcuts
41+
- Chrome
42+
- set as default browser
43+
- Sign in to sync Apps, Extensions and Settings
44+
- Bookmarks through syncmarx Extension + Dropbox
45+
46+
## iTerm2
47+
48+
- Settings > General > Closing > disable: Confirm "Quit iTerm2 (cmd Q)"
49+
- Settings > Profiles:
50+
- Text > increase font size to 15
51+
- Window > adjust transparency to 18
52+
- Keys > Key Mappings preset: [Natural Text Editing](https://superuser.com/a/1704086)
53+
- To restore window size when reopening / enable window restoration: System Settings > Desktop &
54+
Dock > disable Close windows when quitting an application

src/pages/_blog/index.astro

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
import BaseLayout from '@/layouts/BaseLayout.astro';
3+
import { getCollection } from 'astro:content';
4+
import { Image } from 'astro:assets';
5+
import FormattedDate from '@/components/FormattedDate.astro';
6+
7+
const posts = await getCollection('blog', ({ data }) =>
8+
// Filter out content entries with `draft: true` only when building for production
9+
import.meta.env.PROD ? data.draft !== true : true
10+
);
11+
posts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
12+
---
13+
14+
<BaseLayout>
15+
<div class="mx-auto max-w-screen-md">
16+
{
17+
posts.length > 0 ? (
18+
<div class="grid grid-cols-2 gap-6">
19+
{posts.map((post, i) => (
20+
<div class={i == 0 ? 'col-span-2 mb-7 text-center' : 'col-span-2 mb-7 md:col-span-1'}>
21+
<a
22+
href={`/blog/${post.id}/`}
23+
class="transition-colors dark:text-white/80 dark:hover:text-white"
24+
>
25+
{post.data.cover && (
26+
<Image
27+
class="mb-4 aspect-2/1 rounded-2xl object-cover"
28+
width={1536}
29+
height={768}
30+
src={post.data.cover}
31+
alt={post.data.coverAlt || ''}
32+
quality={90}
33+
/>
34+
)}
35+
<h3 class="mb-1 text-3xl font-medium">{post.data.title}</h3>
36+
<p class="mb-0 opacity-50">
37+
<FormattedDate date={post.data.pubDate} />
38+
</p>
39+
</a>
40+
</div>
41+
))}
42+
</div>
43+
) : (
44+
<div class="text-center text-2xl">No published posts.</div>
45+
)
46+
}
47+
</div>
48+
</BaseLayout>

src/pages/blog/index.astro

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)