Files
blog/content/posts/devops-mimarimiz.md

25 lines
1015 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "İlk DevOps Makalem: Markdown ve Hugo'nun Gücü"
date: 2026-03-31T10:00:00+03:00
draft: false
tags: ["DevOps", "Hugo", "Markdown", "PowerShell"]
categories: ["IT Altyapısı"]
---
Selamlar! Bu makale, Hetzner üzerindeki **Docker + Gitea + Hugo** mimarimizin ilk canlı testidir. Veritabanı kullanmadığımız için sitemiz ışık hızında açılıyor. Aşağıda Markdown'ın bize sunduğu harika formatlama yeteneklerini görebilirsiniz.
## 1. Kod Blokları (Syntax Highlighting)
İşte IT otomasyonları için yazdığım bir PowerShell betiği örneği. Otomatik renklendirmeye dikkat edin:
```powershell
# Windows'ta ortam değişkeni ayarlama betiği
$yeniYol = "C:\Hugo\bin"
$mevcutYol = [Environment]::GetEnvironmentVariable("Path", "User")
if ($mevcutYol -notlike "*$yeniYol*") {
[Environment]::SetEnvironmentVariable("Path", "$mevcutYol;$yeniYol", "User")
Write-Host "Hugo başarıyla sisteme eklendi!" -ForegroundColor Green
} else {
Write-Warning "Bu yol zaten ekli."
}