1b3a8b493e
deploy / deploy (push) Failing after 1m21s
Full rewrite of the portfolio site from Next.js 14 to .NET 10: - ASP.NET Core 10 Razor Pages, no Node.js dependency - EF Core 10 + SQLite (same schema as before — data survives upgrade) - Cookie authentication (same single-password model) - Resend contact form via HttpClient - Bilingual FA/EN via locale cookie + BasePageModel - All UI ported to Razor Pages with Tailwind CDN + custom CSS - Vanilla JS: particles, typewriter, cursor, animations, portfolio modal - Dockerfile: SDK 10.0-alpine → aspnet 10.0-alpine (no npm/Node needed) - CI/CD: dropped NPM_TOKEN, ADMIN_SESSION_SECRET — pure dotnet publish Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
@page "/Admin/Posts"
|
|
@model SoroushAsadi.Pages.Admin.Posts.PostsIndexModel
|
|
@{
|
|
Layout = "_AdminLayout";
|
|
ViewData["Title"] = "Blog posts";
|
|
var slugs = new[]{ "rag-eval-framework","agentic-n8n-patterns","vertex-cost-control","k8s-llm-inference","flutter-on-device-ai","enterprise-ai-roadmap" };
|
|
}
|
|
|
|
<h1 class="font-display text-2xl font-bold text-white mb-8">Blog posts</h1>
|
|
|
|
<div class="space-y-2">
|
|
@foreach (var slug in slugs)
|
|
{
|
|
var hasOverride = Model.OverrideSlugs.Contains(slug);
|
|
<div class="glass flex items-center justify-between p-4">
|
|
<div class="flex items-center gap-3">
|
|
<span class="font-mono text-sm text-white">@slug</span>
|
|
@if (hasOverride)
|
|
{
|
|
<span class="rounded-full bg-violet/10 px-2 py-0.5 font-mono text-[.65rem] text-violet">customized</span>
|
|
}
|
|
</div>
|
|
<div class="flex gap-2">
|
|
<a href="/Admin/Posts/@slug" class="btn-ghost text-xs py-1.5 px-3">Edit</a>
|
|
<a href="/blog/@slug" target="_blank" class="text-xs text-slate-400 hover:text-white transition-colors self-center">View ↗</a>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|