portfolio/layouts/projects/single.html
Nik Afiq ddf013b6b3
All checks were successful
CI / build-check (push) Has been skipped
CI / build-and-push (push) Successful in 1m37s
initial hugo site with terminal theme
2026-03-17 23:30:49 +09:00

33 lines
840 B
HTML

{{ define "main" }}
<article class="post">
<header class="project-header">
<h1 class="post-title">{{ .Title }}</h1>
{{ with .Params.description }}
<p class="project-description">{{ . }}</p>
{{ end }}
{{ with .Params.tags }}
<ul class="project-tags">
{{ range . }}<li>{{ . }}</li>{{ end }}
</ul>
{{ end }}
{{ if or .Params.github .Params.url }}
<div class="project-links">
{{ with .Params.github }}<a href="{{ . }}" target="_blank" rel="noopener">GitHub →</a>{{ end }}
{{ with .Params.url }}<a href="{{ . }}" target="_blank" rel="noopener">Live Site →</a>{{ end }}
</div>
{{ end }}
</header>
<div class="post-content">
{{ .Content }}
</div>
<footer class="post-footer">
<a href="/projects">← Back to Projects</a>
</footer>
</article>
{{ end }}