summaryrefslogtreecommitdiffstats
path: root/CONTENT_GUIDE.md
blob: 1c74a00ffaca4565689e5c9f1bd71deb860a2d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
# Content Organization Guide

A practical guide for managing content on your personal blog. Use this when creating, editing, or organizing articles and pages.

---

## Table of Contents

1. [Directory Structure](#directory-structure)
2. [Content Types](#content-types)
3. [Creating New Content](#creating-new-content)
4. [Front Matter Reference](#front-matter-reference)
5. [Publishing Workflow](#publishing-workflow)
6. [Best Practices](#best-practices)
7. [Examples](#examples)

---

## Directory Structure

```
content/
├── _index.md                 # Home page (don't modify much)
├── articles/                 # All blog content lives here
│   ├── _index.md            # Articles section landing page
│   ├── my-first-article/
│   │   ├── index.md         # Article content
│   │   └── featured-image.jpg  # Images bundled with article
│   ├── another-article.md
│   └── ...
└── is/                       # Static pages (about, contact, etc.)
    ├── _index.md            # About page (/)
    ├── here.md              # Contact page (/is/here)
    └── ...                  # Other static pages
```

**Key Rules:**
- All blog posts go in `content/articles/` — not directly in `content/`
- Static pages (about, contact, uses, now, etc.) go in `content/is/`
- Use folders for articles with images; use `.md` files for text-only articles
- Folder names become URL slugs, so use lowercase and hyphens: `my-first-article/`

---

## Content Types

Your blog supports five content types for articles. Each type is visually distinct in the feed with its own badge color.

### **tech** (Purple #a855f7)
Technical articles: programming tutorials, IT learnings, engineering breakdowns, code walkthroughs, tool reviews.

**Examples:**
- Understanding Kubernetes networking
- Building a REST API with Go
- Setting up a CI/CD pipeline
- Debugging memory leaks

### **life** (Amber #f59e0b)
Personal reflections, philosophy, life lessons, observations about slowing down, productivity thoughts, life updates.

**Examples:**
- On slowing down in a world that won't
- What I learned from a failed project
- Balancing work and life
- Reflections on burnout

### **quote** (Green #00ff88)
Meaningful quotes you find interesting, with optional context about why they matter to you.

**Examples:**
- "The obstacle is the way" — Marcus Aurelius
- "It's about the work, not the reward" — Unknown
- "Simplicity is the ultimate sophistication" — da Vinci

### **link** (Cyan #38bdf8)
Interesting links from the web with optional your own commentary. Can be standalone or with analysis.

**Examples:**
- [Article] The future of Rust in systems programming
- [Video] Why Git is hard to understand
- [Thread] Thoughts on API design principles

### **photo** (Pink #ec4899)
Photos or visual content you create and want to share. Can include captions or stories.

**Examples:**
- Photos from a recent trip
- A project you built (with pictures)
- Visual design work you want to showcase

---

## Creating New Content

### Quick Start: Use Hugo CLI

```bash
# Create a new article
hugo new articles/my-article-title/index.md

# Create a static page (about, contact, etc.)
hugo new is/page-title.md
```

The CLI uses your archetypes to generate files with proper front matter.

### Manual Creation

If you prefer, just create `.md` files directly in the right folder. Copy the front matter structure from examples below.

---

## Front Matter Reference

Every content file starts with TOML front matter (between `+++` markers). Here's what each field does:

```toml
+++
title = "Article Title"           # Required: The page title (appears in feed and page)
date = 2026-04-05T10:30:00Z       # Required: Publication date (ISO 8601 format)
draft = false                      # Optional: Set to true to hide from published site
type = "tech"                      # Required for articles: tech, life, quote, link, photo
featured = false                   # Optional: Set to true to pin to top of homepage
image = "featured-image.jpg"       # Optional: Image path for card thumbnail (relative to content file)
description = "One or two..."      # Optional: Short summary (2 lines max) for feed cards
+++
```

### Field Details

| Field | Required | Notes |
|-------|----------|-------|
| `title` | Yes | Used as page heading and in feeds. Keep under 80 chars for better layout. |
| `date` | Yes | When the article was published. Format: `2026-04-05T10:30:00Z` (UTC). Hugo sorts by this. |
| `draft` | No | Set to `true` to hide from published site (useful for work-in-progress). |
| `type` | Yes (articles) | One of: `tech`, `life`, `quote`, `link`, `photo`. Not needed for static pages. |
| `featured` | No | Set to `true` to pin one article to the top of the homepage feed. Only the first featured post shows. |
| `image` | No | Path to a featured image (relative to the content file folder). Shows as thumbnail in card. |
| `description` | No | Short summary for feed cards. If omitted, Hugo uses the first 120 characters of your content. Keep to 2 lines max (~150 chars). |

---

## Publishing Workflow

### Before Publishing

1. **Write your content** — Use the body section after `+++` for markdown
2. **Add front matter** — Fill in title, date, type, description, image (if applicable)
3. **Set draft = false** — Only non-draft content appears on the live site
4. **Preview locally** — Run `hugo server` to see how it looks

### Publishing

```bash
# Start local preview
hugo server

# Open http://localhost:1313 in your browser
# Check homepage, articles page, filters, detail pages

# When satisfied:
git add content/
git commit -m "content: add [title] article"
git push origin master
```

### Important Notes

- **Draft status**: Set `draft = true` while writing. Change to `draft = false` when ready to publish.
- **Featured**: Only set one article to `featured = true`. It will appear first on the homepage, even if it's not the newest.
- **Dates in the future**: Articles with future dates are treated as drafts (won't appear until that date passes).

---

## Best Practices

### Article Length & Structure

- **Tech articles**: 800–2000 words. Include code examples, explanations, and takeaways.
- **Life reflections**: 300–1000 words. Personal, conversational tone is best.
- **Quotes**: 50–200 words. Include the quote, attribution, and 1–2 sentences on why it resonates.
- **Links**: 50–500 words. Headline, link, and 1–3 sentences of context or summary.
- **Photos**: 100–500 words. Caption, story, or context about the image.

### Writing Tips

1. **Titles should be specific** — "Understanding X" is better than "Learning about X"
2. **Descriptions should hook** — Write summaries that make people want to click
3. **Use code blocks for technical content** — Syntax highlighting works automatically
4. **Include images for visual interest** — Photos break up text and catch attention
5. **Link to related posts** — Help readers discover more of your content

### File Organization

- **Use descriptive folder/file names**`understanding-kubernetes-networking/` is better than `post1/`
- **Group related assets** — If an article has images, keep them in the same folder
- **Avoid special characters** — Stick to letters, numbers, hyphens, underscores
- **Use lowercase** — Slugs should be lowercase (Hugo enforces this in URLs)

### Images

- **Optimal sizes**: Featured images 1200x600px or wider (16:9 aspect ratio)
- **File formats**: JPG for photos, PNG for diagrams, WebP for web-optimized
- **File size**: Keep images under 500KB (use compression tools)
- **Naming**: Use lowercase, hyphens, descriptive names: `kubernetes-architecture.jpg`

### Code Blocks

Include a language identifier for syntax highlighting:

````markdown
```python
def hello_world():
    print("Hello, world!")
```
````

Supported languages: Python, Go, JavaScript, TypeScript, Bash, SQL, YAML, HTML, CSS, Rust, and many more.

---

## Examples

### Example 1: Tech Article with Images

**File structure:**
```
content/articles/understanding-rest-apis/
├── index.md
├── rest-principles.png
└── api-flow.png
```

**Front matter:**
```toml
+++
title = "Understanding REST APIs: A Practical Guide"
date = 2026-04-05T09:00:00Z
draft = false
type = "tech"
featured = false
image = "rest-principles.png"
description = "REST APIs power the web. Learn the six constraints that make them scalable and how to build your own."
+++
```

**Body:**
```markdown
REST (Representational State Transfer) is an architecture style for building web APIs...

## The Six Constraints

1. **Client-Server Architecture** — Separation of concerns...
2. **Statelessness** — Each request contains all needed information...

## Building Your First REST API

Here's how to build a simple API with Go:

```go
package main

import (
    "net/http"
)

func main() {
    http.HandleFunc("/api/hello", func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("Hello, REST!"))
    })
    http.ListenAndServe(":8000", nil)
}
```

...
```

### Example 2: Life Reflection

**File: `content/articles/slowing-down.md`**

```toml
+++
title = "On Slowing Down in a World That Won't"
date = 2026-04-04T14:30:00Z
draft = false
type = "life"
featured = false
description = "There's a particular kind of exhaustion that comes from moving too fast. Here's what I learned about intentionality."
+++
```

**Body:**
```markdown
Last week I caught myself reading the same sentence five times without understanding it. My mind was already on the next task, the next meeting, the next thing to fix.

That's when it hit me: I'd been running on fumes for months...

## What I'm Trying Now

Three small changes have made a difference:

1. **One deep work block per day** — No meetings, no emails, just focused time.
2. **Walking between tasks** — A 5-minute walk breaks the mental loop.
3. **Saying no more often** — Turns out, most requests weren't actually urgent.

The irony is that slowing down made me more productive. Not because I did more, but because what I did actually mattered...
```

### Example 3: Quote Post

**File: `content/articles/obstacle-is-the-way.md`**

```toml
+++
title = "\"The Obstacle Is the Way\" — Marcus Aurelius"
date = 2026-04-03T12:00:00Z
draft = false
type = "quote"
featured = false
description = "A powerful Stoic principle on turning problems into progress."
+++
```

**Body:**
```markdown
> The impediment to action advances action. What stands in the way becomes the way.
>
> — Marcus Aurelius, Meditations

This quote resonates because it reframes failure and obstacles. Instead of seeing problems as roadblocks, Stoic philosophy teaches us to see them as *the path itself*.

Every challenge I've faced that felt insurmountable at the time became the thing that taught me the most. The failed projects taught me more than the successes. The difficult conversations were more valuable than the easy ones.

What obstacle are you facing right now? What if it's exactly what you need to learn next?
```

### Example 4: Link Post with Commentary

**File: `content/articles/future-of-rust.md`**

```toml
+++
title = "The Future of Rust in Systems Programming"
date = 2026-04-02T10:00:00Z
draft = false
type = "link"
featured = false
image = "rust-logo.png"
description = "Why Rust is becoming essential for systems programming and what's coming next."
+++
```

**Body:**
```markdown
Read this excellent piece on [The Future of Rust in Systems Programming](https://example.com/rust-future)

The author makes a compelling argument about why Rust's memory safety guarantees are becoming non-negotiable in infrastructure software. I particularly appreciated the section on how Rust adoption is accelerating in Linux kernel development.

The key takeaway: safety isn't a trade-off anymore. Rust proves you can have performance *and* memory safety, which changes everything for systems programming.
```

### Example 5: Static Page (About)

**File: `content/is/_index.md`** (already created, but here's how to edit it)

```toml
+++
title = "About"
date = 2026-01-01T00:00:00Z
+++
```

**Body:**
```markdown
Hi, I'm Danilo. I'm an engineer and writer trying to figure out how to build good things and live well.

## What I Write About

- **Tech**: Systems design, Go, backend architecture, things I learn while building
- **Life**: Reflections on work, learning, slowing down, and finding meaning
- **Ideas**: Interesting thoughts and quotes that stick with me

## What I'm Doing Now

Currently building distributed systems and thinking about how to write better. I'm particularly interested in observability, performance, and the intersection of technology and philosophy.

## Get in Touch

Want to chat? [Send me a message](/is/here) — I read and reply to everything.
```

---

## File Format & Markdown

### Standard Markdown

Your content is written in Markdown. Here are the basics:

```markdown
# Heading 1
## Heading 2
### Heading 3

**Bold text**
*Italic text*

- Bullet point
- Another point

1. Numbered item
2. Another item

[Link text](https://example.com)

![Image alt text](image-file.jpg)

> Blockquote text
```

### Code Blocks

Fenced code blocks with language specification:

````markdown
```python
print("Hello")
```

```javascript
console.log("Hello");
```

```bash
echo "Hello"
```
````

### Images

Place images in the same folder as the article:

```markdown
![A description of the image](image-filename.jpg)
```

For featured images in front matter, use just the filename:
```toml
image = "image-filename.jpg"
```

---

## Hugo Shortcodes

Beyond standard Markdown, the theme includes special shortcodes for enhanced content. Place your content files (images, etc.) in the same folder as the article.

### Responsive Image Shortcode

The `img` shortcode creates responsive, optimized images with lazy loading, WebP format support, and a fade-in LQIP (Low Quality Image Placeholder) effect.

**Usage:**
```hugo
{{< img src="image.jpg" alt="Image description" >}}
```

**Parameters:**
- `src` (required) — Path to image file (relative to content folder)
- `alt` (required) — Alt text for accessibility
- `divClass` (optional) — CSS class to add to the wrapper div

**Configuration:**
Add to your `hugo.toml` to define responsive image sizes:
```toml
[params]
imageSizes = [640, 900, 1200, 1600]
```

**Example:**
```hugo
{{< img src="kubernetes-architecture.jpg" alt="Kubernetes cluster architecture" >}}
```

---

### Quote Shortcode

The `quote` shortcode creates styled blockquotes with optional source attribution and links.

**Usage:**
```hugo
{{< quote source="Author Name" src="https://example.com" >}}
This is a meaningful quote.
{{< /quote >}}
```

**Parameters:**
- Content between tags — The quote text
- `source` (optional) — Author or source name
- `src` (optional) — URL to link the source to (opens in new tab)

**Examples:**

Simple quote:
```hugo
{{< quote >}}
The obstacle is the way.
{{< /quote >}}
```

Quote with attribution:
```hugo
{{< quote source="Marcus Aurelius" >}}
The impediment to action advances action. What stands in the way becomes the way.
{{< /quote >}}
```

Quote with link:
```hugo
{{< quote source="Paul Graham" src="http://paulgraham.com/wealth.html" >}}
The way to get rich is to work hard, at something people want.
{{< /quote >}}
```

---

### Gravatar Shortcode

The `gravatar` shortcode embeds a Gravatar profile image with optional caption and link.

**Usage:**
```hugo
{{< gravatar mail="your@email.com" size=150 caption="My avatar" >}}
```

**Parameters:**
- `mail` (optional) — Email address for Gravatar lookup (falls back to `author_email` from config)
- `size` (optional) — Image size in pixels (default: 200)
- `class` (optional) — CSS class for the figure element
- `link` (optional) — URL to wrap the image in a link
- `target` (optional) — Link target (_blank, _self, etc.)
- `rel` (optional) — Link rel attribute (e.g., "author")
- `caption` (optional) — Caption text (supports Markdown)
- `alt` (optional) — Alt text (uses caption as fallback)

**Configuration:**
Add to your `hugo.toml` to set your default email:
```toml
[params]
author_email = "your@email.com"
```

**Examples:**

Simple gravatar with default size:
```hugo
{{< gravatar >}}
```

Custom size and caption:
```hugo
{{< gravatar mail="danilo@example.com" size=120 caption="That's me" >}}
```

With link to profile:
```hugo
{{< gravatar mail="danilo@example.com" size=150 link="https://gravatar.com/danilo" target="_blank" rel="author" caption="Click to view my profile" >}}
```

---

### Figure Shortcode

The `figure` shortcode wraps images or other content in a semantic `<figure>` element with optional title, caption, attribution, and link. Use it to add context and styling around images.

**Usage:**
```hugo
{{< figure caption="Image caption" attr="Photo by Someone" >}}
{{< img src="image.jpg" alt="Description" >}}
{{< /figure >}}
```

**Parameters:**
- Content between tags — Inner content (typically an `img` shortcode)
- `class` (optional) — CSS class for the figure element
- `link` (optional) — URL to wrap the entire figure in a link
- `target` (optional) — Link target (_blank, _self, etc.)
- `rel` (optional) — Link rel attribute
- `title` (optional) — Optional title displayed above the image
- `caption` (optional) — Caption text (supports Markdown)
- `attr` (optional) — Attribution text (supports Markdown)
- `attrlink` (optional) — URL to link the attribution to

**Examples:**

Simple figure with caption:
```hugo
{{< figure caption="Kubernetes cluster architecture" >}}
{{< img src="k8s-architecture.jpg" alt="Kubernetes cluster" >}}
{{< /figure >}}
```

With title and attribution:
```hugo
{{< figure title="System Design" caption="A simplified view of the microservices architecture" attr="Diagram by John Doe" >}}
{{< img src="architecture.jpg" alt="Architecture diagram" >}}
{{< /figure >}}
```

With linked attribution:
```hugo
{{< figure caption="Beautiful sunset at Bryce Canyon" attr="Photo by Jane Smith" attrlink="https://example.com/jane" >}}
{{< img src="bryce-canyon.jpg" alt="Sunset at Bryce Canyon" >}}
{{< /figure >}}
```

Figure with clickable link:
```hugo
{{< figure link="https://example.com/full-image" target="_blank" caption="Click to view full resolution" >}}
{{< img src="preview.jpg" alt="Preview image" >}}
{{< /figure >}}
```

---

### Video Shortcode

The `video` shortcode embeds HTML5 videos with controls, optional autoplay, looping, and muting. Supports mp4, webm, and other HTML5 video formats.

**Usage:**
```hugo
{{< video src="my-video.mp4" width=600 height=400 >}}
```

**Parameters:**
- `src` (required) — Path to video file (mp4, webm, etc.)
- `width` (optional) — Video width in pixels
- `height` (optional) — Video height in pixels
- `autoplay` (optional) — true/false (default: false)
- `loop` (optional) — true/false (default: false)
- `muted` (optional) — true/false (default: false)
- `class` (optional) — CSS class for styling

**Note:** The `muted` attribute is often required for autoplay to work in modern browsers.

**Examples:**

Simple video with controls:
```hugo
{{< video src="demo.mp4" width=800 height=450 >}}
```

Auto-looping muted video (useful for GIF-like effects):
```hugo
{{< video src="animation.mp4" width=640 height=480 autoplay=true loop=true muted=true >}}
```

Styled video with custom class:
```hugo
{{< video src="tutorial.webm" width=1024 height=576 class="responsive-video" >}}
```

---

### Text Formatting Shortcodes

#### Strike Shortcode

Creates strikethrough text.

**Usage:**
```hugo
{{< strike >}}This text is crossed out{{< /strike >}}
```

#### Highlight (em) Shortcode

Creates highlighted/marked text (yellow background).

**Usage:**
```hugo
{{< em >}}This text is highlighted{{< /em >}}
```

#### Dropcap Shortcode

Creates a paragraph with a decorative drop cap (large first letter).

**Usage:**
```hugo
{{< dropcap >}}
Once upon a time, there was a beautiful story that began with this first letter...
{{< /dropcap >}}
```

**Parameters:**
- `class` (optional) — CSS class for styling

---

### Container Shortcodes

#### Div Shortcode

Opens a `<div>` wrapper with optional CSS class. Pair with `div-close` shortcode.

**Usage:**
```hugo
{{< div class="container featured" >}}
Content inside the div
{{< div-close >}}
```

**Parameters:**
- `class` — CSS class(es) for the div element

#### Div-Close Shortcode

Closes a div opened with the `div` shortcode.

---

### Gallery Shortcodes

#### Gallery Shortcode

Creates a gallery container for displaying multiple images.

**Usage:**
```hugo
{{< gallery >}}
{{< gal-img src="photo1.jpg" alt="Photo 1" >}}
{{< gal-img src="photo2.jpg" alt="Photo 2" >}}
{{< /gallery >}}
```

#### Gallery Image (gal-img) Shortcode

Embeds an image in a gallery. Must be used inside a `gallery` shortcode.

**Usage:**
```hugo
{{< gal-img src="image.jpg" alt="Image description" >}}
```

**Parameters:**
- `src` (required) — Path to image file
- `alt` (required) — Alt text for accessibility

---

### Utility Shortcodes

#### SVG Shortcode

Embeds inline SVG icons from your `assets/SVGs/` folder.

**Usage:**
```hugo
{{< svg name="icon-name" class="optional-class" >}}
```

**Parameters:**
- `name` (required) — Name of SVG file (without .svg extension). File must be in `assets/SVGs/` folder.
- `class` (optional) — CSS class for styling the icon

**Example:**
```hugo
{{< svg name="github" class="social-icon" >}}
```

#### Actions Shortcode

Creates a button-style action link (useful for CTAs).

**Usage:**
```hugo
{{< actions url="https://example.com" desc="Click Me" outclass="optional-wrapper-class" inclass="optional-button-class" >}}
```

**Parameters:**
- `url` (required) — Link URL
- `desc` (required) — Button text
- `outclass` (optional) — CSS class for the `<ul>` wrapper
- `inclass` (optional) — CSS class for the `<a>` button element

**Example:**
```hugo
{{< actions url="https://github.com/danix2" desc="Visit my GitHub" outclass="centered" inclass="primary" >}}
```

---

## Troubleshooting

### Article doesn't appear on site

- **Check `draft = false`** — Draft articles don't publish
- **Check the date** — Articles with future dates are treated as drafts
- **Check `type`** — Articles need a valid type (tech, life, quote, link, photo)
- **Check folder structure** — Articles must be in `content/articles/`

### Image doesn't show

- **Relative paths only** — Use filename only (`image.jpg`) or relative paths (`./images/image.jpg`)
- **Place in same folder** — If in a folder article, put the image in the same folder as `index.md`
- **Check the path** — Make sure the filename matches exactly (case-sensitive on Linux)

### Feed shows wrong description

- **Explicit is better** — Always set `description` in front matter instead of relying on auto-summary
- **Keep it short** — Max 2 lines (~150 characters)
- **Write for scanners** — People decide whether to click based on the description

### Featured post not showing

- **Only one per site** — If multiple articles have `featured = true`, only one displays
- **Check date order** — The featured post shows first, then newest articles below
- **Remove other featured flags** — Make sure only one article has `featured = true`

---

## Quick Reference

### Create New Article
```bash
hugo new articles/my-article-title/index.md
# Edit the file, add front matter, write content
# Set draft = false when ready to publish
```

### Create New Static Page
```bash
hugo new is/page-name.md
# Edit and publish like articles
```

### Preview Locally
```bash
hugo server
# Open http://localhost:1313
```

### Commit and Deploy
```bash
git add content/
git commit -m "content: add [article title]"
git push origin master
```

### Content Types at a Glance

| Type | Badge | Use For |
|------|-------|---------|
| `tech` | Purple | Technical articles, tutorials, engineering |
| `life` | Amber | Personal reflections, life lessons |
| `quote` | Green | Meaningful quotes with context |
| `link` | Cyan | Interesting links with commentary |
| `photo` | Pink | Visual content and stories |

---

## Questions?

Refer back to this guide whenever you:
- Create new content
- Edit existing articles
- Reorganize the site
- Add images or code examples
- Publish or unpublish articles

Happy writing! 🚀