initial commit
This commit is contained in:
commit
61511ed28c
28 changed files with 5210 additions and 0 deletions
9
src/content/blog/_schemas.ts
Normal file
9
src/content/blog/_schemas.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { z } from 'astro:content';
|
||||
|
||||
export const blogs = z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
pubDate: z.coerce.date(),
|
||||
updatedDate: z.coerce.date().optional(),
|
||||
heroImage: z.string().optional()
|
||||
});
|
15
src/content/blog/first-post.md
Normal file
15
src/content/blog/first-post.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: 'First Post'
|
||||
description: 'Welcome to my terminal blog'
|
||||
pubDate: '2025-06-01'
|
||||
---
|
||||
|
||||
Hello world! This is the first post on my new terminal blog.
|
||||
|
||||
I built this blog using Astro and vanilla CSS/JS to create a terminal-like experience.
|
||||
|
||||
```bash
|
||||
echo "Hello, terminal world!"
|
||||
```
|
||||
|
||||
More posts coming soon...
|
24
src/content/blog/minimalism.md
Normal file
24
src/content/blog/minimalism.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
title: 'The Art of Minimalism'
|
||||
description: 'Thoughts on minimalism in design and code'
|
||||
pubDate: '2025-06-05'
|
||||
---
|
||||
|
||||
Minimalism isn't just about having less, it's about making room for what matters.
|
||||
|
||||
In code, this means writing clean, maintainable code that does exactly what it needs to do, nothing more, nothing less.
|
||||
|
||||
This terminal blog is an exercise in digital minimalism - stripping away the unnecessary to focus on what's important: the content.
|
||||
|
||||
## Minimalist Principles in Code
|
||||
|
||||
1. **Do one thing well** - Functions and components should have a single responsibility
|
||||
2. **Eliminate unnecessary state** - Less state means fewer bugs and easier reasoning
|
||||
3. **Prefer immutability** - Immutable data structures lead to more predictable code
|
||||
4. **Embrace constraints** - Limitations often lead to more creative solutions
|
||||
|
||||
## Terminal Aesthetics
|
||||
|
||||
There's something beautifully minimalist about terminal interfaces. They strip away the graphical excess and focus on pure functionality. Yet, within these constraints, there's a unique aesthetic that many find appealing.
|
||||
|
||||
The monospace fonts, the cursor blinking in the void, the clean, structured output - all of these elements combine to create an experience that's both functional and visually satisfying.
|
37
src/content/blog/terminal-setup.md
Normal file
37
src/content/blog/terminal-setup.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
title: 'My Terminal Setup'
|
||||
description: 'A walkthrough of my current terminal configuration'
|
||||
pubDate: '2025-06-08'
|
||||
---
|
||||
|
||||
Here's my current terminal setup:
|
||||
|
||||
- Shell: ZSH with Oh My Zsh
|
||||
- Terminal: Alacritty
|
||||
- Color Scheme: Nord
|
||||
- Font: JetBrains Mono
|
||||
|
||||
I've been using this setup for about a year now and it's been working great for me.
|
||||
|
||||
## Configuration
|
||||
|
||||
My `.zshrc` has the following key customizations:
|
||||
|
||||
```bash
|
||||
# Enable Powerlevel10k theme
|
||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
|
||||
# Enable useful plugins
|
||||
plugins=(git npm node zsh-autosuggestions zsh-syntax-highlighting)
|
||||
|
||||
# Custom aliases
|
||||
alias gs="git status"
|
||||
alias gc="git commit -m"
|
||||
alias gl="git log --oneline"
|
||||
```
|
||||
|
||||
## Why I Love This Setup
|
||||
|
||||
The combination of ZSH, Oh My Zsh, and Powerlevel10k provides a powerful and visually appealing terminal experience. The autosuggestions and syntax highlighting plugins make command entry much more efficient.
|
||||
|
||||
Alacritty is fast and lightweight, and the Nord color scheme is easy on the eyes for long coding sessions.
|
11
src/content/config.ts
Normal file
11
src/content/config.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { defineCollection } from 'astro:content';
|
||||
import { blogs } from './blog/_schemas';
|
||||
|
||||
const blogCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: blogs,
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
'blog': blogCollection,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue