From 51dcc1de27bb1901050b8cd60f3400b9654af44e Mon Sep 17 00:00:00 2001 From: Ridvan Candan Date: Tue, 31 Mar 2026 02:21:55 +0300 Subject: [PATCH] Ilk zengin formatli makale eklendi --- .gitmodules | 3 +++ .hugo_build.lock | 0 archetypes/default.md | 5 +++++ content/posts/devops-mimarimiz.md | 25 +++++++++++++++++++++++++ hugo.toml | 4 ++++ themes/PaperMod | 1 + 6 files changed, 38 insertions(+) create mode 100644 .gitmodules create mode 100644 .hugo_build.lock create mode 100644 archetypes/default.md create mode 100644 content/posts/devops-mimarimiz.md create mode 100644 hugo.toml create mode 160000 themes/PaperMod diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..89af1b0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/PaperMod"] + path = themes/PaperMod + url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..25b6752 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +date = '{{ .Date }}' +draft = true +title = '{{ replace .File.ContentBaseName "-" " " | title }}' ++++ diff --git a/content/posts/devops-mimarimiz.md b/content/posts/devops-mimarimiz.md new file mode 100644 index 0000000..d2d5b5f --- /dev/null +++ b/content/posts/devops-mimarimiz.md @@ -0,0 +1,25 @@ +--- +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." +} \ No newline at end of file diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..b7e838a --- /dev/null +++ b/hugo.toml @@ -0,0 +1,4 @@ +baseURL = 'https://example.org/' +locale = 'en-us' +title = 'My New Hugo Project' +theme = "PaperMod" \ No newline at end of file diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..10d3dcc --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit 10d3dcc0e05cee0aaca58a1305a9d824b2cf9a2a